:root{
    --bg: #f4f7fb;
    --surface: #fff;
    --surface-2: #eef3f9;
    --text: #142033;
    --muted: #66758d;
    --line: var(--line);
    --brand: #2563eb;
    --brand-dark: #173b82;
    --success: #119b65;
    --warning: #d98b18;
    --shadow: 0 16px 45px rgba(31, 49, 79, 0.09);
    /* 26/09/2026 — Tipografia FMTO: SOLO Google Fonts, identici su iPhone/
       Android/PC (combo 4 "SaaS moderno": Space Grotesk + Inter). I fallback
       generici sono solo per il primo istante di caricamento. */
    --font-body: "Inter", sans-serif;                 /* corpo, tabelle standard */
    --font-title: "Space Grotesk", "Inter", sans-serif; /* titoli / intestazioni */
    --font-serif: "Source Serif 4", Georgia, serif;   /* accento editoriale: storia, palmarès, hall of fame */
    --font-condensed: "Barlow Condensed", "Inter", sans-serif; /* solo tabelle dense */
    /* 26/09/2026 — colori attributi per fascia (stile FM). Default; l'utente
       li può cambiare dalla scheda giocatore (salvati in locale via JS, che
       sovrascrive queste variabili su :root). */
    --skill-ecc: #1a9d4e;   /* eccellenti 16-20 */
    --skill-buona: #8bc34a; /* buoni 11-15 */
    --skill-media: #e0902f; /* media 6-10 */
    --skill-bassi: #d0414f; /* bassi 1-5 */
    font-family: var(--font-body);
    color: var(--text);
    background: var(--bg);
  }
  *{
    box-sizing: border-box;
  }
  [hidden]{
    display: none !important;
  }
  body{
    margin: 0;
    background: var(--bg);
  }
  /* 26/09/2026 — combo 4: tutte le intestazioni usano il font titolo
     (Space Grotesk). Regola a bassa specificità: dove un font è già impostato
     esplicitamente (serif editoriale, condensed tabelle dense) quello vince. */
  h1, h2, h3, h4, .eyebrow{
    font-family: var(--font-title);
  }
  button,
input,
select{
    font: inherit;
  }
  .app-shell{
    min-height: 100vh;
  }
  .sidebar{
    position: fixed;
    inset: 0 auto 0 0;
    width: 230px;
    padding: 26px 18px;
    background: #0d1728;
    color: #fff;
    display: flex;
    flex-direction: column;
    z-index: 10;
  }
  .brand{
    display: flex;
    align-items: center;
    gap: 11px;
    width: 100%;
    border: 0;
    background: transparent;
    color: inherit;
    font-weight: 800;
    font-size: 19px;
    letter-spacing: 0.02em;
    cursor: pointer;
  }
  .brand-logo{
    display: block;
    width: 132px;
    max-height: 78px;
    object-fit: contain;
    object-position: left center;
  }
  .brand-logo-fallback{
    width: auto;
    max-height: none;
    padding: 9px 12px;
    border-radius: 12px;
    background: linear-gradient(145deg, #3984ff, #174dcc);
    box-shadow: 0 8px 22px rgba(37, 99, 235, 0.35);
  }
  .nav-list{
    display: grid;
    gap: 7px;
    margin-top: 44px;
  }
  .nav-item{
    border: 0;
    border-radius: 10px;
    background: transparent;
    color: #aebbd0;
    text-align: left;
    padding: 12px 13px;
    cursor: pointer;
    display: grid;
    grid-template-columns: 18px minmax(0, 1fr) auto;
    gap: 9px;
    align-items: center;
  }
  .nav-icon{
    display: grid;
    place-items: center;
    width: 18px;
    height: 18px;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.08);
    color: #d4a900;
    font-size: 11px;
  }
  .nav-item:hover{
    color: #fff;
  }
  .nav-item.active{
    background: #1b2940;
    color: #fff;
  }
  .nav-item small{
    float: right;
    color: #8fa1bc;
  }
  .version{
    margin-top: auto;
    color: #687994;
    font-size: 12px;
  }
  .main{
    margin-left: 230px;
    padding: 30px clamp(20px, 4vw, 56px) 64px;
  }
  .topbar{
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 24px;
    margin-bottom: 26px;
  }
  .eyebrow{
    margin: 0 0 5px;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-weight: 750;
    font-size: 11px;
    color: #718198;
  }
  .eyebrow.light{
    color: rgba(255, 255, 255, 0.75);
  }
  .topbar h1,
.section-heading h2{
    margin: 0;
  }
  .topbar h1{
    font-size: clamp(28px, 4vw, 42px);
    letter-spacing: -0.04em;
  }

  .topbar-actions{
    display: flex;
    align-items: flex-end;
    gap: 10px;
  }
  .app-refresh-button{
    text-decoration: none;
    height: 41px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 0 13px;
    border: 1px solid var(--line);
    border-radius: 11px;
    background: var(--surface, #fff);
    color: var(--text);
    font: inherit;
    font-size: 12px;
    font-weight: 800;
    cursor: pointer;
    box-shadow: 0 5px 16px rgba(31, 49, 79, 0.05);
    transition: transform .15s ease, border-color .15s ease, box-shadow .15s ease;
  }
  .app-refresh-button:hover{
    transform: translateY(-1px);
    border-color: #8bb1ff;
    box-shadow: 0 8px 20px rgba(31, 49, 79, 0.08);
  }
  .app-refresh-button > span:first-child{
    font-size: 18px;
    line-height: 1;
  }
  .season-control{
    display: grid;
    gap: 6px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 700;
  }
  .season-control select,
.search,
.compact-select{
    min-width: 210px;
    border: 1px solid var(--line);
    border-radius: 11px;
    padding: 11px 13px;
    background: var(--surface);
    color: var(--text);
    outline: none;
  }
  .season-control select:focus,
.search:focus,
.compact-select:focus{
    border-color: #8bb1ff;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
  }
  .status-card{
    display: flex;
    align-items: center;
    gap: 12px;
    border: 1px solid var(--line);
    background: var(--surface);
    padding: 16px 18px;
    border-radius: 14px;
    box-shadow: var(--shadow);
    margin-bottom: 2px;
  }
  .status-card.error{
    border-color: #f1b7b7;
    color: #9c2d2d;
  }
  .status-card.warning{
    border-color: #f2d49e;
    color: #8b5a0d;
  }
  .status-card.success{
    border-color: #a9dfc9;
    color: #08764a;
  }
  .spinner{
    width: 18px;
    height: 18px;
    border: 2px solid #c9d6e8;
    border-top-color: var(--brand);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    display: inline-block;
    vertical-align: middle;
  }
  .small-spinner{
    width: 14px;
    height: 14px;
  }
  @keyframes spin {
    to {
      transform: rotate(360deg);
    }
  }
  .metrics{
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
  }
  .metric{
    padding: 18px;
    border-radius: 15px;
    background: var(--surface);
    border: 1px solid var(--line);
    box-shadow: 0 8px 25px rgba(31, 49, 79, 0.05);
  }
  .metric span{
    color: var(--muted);
    font-size: 13.5px;
  }
  .metric strong{
    display: block;
    margin-top: 8px;
    font-size: 30px;
  }
  .section-block{
    margin-top: 32px;
  }
  .section-heading{
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 14px;
  }
  .competition-grid{
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 15px;
  }
  .competition-card{
    position: relative;
    overflow: hidden;
    min-height: 138px;
    padding: 18px;
    border: 0;
    border-radius: 17px;
    color: #fff;
    text-align: left;
    cursor: pointer;
    background: linear-gradient(135deg, var(--c1), var(--c2));
    box-shadow: var(--shadow);
    display: flex;
    align-items: center;
    gap: 17px;
    transition: 0.18s ease;
  }
  .competition-card:hover{
    transform: translateY(-2px);
    filter: saturate(1.08);
  }
  .competition-card:after{
    content: "";
    position: absolute;
    width: 150px;
    height: 150px;
    border-radius: 50%;
    right: -55px;
    top: -55px;
    background: rgba(255, 255, 255, 0.12);
  }
  .competition-card > span{
    position: relative;
    z-index: 1;
    min-width: 0;
  }
  .competition-card strong{
    display: block;
    margin: 8px 0 7px;
    font-size: 20px;
  }
  .competition-card small{
    display: block;
    color: rgba(255, 255, 255, 0.82);
  }
  .competition-tag{
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.1em;
  }
  .competition-logo,
.competition-hero-logo{
    object-fit: contain;
    background: rgba(255, 255, 255, 0.92);
    border-radius: 13px;
    position: relative;
    z-index: 1;
  }
  .competition-logo{
    width: 70px;
    height: 70px;
    padding: 7px;
  }
  .competition-fallback{
    width: 70px;
    height: 70px;
    border-radius: 13px;
    background: rgba(255, 255, 255, 0.18);
    display: grid;
    place-items: center;
    font-weight: 850;
    position: relative;
    z-index: 1;
  }
  .competition-hero{
    min-height: 190px;
    border-radius: 22px;
    padding: 28px;
    background: linear-gradient(135deg, var(--c1), var(--c2));
    color: #fff;
    display: flex;
    align-items: center;
    gap: 25px;
    box-shadow: var(--shadow);
  }
  .competition-hero-logo{
    width: 124px;
    height: 124px;
    padding: 10px;
  }
  .competition-hero h2{
    font-size: clamp(28px, 4vw, 44px);
    margin: 0;
  }
  .competition-hero p:last-child{
    margin-bottom: 0;
    color: rgba(255, 255, 255, 0.8);
  }
  .competition-hero-staff{
    margin: 14px 0 0 !important;
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    background: rgba(255,255,255,.16);
    border: 1px solid rgba(255,255,255,.34);
    border-radius: 16px;
    padding: 12px 14px;
    box-shadow: 0 6px 20px rgba(0,0,0,.18);
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
  }
  .comp-staff-label{
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    font-weight: 900;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: #fff !important;
    background: rgba(0,0,0,.30);
    padding: 5px 11px;
    border-radius: 999px;
    white-space: nowrap;
  }
  .comp-staff-label::before{
    content: "";
    width: 8px; height: 8px; border-radius: 999px;
    background: #22c55e;
    box-shadow: 0 0 0 3px rgba(34,197,94,.35);
  }
  .comp-staff-chips{ display:flex; gap:8px; flex-wrap:wrap; }
  .comp-staff-chip{
    display:inline-flex; align-items:center; gap:6px;
    background:#fff; color:#0f172a;
    font-weight:800; font-size:13px; line-height:1;
    padding:7px 13px 7px 9px; border-radius:999px;
    text-decoration:none;
    box-shadow:0 2px 9px rgba(0,0,0,.20);
    transition: transform .12s ease, box-shadow .12s ease;
  }
  .comp-staff-chip:hover{ transform:translateY(-1px); box-shadow:0 5px 14px rgba(0,0,0,.28); }
  .comp-staff-chip--plain{ background:rgba(255,255,255,.92); cursor:default; box-shadow:none; }
  .comp-staff-tg{ width:15px; height:15px; fill:#229ED9; flex:none; }
  @media (max-width:560px){
    .competition-hero-staff{
      flex-direction: column;
      align-items: stretch;
      gap: 9px;
      padding: 11px 12px;
      margin-top: 12px !important;
    }
    .comp-staff-label{ align-self: flex-start; }
    .comp-staff-chips{ gap: 8px; }
    .comp-staff-chip{ flex: 1 1 130px; justify-content: center; font-size: 13px; padding: 9px 12px; }
  }
  .back-button{
    border: 0;
    background: transparent;
    color: var(--brand);
    font-weight: 750;
    padding: 0;
    margin: 0 0 18px;
    cursor: pointer;
  }
  .team-grid{
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
  }
  .team-card{
    border: 1px solid var(--line);
    background: var(--surface);
    border-radius: 15px;
    padding: 15px;
    text-align: left;
    cursor: pointer;
    transition: 0.18s ease;
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
  }
  .team-card:hover{
    transform: translateY(-2px);
    box-shadow: var(--shadow);
    border-color: #bfd0ea;
  }
  .team-logo,
.drawer-logo{
    object-fit: contain;
    background: #f5f7fa;
    border-radius: 11px;
  }
  .player-face{
    width: 42px;
    height: 42px;
    min-width: 42px;
    object-fit: cover;
    object-position: center top;
    border-radius: 12px;
    background: #edf1f7;
    border: 1px solid var(--line);
  }
  .player-face.fallback{
    display: grid;
    place-items: center;
  }
  .player-face.fallback.hidden,
.player-portrait.fallback.hidden{
    display: none;
  }
  .roster-face{
    width: 48px;
    height: 48px;
    min-width: 48px;
  }
  .list-face{
    width: 44px;
    height: 44px;
    min-width: 44px;
  }
  .team-logo{
    width: 46px;
    height: 46px;
    flex: 0 0 auto;
  }
  .logo-fallback{
    width: 46px;
    height: 46px;
    border-radius: 11px;
    display: grid;
    place-items: center;
    color: #fff;
    font-weight: 850;
    flex: 0 0 auto;
  }
  .logo-fallback.large{
    width: 92px;
    height: 92px;
    font-size: 24px;
  }
  .team-card > span{
    min-width: 0;
  }
  .team-card strong{
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .team-card span span{
    display: block;
    color: var(--muted);
    font-size: 12px;
    margin-top: 3px;
  }
  .club-directory{
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
  }
  .club-directory-card{
    border: 1px solid var(--line);
    background: var(--surface);
    border-radius: 17px;
    padding: 17px;
    text-align: left;
    cursor: pointer;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 13px;
    align-items: center;
    transition: 0.18s ease;
    box-shadow: 0 8px 25px rgba(31, 49, 79, 0.04);
  }
  .club-directory-card:hover{
    transform: translateY(-2px);
    box-shadow: var(--shadow);
    border-color: #bfd0ea;
  }
  .club-directory-card .team-logo,
.club-directory-card .logo-fallback{
    width: 58px;
    height: 58px;
  }
  .club-directory-card strong{
    display: block;
    font-size: 15px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .club-directory-meta{
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-top: 7px;
    color: var(--muted);
    font-size: 11px;
  }
  .club-competition-logos{
    display: flex;
    align-items: center;
    gap: 4px;
  }
  .club-competition-logos img,
.club-competition-logos .competition-fallback{
    width: 24px;
    height: 24px;
    border-radius: 7px;
    object-fit: contain;
    background: var(--surface-2);
    padding: 2px;
    font-size: 7px;
  }
  .drawer-backdrop{
    position: fixed;
    inset: 0;
    background: rgba(5, 12, 24, 0.35);
    z-index: 1000;
  }
  .detail-drawer{
    position: fixed;
    z-index: 1001;
    right: 0;
    top: 0;
    height: 100vh;
    width: min(680px, 100%);
    background: var(--surface);
    box-shadow: -20px 0 55px rgba(9, 22, 45, 0.18);
    padding: 28px;
    transform: translateX(105%);
    transition: transform 0.23s ease;
    overflow-y: auto;
  }
  .detail-drawer.open{
    transform: translateX(0);
  }
  .drawer-close{
    float: right;
    border: 0;
    background: var(--surface-2);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
  }
  .drawer-logo{
    width: 92px;
    height: 92px;
    margin-top: 34px;
  }
  .detail-drawer > h2{
    font-size: 28px;
    margin: 18px 0 8px;
  }
  .competition-strip{
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 10px 0;
  }
  .competition-chip{
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 8px 5px 5px;
    border: 1px solid var(--line);
    border-radius: 10px;
    color: var(--muted);
    font-size: 11px;
  }
  .competition-chip-logo{
    width: 28px;
    height: 28px;
    object-fit: contain;
  }
  .competition-chip .competition-fallback{
    width: 28px;
    height: 28px;
    font-size: 8px;
    color: var(--text);
    background: var(--surface-2);
  }
  .drawer-stat{
    margin-top: 20px;
    padding: 18px;
    border-radius: 14px;
    background: var(--surface-2);
  }
  .drawer-stat strong{
    display: block;
    font-size: 30px;
  }
  .drawer-note{
    font-size: 13px;
    color: var(--muted);
    line-height: 1.5;
    margin-top: 18px;
  }
  .drawer-loading{
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 24px;
    color: var(--muted);
  }
  .roster-grid{
    list-style: none;
    padding: 0;
    margin: 18px 0 0;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 9px;
  }
  .roster-card{
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 11px;
    background: var(--surface);
    min-width: 0;
  }
  .player-main{
    display: flex;
    align-items: center;
    gap: 9px;
    min-width: 0;
  }
  .player-main > div{
    min-width: 0;
  }
  .player-main strong{
    display: block;
    font-size: 13px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .player-main span,
.player-main small{
    display: block;
    margin-top: 3px;
    color: var(--muted);
    font-size: 10px;
  }
  .flag-icon,
.flag-placeholder{
    width: 25px;
    height: 25px;
    aspect-ratio: 1/1;
    object-fit: cover;
    border-radius: 50%;
    clip-path: circle(50%);
    flex: 0 0 auto;
    border: 1px solid #dce3ec;
    background: var(--surface);
  }
  .flag-placeholder{
    display: grid;
    place-items: center;
    background: var(--surface-2);
    color: var(--muted);
  }
  .ca-badge{
    flex: 0 0 auto !important;
    margin: 0 !important;
    padding: 5px 7px;
    border-radius: 8px;
    background: #e8f0ff;
    color: #1e55b3 !important;
    font-weight: 800 !important;
    font-size: 11px !important;
  }
  .ca-badge.large{
    font-size: 14px !important;
    padding: 8px 10px;
  }
  .warning-text{
    color: #9a5a00 !important;
  }
  .primary-button,
.secondary-button{
    border-radius: 10px;
    padding: 10px 14px;
    font-weight: 750;
    cursor: pointer;
  }
  .primary-button{
    border: 1px solid var(--brand);
    background: var(--brand);
    color: #fff;
  }
  .primary-button:hover{
    background: #1d54cc;
  }
  .primary-button.small{
    padding: 7px 9px;
    font-size: 12px;
  }
  .secondary-button{
    border: 1px solid var(--line);
    background: var(--surface);
    color: var(--text);
  }
  .secondary-button:disabled{
    opacity: 0.45;
    cursor: default;
  }
  .player-search-panel{
    display: grid;
    grid-template-columns: minmax(240px, 1fr) auto auto;
    gap: 10px;
    padding: 16px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 16px;
    box-shadow: 0 8px 25px rgba(31, 49, 79, 0.05);
  }
  .player-query{
    width: 100%;
    min-width: 0;
  }
  .compact-select{
    min-width: 145px;
  }
  .results-meta{
    margin: 18px 0 10px;
    color: var(--muted);
    font-size: 13px;
  }
  .player-results{
    display: grid;
    gap: 9px;
  }
  .player-result{
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 13px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 14px;
  }
  .player-result .flag-icon,
.profile-head .flag-icon{
    width: 36px;
    height: 36px;
  }
  .player-result .player-main strong{
    font-size: 14px;
  }
  .player-actions{
    display: flex;
    align-items: center;
    gap: 7px;
    flex: 0 0 auto;
  }
  .pagination{
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    margin-top: 18px;
  }
  .empty-state{
    border: 1px dashed #cbd7e6;
    border-radius: 16px;
    padding: 30px;
    text-align: center;
    color: var(--muted);
    background: rgba(255, 255, 255, 0.55);
  }
  .profile-head{
    display: flex;
    align-items: center;
    gap: 14px;
    margin: 52px 0 22px;
  }
  .profile-head > div{
    min-width: 0;
  }
  .profile-head h2{
    margin: 2px 0 5px;
    font-size: 24px;
  }
  .profile-head p:last-child{
    margin: 0;
    color: var(--muted);
    font-size: 13px;
  }
  .profile-head .ca-badge{
    margin-left: auto !important;
  }
  .attribute-group{
    margin-top: 18px;
  }
  .attribute-group h3{
    font-size: 14px;
    margin: 0 0 8px;
  }
  .attribute-list{
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
  }
  .attribute-list > div{
    display: flex;
    justify-content: space-between;
    gap: 10px;
    padding: 8px 10px;
    background: var(--surface-2);
    border-radius: 9px;
    font-size: 11px;
  }
  .attribute-list span{
    color: var(--muted);
  }
  .compare-picker{
    display: grid;
    grid-template-columns: 220px minmax(260px, 1fr) auto;
    gap: 10px;
    align-items: end;
    padding: 16px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 16px;
    box-shadow: 0 8px 25px rgba(31, 49, 79, 0.05);
    margin-bottom: 12px;
  }
  .compare-picker label{
    display: grid;
    gap: 6px;
    color: var(--muted);
    font-size: 11px;
    font-weight: 750;
  }
  .compare-picker select,
.compare-picker input{
    width: 100%;
    min-width: 0;
    border: 1px solid var(--line);
    border-radius: 11px;
    padding: 11px 13px;
    background: var(--surface);
    color: var(--text);
  }
  .compare-picker-results{
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    margin-bottom: 18px;
  }
  .compare-pick-result{
    border: 1px solid var(--line);
    background: var(--surface);
    border-radius: 12px;
    padding: 10px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    text-align: left;
  }
  .compare-pick-result .flag-icon{
    width: 30px;
    height: 30px;
  }
  .compare-grid{
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 12px;
    align-items: start;
  }
  .compare-card{
    position: relative;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 17px;
    padding: 15px;
    box-shadow: 0 8px 25px rgba(31, 49, 79, 0.05);
  }
  .compare-card .profile-head{
    margin-top: 22px;
  }
  .compare-card .profile-head .flag-icon{
    width: 30px;
    height: 30px;
  }
  .compare-card .profile-head h2{
    font-size: 18px;
  }
  .compare-card .profile-head .ca-badge{
    font-size: 11px !important;
    padding: 6px !important;
  }
  .compare-card .attribute-list{
    grid-template-columns: 1fr;
  }
  .remove-compare{
    position: absolute;
    right: 10px;
    top: 10px;
    width: 29px;
    height: 29px;
    border: 0;
    border-radius: 50%;
    background: var(--surface-2);
    cursor: pointer;
    z-index: 8;
    pointer-events: auto;
  }
  @media (max-width: 1200px) {
    .metrics{
      grid-template-columns: repeat(2, 1fr);
    }
    .competition-grid{
      grid-template-columns: repeat(2, 1fr);
    }
    .team-grid{
      grid-template-columns: repeat(3, 1fr);
    }
    .club-directory{
      grid-template-columns: repeat(2, 1fr);
    }
  }
  @media (max-width: 860px) {
    .sidebar{
      position: static;
      width: auto;
      height: 68px;
      padding: 12px 18px;
      flex-direction: row;
      align-items: center;
    }
    .nav-list{
      display: flex;
      margin: 0 0 0 auto;
    }
    .nav-item{
      padding: 9px;
    }
    .nav-item small,
.version{
      display: none;
    }
    .main{
      margin-left: 0;
      padding: 20px 16px 50px;
    }
    .topbar{
      align-items: stretch;
      flex-direction: column;
    }
    .season-control select{
      width: 100%;
    }
    .team-grid{
      grid-template-columns: repeat(2, 1fr);
    }
    .competition-grid{
      grid-template-columns: 1fr;
    }
    .player-search-panel{
      grid-template-columns: 1fr auto;
    }
    .player-search-panel .primary-button{
      grid-column: 1/-1;
    }
    .compare-picker{
      grid-template-columns: 1fr 1fr;
    }
    .compare-picker .primary-button{
      grid-column: 1/-1;
    }
    .detail-drawer{
      padding: 20px;
    }
  }
  @media (max-width: 560px) {
    .brand span:last-child{
      display: none;
    }
    .nav-list{
      gap: 0;
      overflow-x: auto;
    }
    .nav-item{
      font-size: 11px;
      padding: 8px 7px;
    }
    .metrics,
.team-grid,
.roster-grid,
.club-directory,
.compare-picker-results{
      grid-template-columns: 1fr;
    }
    .section-heading{
      align-items: stretch;
      flex-direction: column;
    }
    .search{
      width: 100%;
    }
    .competition-card{
      min-height: 120px;
    }
    .competition-logo,
.competition-fallback{
      width: 58px;
      height: 58px;
    }
    .competition-hero{
      flex-direction: column;
      align-items: stretch;
      padding: 20px;
      gap: 16px;
    }
    .competition-hero-logo{
      width: 80px;
      height: 80px;
      align-self: flex-start;
    }
    .player-search-panel,
.compare-picker{
      grid-template-columns: 1fr;
    }
    .player-search-panel .primary-button,
.compare-picker .primary-button{
      grid-column: auto;
    }
    .compact-select{
      width: 100%;
    }
    .player-result{
      align-items: flex-start;
      flex-direction: column;
    }
    .player-actions{
      width: 100%;
      justify-content: flex-end;
    }
    .attribute-list{
      grid-template-columns: 1fr;
    }
    .compare-grid{
      grid-template-columns: 1fr;
    }
  }

  .flag-icon,
.flag-placeholder{
    display: block !important;
    width: 25px !important;
    height: 25px !important;
    min-width: 25px;
    max-width: 25px;
    aspect-ratio: 1/1;
    object-fit: cover;
    object-position: center;
    border-radius: 999px !important;
    clip-path: circle(50% at 50% 50%);
    overflow: hidden;
    flex: 0 0 25px;
  }
  .club-directory-card{
    cursor: default;
    grid-template-columns: 1fr;
    gap: 10px;
  }
  .club-card-main{
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 13px;
    align-items: center;
    width: 100%;
    padding: 0;
    border: 0;
    background: transparent;
    text-align: left;
    cursor: pointer;
    color: inherit;
  }
  .club-card-main small{
    display: block;
    margin-top: 5px;
    color: var(--muted);
  }
  .club-directory-card .club-competition-logos{
    padding-top: 9px;
    border-top: 1px solid var(--line);
    flex-wrap: wrap;
  }
  .competition-chip.clickable{
    border: 1px solid var(--line);
    background: var(--surface);
    cursor: pointer;
    transition: 0.16s ease;
  }
  .competition-chip.clickable:hover{
    border-color: #9db8df;
    box-shadow: 0 6px 18px rgba(31, 49, 79, 0.09);
    transform: translateY(-1px);
  }
  .club-competition-logos .competition-chip{
    padding: 3px 7px 3px 3px;
    color: var(--muted);
  }
  .club-competition-logos .competition-chip-logo,
.club-competition-logos .competition-fallback{
    width: 25px;
    height: 25px;
  }
  .club-hero{
    position: relative;
    overflow: hidden;
    min-height: 230px;
    padding: 30px;
    border-radius: 24px;
    background: linear-gradient(
      125deg,
      var(--club-primary),
      var(--club-secondary)
    );
    color: #fff;
    display: flex;
    align-items: center;
    gap: 28px;
    box-shadow: var(--shadow);
  }
  .club-hero:after{
    content: "";
    position: absolute;
    right: -80px;
    top: -110px;
    width: 320px;
    height: 320px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
  }
  .club-hero-logo{
    position: relative;
    z-index: 1;
    width: 128px;
    height: 128px;
    padding: 10px;
    object-fit: contain;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 22px;
  }
  .club-hero .logo-fallback.large{
    position: relative;
    z-index: 1;
    width: 128px;
    height: 128px;
    border-radius: 22px;
  }
  .club-hero-copy{
    position: relative;
    z-index: 1;
    min-width: 0;
  }
  .club-hero-copy h2{
    margin: 0;
    font-size: clamp(32px, 5vw, 54px);
    letter-spacing: -0.04em;
  }
  .club-hero-competitions{
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 17px;
  }
  .club-hero-competitions .competition-chip{
    background: rgba(255, 255, 255, 0.95);
    color: #24334a;
  }
  .club-kpis{
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    margin-top: 16px;
  }
  .club-kpi{
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 16px;
  }
  .club-kpi > span,
.club-kpi small{
    display: block;
    color: var(--muted);
    font-size: 11px;
  }
  .club-kpi strong{
    display: block;
    font-size: 26px;
    margin: 6px 0 3px;
  }
  .club-layout{
    display: grid;
    grid-template-columns: minmax(0, 1.75fr) minmax(280px, 0.75fr);
    gap: 16px;
    margin-top: 16px;
    align-items: start;
  }
  .club-side{
    display: grid;
    gap: 16px;
  }
  .club-panel{
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 19px;
    padding: 20px;
    box-shadow: 0 10px 28px rgba(31, 49, 79, 0.05);
  }
  .section-count{
    display: grid;
    place-items: center;
    min-width: 36px;
    height: 30px;
    border-radius: 10px;
    background: #e8f0ff;
    color: #1e55b3;
    font-weight: 800;
  }
  .club-roster{
    margin-top: 0;
  }
  .club-roster li{
    min-width: 0;
  }
  .club-roster .roster-card{
    width: 100%;
    cursor: pointer;
    text-align: left;
  }
  .club-roster .roster-card:hover{
    border-color: #9db8df;
    background: #f9fbff;
  }
  .honours-grid{
    display: grid;
    gap: 8px;
  }
  .honour-card{
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 11px;
    border-radius: 12px;
    background: #fff8dd;
    border: 1px solid #eedc97;
  }
  .honour-icon{
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border-radius: 10px;
    background: #d4a900;
    color: #fff;
  }
  .honour-card strong,
.honour-card span{
    display: block;
  }
  .honour-card div span{
    margin-top: 3px;
    color: #776936;
    font-size: 11px;
  }
  .club-empty{
    display: grid;
    gap: 5px;
    padding: 18px;
    border: 1px dashed #d9c778;
    border-radius: 13px;
    background: #fffdf3;
  }
  .club-empty span,
.future-panel p{
    color: var(--muted);
    font-size: 12px;
    line-height: 1.55;
  }
  .future-panel{
    background: linear-gradient(145deg, #f8fbff, #eef4fb);
  }
  .future-panel h2{
    font-size: 18px;
    margin: 5px 0 8px;
  }
  .inline-warning{
    padding: 11px 14px;
    border: 1px solid #f2d49e;
    background: #fff9ec;
    color: #8b5a0d;
    border-radius: 12px;
  }
  .club-loading{
    display: flex;
    align-items: center;
    gap: 22px;
    padding: 32px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 20px;
  }
  .club-loading h2{
    margin: 0 0 8px;
  }
  .club-loading p{
    margin: 0;
    color: var(--muted);
  }
  .detail-drawer.wide{
    width: min(1180px, 100%);
    padding: 18px;
    background: #0b1220;
  }
  .detail-drawer.wide-competition{
    width: min(590px, 100%);
    padding: 18px;
  }
  .detail-drawer.wide .drawer-close{
    position: sticky;
    z-index: 5;
    top: 0;
    float: right;
    background: #28344a;
    color: #fff;
  }
  .player-profile{
    clear: both;
    color: #e8edf5;
  }
  .profile-hero{
    min-height: 164px;
    display: grid;
    grid-template-columns: 128px minmax(0, 1fr) auto;
    gap: 22px;
    align-items: center;
    padding: 20px;
    border-radius: 18px 18px 0 0;
    background: linear-gradient(120deg, #424a5a, #20283a);
  }
  .player-profile.goalkeeper .profile-hero{
    background: linear-gradient(120deg, #4b1025, #1d1020);
  }
  .player-portrait{
    width: 128px;
    height: 144px;
    object-fit: cover;
    object-position: center top;
    border-radius: 12px 12px 0 0;
    background: #d8dee8;
  }
  .player-portrait.fallback{
    display: grid;
    place-items: center;
  }
  .player-portrait.fallback .flag-icon,
.player-portrait.fallback .flag-placeholder{
    width: 54px !important;
    height: 54px !important;
    min-width: 54px;
    max-width: 54px;
    flex-basis: 54px;
  }
  .profile-identity h2{
    font-size: clamp(26px, 4vw, 40px);
    margin: 0 0 8px;
  }
  .profile-identity > p:last-of-type{
    color: #c5cfde;
  }
  .profile-nationality{
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 14px;
    color: #c5cfde;
    font-size: 12px;
  }
  .profile-rating{
    min-width: 128px;
    padding: 16px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 14px;
    background: rgba(0, 0, 0, 0.16);
    text-align: center;
  }
  .profile-rating span{
    display: block;
    color: #aebbd0;
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
  }
  .profile-rating strong{
    display: block;
    margin-top: 4px;
    font-size: 38px;
    color: #ffd148;
  }
  .profile-body{
    display: grid;
    grid-template-columns: 220px minmax(0, 1fr);
    gap: 18px;
    padding: 18px;
    border: 1px solid #d3dcea;
    border-top: 0;
    border-radius: 0 0 18px 18px;
    background: #f4f6fa;
  }
  .profile-overview{
    padding: 17px;
    border-right: 1px solid #29354d;
  }
  .profile-overview h3{
    margin: 6px 0 10px;
  }
  .profile-overview > p:not(.eyebrow){
    color: #9eabc0;
    font-size: 12px;
    line-height: 1.55;
  }
  .profile-id{
    display: inline-flex;
    margin-top: 12px;
    padding: 7px 9px;
    border-radius: 8px;
    background: #e7ecf5;
    color: #5b6b85;
    font-size: 11px;
  }
  .profile-attributes{
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
  }
  .player-profile.goalkeeper .profile-attributes{
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
  .profile-attributes .attribute-group{
    margin: 0;
  }
  .profile-attributes .attribute-group h3{
    padding-bottom: 8px;
    border-bottom: 1px solid #d3dcea;
    color: #5b6b85;
  }
  .profile-attributes .attribute-list{
    grid-template-columns: 1fr;
    gap: 3px;
  }
  .attribute-row{
    border-radius: 4px !important;
    background: #e9edf5 !important;
    color: #0f1a2b;
  }
  .attribute-row span{
    color: #0f1a2b;
  }
  .attribute-row strong{
    min-width: 28px;
    text-align: center;
  }
  .attribute-row.solid{
    box-shadow: inset 3px 0 #5b8fd8;
  }
  .attribute-row.strong{
    background: #263a38 !important;
    box-shadow: inset 3px 0 #78d6a3;
  }
  .attribute-row.elite{
    background: #34415a !important;
    box-shadow: inset 3px 0 #ffb020;
  }
  .attribute-row.elite strong{
    color: #ffb020;
  }
  .attribute-row.strong strong{
    color: #93e2b7;
  }
  .compare-grid{
    display: block;
  }
  .compare-summaries{
    display: grid;
    grid-template-columns: 190px repeat(var(--compare-count, 1), minmax(180px, 1fr));
    gap: 0;
    margin: 18px 0;
  }
  .compare-summary-spacer{
    display: flex;
    align-items: flex-end;
    padding: 0 8px 12px;
    color: var(--muted);
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.06em;
  }
  .compare-summary-card{
    position: relative;
    min-width: 0;
    padding: 15px 70px 15px 15px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: var(--surface);
    margin-inline: 5px;
  }
  .compare-summary-card.best-ca{
    border-color: #8fd0ad;
    box-shadow: 0 0 0 2px rgba(17, 155, 101, 0.08);
  }
  .compare-summary-head{
    display: flex;
    align-items: center;
    gap: 9px;
    padding-right: 28px;
  }
  .compare-summary-head > div{
    min-width: 0;
  }
  .compare-summary-head strong,
.compare-summary-head span{
    display: block;
  }
  .compare-summary-head strong{
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .compare-summary-head span{
    margin-top: 3px;
    color: var(--muted);
    font-size: 10px;
  }
  .compare-summary-head small{
    display: block;
    margin-top: 3px;
    color: #6f7f98;
    font-size: 9px;
    font-weight: 800;
  }
  .compare-ca{
    position: absolute;
    top: 50%;
    right: 15px;
    display: grid;
    justify-items: end;
    gap: 2px;
    margin: 0;
    transform: translateY(-50%);
  }
  .compare-ca span{
    color: var(--muted);
    font-size: 11px;
  }
  .compare-ca strong{
    font-size: 24px;
  }
  .compare-ca em{
    margin-left: auto;
    padding: 4px 7px;
    border-radius: 999px;
    background: #dff5e9;
    color: #08764a;
    font-size: 9px;
    font-style: normal;
    font-weight: 800;
    text-transform: uppercase;
  }
  .compare-table-section{
    margin-top: 26px;
  }
  .compare-table-wrap{
    overflow: auto;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: var(--surface);
  }
  .compare-table{
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    min-width: 640px;
  }
  .compare-table th,
.compare-table td{
    padding: 11px 12px;
    border-bottom: 1px solid var(--line);
    border-right: 1px solid var(--line);
    text-align: center;
    font-size: 12px;
  }
  .compare-table th:first-child{
    text-align: left;
    position: sticky;
    left: 0;
    z-index: 2;
    background: #f6f8fb;
    min-width: 190px;
  }
  .compare-table thead th{
    position: sticky;
    top: 0;
    z-index: 3;
    background: #172238;
    color: #fff;
    font-size: 11px;
  }
  .compare-table thead th:first-child{
    z-index: 4;
    background: #172238;
  }
  .compare-table tr:last-child th,
.compare-table tr:last-child td{
    border-bottom: 0;
  }
  .compare-table th:last-child,
.compare-table td:last-child{
    border-right: 0;
  }
  .compare-table td{
    position: relative;
    font-weight: 800;
    color: #53627a;
  }
  .compare-table td.solid{
    background: #edf4ff;
    color: #25518f;
  }
  .compare-table td.strong{
    background: #e6f6ed;
    color: #147448;
  }
  .compare-table td.elite{
    background: #fff5da;
    color: #9a6500;
  }
  .compare-table td.skill-best{
    outline: 2px solid #18a668;
    outline-offset: -2px;
    background: #daf4e6;
    color: #08764a;
  }
  .best-mark{
    display: block;
    margin-top: 3px;
    font-size: 8px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
  }
  .skill-missing{
    color: #a8b2c0 !important;
    background: #fafbfc !important;
  }
  @media (max-width: 1200px) {
    .profile-attributes,
.player-profile.goalkeeper .profile-attributes{
      grid-template-columns: repeat(2, minmax(0, 1fr));
    }
  }
  @media (max-width: 860px) {
    .club-kpis{
      grid-template-columns: repeat(2, 1fr);
    }
    .club-layout{
      grid-template-columns: 1fr;
    }
    .profile-body{
      grid-template-columns: 1fr;
    }
    .profile-overview{
      border-right: 0;
      border-bottom: 1px solid #29354d;
    }
    .profile-hero{
      grid-template-columns: 96px minmax(0, 1fr);
    }
    .player-portrait{
      width: 96px;
      height: 116px;
    }
    .profile-rating{
      grid-column: 1/-1;
      display: flex;
      justify-content: space-between;
      align-items: center;
    }
    .profile-rating strong{
      font-size: 28px;
    }
  }
  @media (max-width: 560px) {
    .club-hero{
      align-items: flex-start;
      gap: 16px;
      padding: 20px;
    }
    .club-hero-logo,
.club-hero .logo-fallback.large{
      width: 82px;
      height: 82px;
    }
    .club-hero-copy h2{
      font-size: 28px;
    }
    .club-kpis{
      grid-template-columns: 1fr 1fr;
    }
    .profile-hero{
      grid-template-columns: 74px minmax(0, 1fr);
      padding: 14px;
      gap: 12px;
    }
    .player-portrait{
      width: 74px;
      height: 96px;
    }
    .profile-identity h2{
      font-size: 23px;
    }
    .profile-attributes,
.player-profile.goalkeeper .profile-attributes{
      grid-template-columns: 1fr;
    }
    .detail-drawer.wide,
    .detail-drawer.wide-competition{
      padding: 8px;
    }
    .compare-summaries{
      grid-template-columns: 1fr;
    }
  }
  
  .profile-body{
    grid-template-columns: 120px minmax(0, 1fr);
  }
  .profile-overview.compact{
    display: flex;
    align-items: flex-start;
    padding: 8px;
    border-right: 1px solid #29354d;
  }
  .profile-overview.compact .profile-id{
    margin-top: 0;
  }
  .player-profile.goalkeeper .profile-attributes{
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .profile-attributes .attribute-row,
.profile-attributes .attribute-row.solid,
.profile-attributes .attribute-row.strong,
.profile-attributes .attribute-row.elite{
    background: #e9edf5 !important;
    box-shadow: none;
    color: #0f1a2b;
  }
  .profile-attributes .attribute-row strong,
.profile-attributes .attribute-row.strong strong,
.profile-attributes .attribute-row.elite strong{
    color: #0f1a2b;
  }
  .compare-summaries{
    grid-template-columns: repeat(var(--compare-count, 1), minmax(180px, 1fr));
    overflow-x: auto;
  }
  .compare-table{
    table-layout: fixed;
  }
  .compare-table th:first-child{
    width: 190px;
  }
  .compare-table td,
.compare-table td.solid,
.compare-table td.strong,
.compare-table td.elite{
    background: var(--surface);
    color: #53627a;
  }
  .compare-table td.skill-best{
    outline: 2px solid #18a668;
    outline-offset: -2px;
    background: #daf4e6;
    color: #08764a;
  }
  .best-mark,
.compare-ca em{
    display: none;
  }
  @media (max-width: 1200px) {
    .player-profile.goalkeeper .profile-attributes{
      grid-template-columns: repeat(2, minmax(0, 1fr));
    }
  }
  @media (max-width: 860px) {
    .profile-body{
      grid-template-columns: 1fr;
    }
    .profile-overview.compact{
      border-right: 0;
      border-bottom: 1px solid #29354d;
    }
  }
  @media (max-width: 560px) {
    .compare-summaries{
      grid-template-columns: repeat(
        var(--compare-count, 1),
        minmax(220px, 1fr)
      );
    }
    .profile-overview.compact{
      padding: 8px 0;
    }
    .player-profile.goalkeeper .profile-attributes{
      grid-template-columns: 1fr;
    }
  }
  
  .player-search-panel{
    grid-template-columns: minmax(260px, 1fr) 170px auto auto;
  }
  .presence-filter{
    display: grid;
    gap: 5px;
    color: var(--muted);
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
  }
  .presence-filter select{
    height: 100%;
    min-height: 44px;
    border: 1px solid var(--line);
    border-radius: 11px;
    padding: 9px 12px;
    background: #fff;
    color: var(--text);
    font-weight: 700;
    text-transform: none;
    letter-spacing: 0;
  }
  .player-card-icons,
.compare-card-icons{
    position: relative;
    display: block;
    width: 39px;
    min-width: 39px;
    height: 31px;
  }
  .player-identity-icons{
    position: relative;
    display: block;
    flex: 0 0 48px;
    width: 48px;
    min-width: 48px;
    height: 48px;
  }
  .player-identity-icons .identity-team-logo,
.player-identity-icons .flag-icon,
.player-identity-icons .flag-placeholder{
    display: block;
    margin: 0;
    object-fit: contain;
  }
  .player-identity-icons .identity-team-logo{
    position: absolute !important;
    inset: 4px auto auto 4px;
    width: 40px !important;
    height: 40px !important;
    min-width: 40px;
    padding: 3px;
    border: 1px solid var(--line);
    border-radius: 11px;
    background: var(--surface);
  }
  .player-identity-icons:not(.no-team) .flag-icon,
.player-identity-icons:not(.no-team) .flag-placeholder{
    position: absolute !important;
    right: -1px;
    bottom: -1px;
    z-index: 2;
    width: 21px !important;
    height: 21px !important;
    min-width: 21px;
    border: 2px solid #fff;
    box-shadow: 0 2px 7px rgba(15, 23, 42, 0.22);
  }
  .player-identity-icons.no-team{
    display: grid;
    place-items: center;
  }
  .player-identity-icons.no-team .flag-icon,
.player-identity-icons.no-team .flag-placeholder{
    position: static !important;
    width: 30px !important;
    height: 30px !important;
  }
  .player-card-icons .flag-icon,
.player-card-icons .flag-placeholder,
.compare-card-icons .flag-icon,
.compare-card-icons .flag-placeholder{
    position: absolute;
    left: 0;
    top: 3px;
  }
  .player-team-logo,
.compare-team-logo,
.profile-team-logo{
    display: block;
    object-fit: contain;
    background: var(--surface);
    border: 1px solid var(--line);
  }
  .player-result .player-main{
    gap: 10px;
  }
  .player-result .player-list-identity{
    margin-left: -18px;
  }
  .player-team-logo,
.compare-team-logo{
    position: absolute;
    right: 0;
    bottom: 0;
    width: 25px;
    height: 25px;
    padding: 2px;
    border-radius: 8px;
  }
  .player-team-fallback{
    display: grid;
    place-items: center;
    width: 25px;
    height: 25px;
    border-radius: 8px;
    color: #fff;
    font-size: 8px;
    font-weight: 800;
  }
  .player-card-icons .player-team-fallback,
.compare-card-icons .player-team-fallback{
    position: absolute;
    right: 0;
    bottom: 0;
  }
  .profile-fmto-team{
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 10px;
    color: #fff;
    font-size: 12px;
    font-weight: 800;
  }
  .profile-team-logo{
    width: 34px;
    height: 34px;
    padding: 3px;
    border-radius: 9px;
  }
  .honour-card{
    border-left: 4px solid var(--honour-primary, #d4a900);
  }
  .honour-competition-logo,
.honour-icon{
    width: 42px;
    height: 42px;
    min-width: 42px;
    padding: 4px;
    border-radius: 10px;
    object-fit: contain;
    background: var(--surface);
  }
  .honour-icon{
    display: grid;
    place-items: center;
    background: var(--honour-primary, #d4a900);
    color: #fff;
    font-size: 9px;
    font-weight: 900;
  }
  .honour-card div span{
    line-height: 1.4;
  }
  .team-preview{
    clear: both;
  }
  .team-preview-hero{
    display: grid;
    grid-template-columns: 150px minmax(0, 1fr);
    gap: 22px;
    align-items: center;
    margin: -28px -28px 0;
    padding: 34px 28px 26px;
    background: linear-gradient(
      125deg,
      var(--club-primary),
      var(--club-secondary)
    );
    color: #fff;
  }
  .team-preview-hero h2{
    margin: 0;
    font-size: 36px;
    letter-spacing: -0.035em;
  }
  .team-preview-brand{
    display: grid;
    justify-items: center;
    gap: 10px;
  }
  .team-preview-brand .club-hero-logo,
.team-preview-brand .logo-fallback.large{
    width: 118px;
    height: 118px;
  }
  .team-hub-link{
    border: 1px solid rgba(255, 255, 255, 0.45);
    border-radius: 9px;
    padding: 8px 10px;
    background: rgba(0, 0, 0, 0.2);
    color: #fff;
    font-size: 11px;
    font-weight: 800;
    cursor: pointer;
  }
  .team-hub-link:hover{
    background: var(--surface);
    color: #172238;
  }
  .team-preview-metrics{
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin: 16px 0;
  }
  .team-preview-roster{
    margin-top: 18px;
  }
  .team-preview-roster .roster-grid{
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .team-preview-roster .roster-card{
    width: 100%;
    cursor: pointer;
    text-align: left;
  }
  .palmares-hero{
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 30px;
    min-height: 250px;
    padding: 36px;
    border-radius: 26px;
    background: radial-gradient(
        circle at 85% 15%,
        rgba(255, 213, 89, 0.24),
        transparent 32%
      ),
      linear-gradient(125deg, #121a2b, #31230d);
    color: #fff;
    box-shadow: var(--shadow);
  }
  .palmares-hero:after{
    content: "";
    position: absolute;
    right: -80px;
    bottom: -160px;
    width: 360px;
    height: 360px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 50%;
  }
  .palmares-hero h2{
    margin: 0 0 10px;
    font-family: var(--font-serif);
    font-size: clamp(38px, 6vw, 72px);
    font-weight: 600;
    letter-spacing: -0.045em;
  }
  .palmares-hero p:last-child{
    max-width: 620px;
    margin: 0;
    color: #d9d4ca;
  }
  .palmares-hero-kpis{
    position: relative;
    z-index: 1;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
  }
  .palmares-hero-kpis span{
    min-width: 105px;
    padding: 14px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.07);
    color: #d9d4ca;
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
  }
  .palmares-hero-kpis strong{
    display: block;
    margin-bottom: 3px;
    color: #ffd66b;
    font-family: var(--font-serif);
    font-size: 28px;
  }
  .palmares-editorial-grid{
    display: grid;
    grid-template-columns: minmax(280px, 0.75fr) minmax(0, 1.25fr);
    gap: 16px;
    margin-top: 16px;
  }
  .palmares-ranking,
.palmares-competitions{
    padding: 22px;
    border: 1px solid var(--line);
    border-radius: 20px;
    background: var(--surface);
    box-shadow: 0 10px 28px rgba(31, 49, 79, 0.05);
  }
  .palmares-ranking ol{
    display: grid;
    gap: 0;
    margin: 0;
    padding: 0;
    list-style: none;
    max-height: 510px;
    overflow-y: auto;
    padding-right: 7px;
    scrollbar-gutter: stable;
  }
  .palmares-ranking li{
    display: grid;
    grid-template-columns: 28px minmax(0, 1fr) auto;
    gap: 10px;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid var(--line);
  }
  .palmares-ranking li:last-child{
    border-bottom: 0;
  }
  .ranking-position{
    color: #a07a20;
    font-family: var(--font-serif);
    font-size: 18px;
  }
  .ranking-team{
    display: flex;
    align-items: center;
    gap: 9px;
    min-width: 0;
  }
  .ranking-team .team-logo,
.ranking-team .logo-fallback{
    width: 32px;
    height: 32px;
  }
  .ranking-titles{
    color: var(--muted);
    font-size: 11px;
    font-weight: 800;
  }
  .palmares-competition-grid{
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }
  .palmares-competition-card{
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: #fafbfe;
    width: 100%;
    color: inherit;
    text-align: left;
    cursor: pointer;
    transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
  }
  .palmares-competition-card:hover,
.palmares-competition-card:focus-visible{
    transform: translateY(-2px);
    border-color: #c69a2c;
    box-shadow: 0 10px 20px rgba(78, 57, 11, 0.1);
  }
  .palmares-competition-logo,
.palmares-competition-card .competition-fallback{
    width: 46px;
    height: 46px;
    min-width: 46px;
    padding: 4px;
    object-fit: contain;
    border-radius: 10px;
    background: var(--surface);
  }
  .palmares-competition-card strong,
.palmares-competition-card span{
    display: block;
  }
  .palmares-competition-card span{
    margin-top: 4px;
    color: var(--muted);
    font-size: 11px;
  }
  .palmares-timeline{
    margin-top: 26px;
  }
  .palmares-season-row{
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    gap: 0;
    border-top: 1px solid #ccd4df;
  }
  .palmares-season-row__divider{
    width: 1px;
    margin: 20px 18px;
    background: #ccd4df;
  }
  .palmares-season{
    display: grid;
    grid-template-columns: 130px minmax(0, 1fr);
    gap: 18px;
    padding: 20px 0;
    min-width: 0;
  }
  .palmares-season-label{
    position: sticky;
    top: 12px;
    align-self: start;
    width: 100%;
    padding: 13px;
    border: 0;
    border-left: 3px solid #c69a2c;
    border-radius: 0;
    background: var(--surface);
    cursor: pointer;
    text-align: left;
    font: inherit;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
  }
  .palmares-season-label__chevron{
    color: #a07a20;
    font-size: 14px;
    transition: transform .18s ease;
  }
  .palmares-season.is-collapsed .palmares-season-label__chevron{
    transform: rotate(-90deg);
  }
  .palmares-season-label span,
.palmares-season-label strong{
    display: block;
  }
  .palmares-season-label span{
    color: var(--muted);
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
  }
  .palmares-season-label strong{
    margin-top: 3px;
    font-family: var(--font-serif);
    font-size: 25px;
  }
  .palmares-season-winners{
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }
  .palmares-season-winners[hidden]{
    display: none;
  }
  .palmares-winner-card{
    position: relative;
    overflow: hidden;
    padding: 13px;
    border: 1px solid var(--line);
    border-top: 3px solid var(--competition-primary, #c69a2c);
    border-radius: 14px;
    background: linear-gradient(145deg, #fff 0%, color-mix(in srgb, var(--competition-primary, #c69a2c) 8%, #fff) 100%);
    box-shadow: 0 9px 24px rgba(28, 38, 58, 0.07);
  }
  .palmares-winner-card::after{
    content: "★";
    position: absolute;
    right: 9px;
    top: 4px;
    color: color-mix(in srgb, var(--competition-primary, #c69a2c) 24%, transparent);
    font-size: 42px;
    line-height: 1;
  }
  .palmares-winner-kicker{
    position: relative;
    z-index: 1;
    display: block;
    margin-bottom: 8px;
    color: var(--competition-primary, #9b7418);
    font-family: var(--font-serif);
    font-size: 9px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.12em;
  }
  .palmares-winner-competition,
.palmares-winner-team{
    display: flex;
    align-items: center;
    gap: 8px;
  }
  .palmares-winner-competition{
    color: var(--muted);
    font-size: 10px;
  }
  .palmares-winner-competition-logo,
.palmares-winner-competition .competition-fallback{
    width: 28px;
    height: 28px;
    min-width: 28px;
    padding: 2px;
    object-fit: contain;
    border-radius: 7px;
    background: #f3f5f8;
  }
  .palmares-winner-team{
    margin-top: 12px;
  }
  .palmares-winner-team .team-logo,
.palmares-winner-team .logo-fallback{
    width: 38px;
    height: 46px;
    width: 46px;
  }
  .palmares-winner-team strong{
    font-family: var(--font-serif);
    font-size: 15px;
  }
  .competition-history-hero{
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 24px;
    border-radius: 18px;
    background: linear-gradient(135deg, #111927, color-mix(in srgb, var(--history-primary, #c69a2c) 36%, #111927));
    color: #fff;
  }
  .competition-history-logo{ width: 78px; height: 78px; padding: 7px; object-fit: contain; border-radius: 16px; background: var(--surface); }
  .competition-history-hero h2{ margin: 3px 0 5px; font-family: var(--font-serif); font-size: 30px; }
  .competition-history-hero p{ margin: 0; }
  .competition-history-list{ display: grid; gap: 10px; margin-top: 18px; }
  .competition-history-season{ display: grid; grid-template-columns: 92px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 12px 14px; border: 1px solid var(--line); border-left: 4px solid var(--history-primary, #c69a2c); border-radius: 13px; background: var(--surface); }
  .history-champion-mister{ text-align: right; padding-right: 4px; }
  .history-champion-mister small,
.history-champion-mister strong{ display: block; }
  .history-champion-mister small{ color: var(--muted); font-size: 9px; text-transform: uppercase; letter-spacing: .06em; }
  .history-champion-mister strong{ margin-top: 2px; color: var(--text); font-size: 13px; }
  .history-medal{ display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: #f7edcf; color: #8c6715; font-family: var(--font-serif); font-weight: 800; }
  .competition-history-season small,
.competition-history-season strong{ display: block; }
  .competition-history-season small{ color: var(--muted); font-size: 9px; text-transform: uppercase; letter-spacing: .06em; }
  .history-champion{ display: flex; align-items: center; gap: 10px; }
  .history-champion .team-logo,
.history-champion .logo-fallback{ width: 38px; height: 38px; }
  @media (max-width: 1200px) {
    .player-search-panel{
      grid-template-columns: minmax(240px, 1fr) 160px auto;
    }
    .player-search-panel .primary-button{
      grid-column: auto;
    }
    .palmares-season-winners{
      grid-template-columns: repeat(2, minmax(0, 1fr));
    }
  }
  @media (max-width: 860px) {
    .player-search-panel{
      grid-template-columns: 1fr 1fr;
    }
    .player-query{
      grid-column: 1/-1;
    }
    .palmares-hero{
      align-items: flex-start;
      flex-direction: column;
    }
    .palmares-editorial-grid{
      grid-template-columns: 1fr;
    }
    .palmares-season{
      grid-template-columns: 1fr;
    }
    .palmares-season-row{
      grid-template-columns: 1fr;
    }
    .palmares-season-row__divider{
      display: none;
    }
    .palmares-season-label{
      position: static;
    }
    .team-preview-hero{
      grid-template-columns: 110px minmax(0, 1fr);
    }
  }
  @media (max-width: 560px) {
    .player-search-panel{
      grid-template-columns: 1fr;
    }
    .player-query{
      grid-column: auto;
    }
    .palmares-hero{
      padding: 24px;
    }
    .palmares-hero-kpis{
      width: 100%;
      display: grid;
      grid-template-columns: repeat(3, 1fr);
    }
    .palmares-hero-kpis span{
      min-width: 0;
      padding: 10px;
    }
    .palmares-hero-kpis strong{
      font-size: 22px;
    }
    .palmares-competition-grid,
.palmares-season-winners{
      grid-template-columns: 1fr;
    }
    .team-preview-hero{
      grid-template-columns: 1fr;
      margin: -20px -20px 0;
      text-align: center;
    }
    .team-preview-hero .club-hero-competitions{
      justify-content: center;
    }
    .team-preview-metrics{
      grid-template-columns: 1fr;
    }
    .team-preview-roster .roster-grid{
      grid-template-columns: 1fr;
    }
    .profile-fmto-team{
      margin-top: 8px;
    }
  }
  
  .profile-id-under-name{
    display: block;
    width: max-content;
    margin: -2px 0 8px;
    padding: 0;
    background: transparent;
    color: #5b6b85;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.04em;
  }
  .profile-membership{
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 10px;
    max-width: 620px;
    margin-top: 14px;
  }
  .profile-membership-item{
    min-width: 0;
    padding: 9px 11px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 10px;
    background: rgba(5, 10, 20, 0.2);
  }
  .profile-membership-label{
    display: block;
    margin-bottom: 6px;
    color: #8998ae;
    font-size: 9px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
  }
  .profile-membership-item > div{
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
  }
  .profile-membership-item strong{
    overflow: hidden;
    color: #eef3fa;
    font-size: 12px;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .profile-membership-item.nation{
    text-align: right;
  }
  .profile-membership-item.nation > div{
    justify-content: flex-end;
  }
  .profile-membership-item .profile-team-logo,
.profile-membership-item .flag-icon,
.profile-membership-item .flag-placeholder{
    position: static;
    width: 25px !important;
    height: 25px !important;
    min-width: 25px;
    margin: 0;
  }
  .profile-team-placeholder{
    display: grid;
    width: 25px;
    height: 25px;
    place-items: center;
    border-radius: 50%;
    background: #253148;
    color: #9eabc0;
    font-weight: 900;
  }
  .profile-body{
    grid-template-columns: 236px minmax(0, 1fr);
    align-items: start;
  }
  .profile-role-panel{
    min-width: 0;
    padding-right: 18px;
    border-right: 1px solid #d3dcea;
  }
  .role-panel-heading{
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 7px;
  }
  .role-panel-heading span{
    color: #0f1a2b;
    font-size: 13px;
    font-weight: 900;
  }
  .role-panel-heading small{
    color: #5b6b85;
    font-size: 8px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.06em;
  }
  .role-pitch{
    position: relative;
    display: grid;
    grid-template-rows: repeat(6, 1fr);
    gap: 4px;
    min-height: 350px;
    padding: 12px 10px;
    overflow: hidden;
    border: 2px solid #8da9a0;
    border-radius: 8px;
    background:
      linear-gradient(0deg, transparent calc(50% - .5px), rgba(211, 231, 224, 0.32) calc(50% - .5px), rgba(211, 231, 224, 0.32) calc(50% + .5px), transparent calc(50% + .5px)),
      repeating-linear-gradient(0deg, rgba(255,255,255,0.025) 0 44px, rgba(255,255,255,0.075) 44px 88px),
      #0f4b43;
  }
  .role-pitch::before{
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 54px;
    height: 54px;
    transform: translate(-50%, -50%);
    border: 1px solid rgba(211, 231, 224, 0.3);
    border-radius: 50%;
  }
  .role-pitch::after{
    display: none;
  }
  .role-penalty-area{
    position: absolute;
    z-index: 0;
    left: 35%;
    bottom: -2px;
    width: 30%;
    height: 10%;
    border: 1px solid rgba(211, 231, 224, 0.36);
    border-bottom: 0;
    pointer-events: none;
  }
.role-line{
    position: relative;
    z-index: 1;
    display: grid;
    align-items: center;
    justify-items: center;
  }
  .role-line-1{ grid-template-columns: 1fr; }
  .role-line-2{ grid-template-columns: repeat(2, 1fr); }
  .role-line-3{ grid-template-columns: repeat(3, 1fr); }
  .role-line-attacking-wide{
    padding-inline: 0;
  }
  .role-line-attacking-wide .role-position:first-child{
    transform: none;
  }
  .role-line-attacking-wide .role-position:last-child{
    transform: none;
  }
  .role-line-midfield{
    transform: translateY(5px);
  }
  .role-position{
    display: grid;
    justify-items: center;
    gap: 2px;
    color: #dce7e4;
    font-size: 10px;
  }
  .role-position strong{
    padding: 1px 4px;
    border-radius: 4px;
    background: rgba(3, 13, 15, 0.62);
  }
  .role-dot{
    display: inline-block;
    width: 21px;
    height: 21px;
    border: 2px solid rgba(255,255,255,0.68);
    border-radius: 50%;
    box-shadow: 0 1px 5px rgba(0,0,0,0.5);
  }
  .role-natural{ background: #00ef31; }
  .role-comfortable{ background: #b9e51e; }
  .role-known{ background: #ffd20a; }
  .role-doubtful{ background: #ff8a0a; }
  .role-out{ background: #ff5a12; }
  .role-unrated{ background: #2b2624; }
  .foot-panel{
    margin-top: 10px;
    padding-top: 9px;
    border-top: 1px solid #d3dcea;
  }
  .foot-panel-heading{
    margin-bottom: 7px;
    color: #0f1a2b;
    font-size: 11px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.05em;
  }
  .foot-options{
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 7px;
  }
  .foot-option{
    display: grid;
    place-items: center;
    align-items: center;
    min-width: 0;
    padding: 7px;
    border: 1px solid #d3dcea;
    border-radius: 8px;
    background: #e9edf5;
    color: #0f1a2b;
  }
  .foot-option .role-dot{
    width: 21px;
    height: 21px;
  }
  .attribute-row strong.skill-colored,
.compare-table td.skill-colored,
.compare-mobile-value.skill-colored{
    color: var(--skill-color, #0f1a2b);
  }
  .compare-table td.skill-best{
    outline: 2px solid #18a668;
    outline-offset: -2px;
    background: #daf4e6;
  }
  .compare-table th:first-child{
    width: 190px;
    min-width: 190px;
  }
  @media (max-width: 860px) {
    .profile-membership{ grid-template-columns: 1fr 1fr; }
    .profile-body{ grid-template-columns: 210px minmax(0, 1fr); }
    .profile-role-panel{ padding-right: 12px; }
    .role-pitch{ min-height: 320px; }
    .compare-summaries{
      grid-template-columns: 150px repeat(var(--compare-count, 1), minmax(170px, 1fr));
      min-width: calc(150px + var(--compare-count, 1) * 180px);
    }
    .compare-table th:first-child{
      width: 150px;
      min-width: 150px;
    }
  }
  @media (max-width: 680px) {
    .profile-membership{ grid-template-columns: 1fr; }
    .profile-membership-item.nation{ text-align: left; }
    .profile-membership-item.nation > div{ justify-content: flex-start; }
    .profile-body{ grid-template-columns: 1fr; }
    .profile-role-panel{
      max-width: 260px;
      width: 100%;
      margin: 0 auto;
      padding: 0 0 16px;
      border-right: 0;
      border-bottom: 1px solid #d3dcea;
    }
  }
  .club-progress-note{
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 12px 0;
    padding: 10px 12px;
    border: 1px solid #cfe1f5;
    border-radius: 11px;
    background: #f4f8fd;
    color: #3d5878;
    font-size: 11px;
    font-weight: 700;
  }
  .compare-table-section{
    margin-top: 18px;
  }
  .compare-table-wrap{
    max-height: calc(100vh - 190px);
    min-height: 360px;
    overflow: auto;
    scrollbar-gutter: stable;
  }
  .compare-table{
    min-width: calc(190px + var(--compare-count, 1) * 230px);
  }
  .compare-table thead th{
    top: 0;
    z-index: 6;
    min-width: 230px;
    padding: 0;
    vertical-align: stretch;
    background: var(--surface);
  }
  .compare-table thead th:first-child{
    left: 0;
    z-index: 7;
    min-width: 190px;
    background: #172238;
  }
  .compare-sticky-label span{
    display: block;
    padding: 16px;
    color: #d8e0ec;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: .08em;
  }
  .compare-table thead .compare-summary-card{
    min-height: 112px;
    margin: 0;
    padding: 15px 74px 15px 13px;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    text-align: left;
  }
  .compare-table thead .compare-summary-card.best-ca{
    background: linear-gradient(180deg, #f2fbf6, #fff);
    box-shadow: inset 0 3px #18a668;
  }
  .compare-table thead .compare-summary-head{
    padding-right: 0;
  }
  .compare-table thead .compare-summary-head strong{
    display: -webkit-box;
    overflow: hidden;
    color: #172238;
    font-size: 19px;
    line-height: 1.08;
    white-space: normal;
    text-overflow: ellipsis;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
  }
  .compare-table thead .remove-compare{
    top: 9px;
    right: 10px;
    width: 27px;
    height: 27px;
    display: grid;
    place-items: center;
    padding: 0;
    background: #eef2f7;
    color: #40516c;
    font-size: 17px;
    line-height: 1;
  }
  .compare-table thead .compare-ca{
    top: auto;
    right: 12px;
    bottom: 11px;
    transform: none;
  }
  .compare-table .compare-group-row th,
.compare-table .compare-group-row th:first-child{
    position: static;
    width: auto;
    min-width: 0;
    padding: 11px 14px;
    border-right: 0;
    background: linear-gradient(90deg, #152138, #22304a);
    color: #fff;
    text-align: left;
  }
  .compare-group-row span,
.compare-group-row strong{
    display: block;
  }
  .compare-group-row span{
    color: #95a5bd;
    font-size: 8px;
    text-transform: uppercase;
    letter-spacing: .08em;
  }
  .compare-group-row strong{
    margin-top: 2px;
    font-size: 14px;
  }
  @media (max-width: 860px) {
    .compare-table-wrap{ max-height: calc(100vh - 165px); }
    .compare-table{ min-width: calc(150px + var(--compare-count, 1) * 205px); }
    .compare-table thead th{ min-width: 205px; }
    .compare-table thead th:first-child{ min-width: 150px; }
    .compare-table thead .compare-summary-card{ min-height: 112px; padding-right: 68px; }
    .compare-table thead .compare-summary-head strong{ font-size: 17px; }
  }
  @media (max-width: 560px) {
    .competition-history-season{ grid-template-columns: 76px minmax(0, 1fr); gap: 8px; padding: 10px; }
    .history-champion-mister{ grid-column: 1 / -1; text-align: left; padding: 4px 0 0 76px; }
    .competition-history-hero{ padding: 18px; }
    .competition-history-logo{ width: 58px; height: 58px; }
    .competition-history-hero h2{ font-size: 24px; }
  }

  .compare-table td.skill-best{
    position: relative;
    outline: 0;
    background: var(--surface);
    color: inherit;
  }
  .compare-table td.skill-best::after{
    content: "";
    position: absolute;
    right: 40%;
    bottom: 5px;
    left: 40%;
    height: 3px;
    border-radius: 999px;
    background: #18a668;
  }

  .player-search-panel{
    grid-template-columns: minmax(260px, 1fr) 170px 210px auto auto;
  }
  .team-filter[hidden]{
    display: none;
  }
  .compare-table thead .compare-ca span{
    color: #61718a;
  }
  .compare-table thead .compare-ca strong{
    color: #172238;
    text-shadow: none;
  }
  .honours-cabinet{
    position: relative;
    overflow: hidden;
    padding: 12px 12px 16px;
    border: 1px solid #6f4d22;
    border-radius: 16px;
    background:
      linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px) 0 0 / 28px 100%,
      linear-gradient(145deg, #2d1c0e, #523417 58%, #24160b);
    box-shadow: inset 0 1px rgba(255,255,255,.12), 0 12px 24px rgba(44,29,12,.14);
  }
  .honours-cabinet::after{
    content: "";
    position: absolute;
    right: 10px;
    bottom: 7px;
    left: 10px;
    height: 7px;
    border-radius: 2px;
    background: linear-gradient(180deg, #a97936, #52300f);
    box-shadow: 0 4px 7px rgba(0,0,0,.35);
  }
  .honours-cabinet .honours-grid{
    position: relative;
    z-index: 1;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 9px;
  }
  .honours-cabinet .honour-card{
    position: relative;
    min-width: 0;
    padding: 12px 10px 12px 43px;
    border: 1px solid rgba(229,179,75,.55);
    border-left: 1px solid rgba(229,179,75,.55);
    background: linear-gradient(145deg, #fffdf6, #f5e7bd);
    box-shadow: 0 7px 14px rgba(0,0,0,.24), inset 0 1px #fff;
  }
  .honour-trophy{
    position: absolute;
    top: 50%;
    left: 11px;
    color: #b88318;
    font-size: 23px;
    line-height: 1;
    transform: translateY(-50%);
    filter: drop-shadow(0 2px 1px rgba(83,51,5,.2));
  }
  .honours-cabinet .honour-competition-logo,
.honours-cabinet .honour-icon{
    width: 34px;
    height: 34px;
    min-width: 34px;
    border: 1px solid rgba(151,109,28,.22);
  }
  .palmares-cabinet{
    position: relative;
    overflow: hidden;
    margin-top: 26px;
    padding: 26px;
    border: 1px solid #6e4b20;
    border-radius: 24px;
    background:
      radial-gradient(circle at 85% 0, rgba(229,179,75,.15), transparent 28%),
      repeating-linear-gradient(90deg, rgba(255,255,255,.025) 0 1px, transparent 1px 46px),
      linear-gradient(145deg, #1f150c, #493019 56%, #21150b);
    box-shadow: inset 0 1px rgba(255,255,255,.12), 0 18px 40px rgba(37,25,11,.18);
  }
  .palmares-cabinet-heading{
    position: relative;
    z-index: 1;
    color: #fff7df;
  }
  .palmares-cabinet-heading .eyebrow{
    color: #e5b34b;
  }
  .cabinet-seal{
    padding: 8px 11px;
    border: 1px solid rgba(229,179,75,.45);
    border-radius: 999px;
    color: #e8ca86;
    font-family: var(--font-serif);
    font-size: 11px;
    letter-spacing: .06em;
  }
  .palmares-cabinet .palmares-season{
    position: relative;
    z-index: 1;
    border-top: 0;
    padding: 20px 0 31px;
  }
  .palmares-cabinet .palmares-season::after{
    content: "";
    position: absolute;
    right: -10px;
    bottom: 10px;
    left: -10px;
    height: 9px;
    border-radius: 2px;
    background: linear-gradient(180deg, #a87534, #4b2d12);
    box-shadow: 0 6px 10px rgba(0,0,0,.45), inset 0 1px rgba(255,255,255,.18);
  }
  .palmares-cabinet .palmares-season-label{
    border: 1px solid rgba(229,179,75,.35);
    border-left: 3px solid #e5b34b;
    border-radius: 9px;
    background: rgba(18,12,7,.72);
    color: #fff5d8;
    box-shadow: 0 8px 18px rgba(0,0,0,.24);
  }
  .palmares-cabinet .palmares-season-label span{
    color: #d1b97f;
  }
  .palmares-cabinet .palmares-winner-card{
    min-height: 142px;
    padding: 15px;
    border: 1px solid rgba(229,179,75,.62);
    border-top: 3px solid var(--competition-primary, #c69a2c);
    background: linear-gradient(145deg, #fffdf6, #f3e2b4);
    box-shadow: 0 12px 24px rgba(0,0,0,.30), inset 0 1px #fff;
  }
  .palmares-cabinet .palmares-winner-card::after{
    display: none;
  }
  .palmares-trophy-mark{
    position: absolute;
    top: 10px;
    right: 12px;
    color: #b68017;
    font-size: 24px;
    filter: drop-shadow(0 2px 1px rgba(83,51,5,.18));
  }
  .palmares-cabinet .palmares-winner-team strong{
    color: #2d2112;
    font-size: 17px;
  }
  .warning-text strong,
.warning-text span{
    display: block;
  }
  .warning-text .secondary-button{
    margin-top: 12px;
  }
  @media (max-width: 1200px) {
    .player-search-panel{
      grid-template-columns: minmax(240px, 1fr) 160px 190px;
    }
  }
  @media (max-width: 860px) {
    .player-search-panel{
      grid-template-columns: 1fr 1fr;
    }
    .player-query{
      grid-column: 1 / -1;
    }
    .palmares-cabinet{
      padding: 20px;
    }
  }
  @media (max-width: 560px) {
    .player-search-panel,
.honours-cabinet .honours-grid{
      grid-template-columns: 1fr;
    }
    .player-query{
      grid-column: auto;
    }
    .palmares-cabinet{
      padding: 16px;
    }
    .cabinet-seal{
      display: none;
    }
  }

  .market-badges{
    display: inline-flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 4px;
    margin-top: 6px;
  }
  .market-badges.compact{
    margin-top: 0;
  }
  .market-badge,
.roster-status-pill{
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 22px;
    padding: 3px 7px;
    border-radius: 999px;
    border: 1px solid transparent;
    font-size: 10px;
    font-weight: 900;
    line-height: 1;
    letter-spacing: 0.02em;
    white-space: nowrap;
  }
  .market-badge.transfer-1{
    border-color: #f2d28d;
    background: #fff6df;
    color: #91630b;
  }
  .market-badge.transfer-2{
    border-color: #f3b189;
    background: #fff0e7;
    color: #a54409;
  }
  .market-badge.blocked{
    border-color: #efb0b0;
    background: #fff0f0;
    color: #9d2525;
  }
  .market-badge.envelope{
    border-color: #9ec0f4;
    background: #edf5ff;
    color: #1f5ea8;
  }
  .roster-status-pill.status-owned{
    border-color: #cfe1f5;
    background: #f3f8ff;
    color: #315b8a;
  }
  .roster-status-pill.status-loan{
    border-color: #d7c9f5;
    background: #f6f1ff;
    color: #6043a7;
  }
  .roster-status-pill.status-out{
    border-color: #f1c5c5;
    background: #fff5f5;
    color: #963333;
  }
  .player-result.market-1t,
.roster-card.market-1t,
.compare-summary-card.market-1t{
    box-shadow: inset 4px 0 #e4a923;
  }
  .player-result.market-2t,
.roster-card.market-2t,
.compare-summary-card.market-2t{
    box-shadow: inset 4px 0 #e36b21;
  }
  .player-result.market-blocked,
.roster-card.market-blocked,
.compare-summary-card.market-blocked{
    border-color: #efb0b0;
  }
  .player-result.market-envelope,
.roster-card.market-envelope,
.compare-summary-card.market-envelope{
    background: linear-gradient(90deg, #f7fbff, #fff);
  }
  .roster-card-side{
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 6px;
    margin-left: auto;
  }
  .roster-detail{
    margin-top: 4px !important;
    color: #7b8799 !important;
    font-size: 9px !important;
  }
  .club-roster-board{
    margin-top: 18px;
  }
  .club-roster-split{
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.85fr);
    gap: 16px;
    align-items: start;
  }
  .roster-list{
    margin: 0;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 8px;
    counter-reset: roster;
  }
  .roster-list > li:not(.roster-limit-line){
    counter-increment: roster;
    position: relative;
    min-width: 0;
  }
  .roster-list > li:not(.roster-limit-line)::before{
    content: attr(data-roster-number);
    position: absolute;
    z-index: 2;
    top: 50%;
    left: 9px;
    min-width: 20px;
    height: 20px;
    padding: 0 5px;
    display: grid;
    place-items: center;
    border-radius: 999px;
    background: var(--surface-2);
    color: #607089;
    font-size: 10px;
    font-weight: 900;
    transform: translateY(-50%);
  }
  .roster-list .roster-card{
    padding-left: 40px;
  }
  .roster-limit-line{
    display: grid;
    place-items: center;
    margin: 4px 0;
    border-top: 2px solid #dc2626;
    color: #991b1b;
    font-size: 10px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.06em;
  }
  .roster-limit-line span{
    margin-top: -1px;
    padding: 4px 8px;
    border: 1px solid #fecaca;
    border-radius: 999px;
    background: #fff5f5;
  }
  .section-count.danger{
    background: #fff1f1;
    color: #b42323;
  }
  .section-count.muted{
    background: #f1f4f8;
    color: var(--muted);
  }
  .club-after-grid{
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(280px, 0.65fr);
    gap: 16px;
    margin-top: 16px;
    align-items: start;
  }
  .profile-membership-item.market{
    grid-column: 1 / -1;
    text-align: left;
  }
  .profile-membership-item.market > div{
    justify-content: flex-start;
    flex-wrap: wrap;
  }
  .profile-membership-item.market .roster-detail{
    display: block;
    margin-top: 7px !important;
    color: #5b6b85 !important;
  }
  .compare-summary-card .market-badges{
    margin-top: 7px;
  }
  .compare-table thead .compare-summary-card.market-1t,
.compare-table thead .compare-summary-card.market-2t{
    box-shadow: inset 4px 0 #e4a923;
  }
  .compare-table thead .compare-summary-card.market-2t{
    box-shadow: inset 4px 0 #e36b21;
  }
  @media (max-width: 1200px) {
    .club-roster-split,
.club-after-grid{
      grid-template-columns: 1fr;
    }
    .club-kpis{
      grid-template-columns: repeat(3, minmax(0, 1fr));
    }
  }
  @media (max-width: 680px) {
    .club-kpis{
      grid-template-columns: 1fr 1fr;
    }
    .roster-card{
      align-items: flex-start;
      flex-direction: column;
    }
    .roster-card-side{
      width: 100%;
      justify-content: flex-start;
      margin-left: 0;
    }
    .player-actions{
      flex-wrap: wrap;
    }
  }
  
  .player-face-stack{
    position: relative;
    display: inline-grid;
    flex: 0 0 auto;
    overflow: visible;
  }
  .player-face-stack > .player-face{
    grid-area: 1 / 1;
  }
  .face-flag-overlay{
    position: absolute;
    right: -4px;
    bottom: -4px;
    display: grid;
    place-items: center;
    width: 22px;
    height: 22px;
    border: 2px solid var(--surface);
    border-radius: 999px;
    overflow: hidden;
    background: var(--surface);
    box-shadow: 0 4px 10px rgba(15, 23, 42, 0.18);
    z-index: 3;
    pointer-events: none;
  }
  .face-flag-overlay .flag-icon,
  .face-flag-overlay .flag-placeholder{
    width: 100% !important;
    height: 100% !important;
    min-width: 100%;
    border: 0;
    border-radius: 999px;
  }
  
  .player-face-stack > .player-face.fallback:not(.hidden):not(.player-photo-empty) ~ .face-flag-overlay{
    display: none;
  }
  .player-results{
    gap: 8px;
  }
  .player-result{
    min-height: 88px;
  }
  .player-result .list-face{
    width: 66px;
    height: 66px;
    min-width: 66px;
    border-radius: 14px;
  }
  .player-result .player-main{
    gap: 16px;
  }
  .compare-face{
    width: 52px;
    height: 52px;
    min-width: 52px;
    border-radius: 12px;
  }
  .compare-picker-face{
    width: 44px;
    height: 44px;
    min-width: 44px;
    border-radius: 11px;
  }
  @media (max-width: 860px){
    .player-result .list-face{
      width: 58px;
      height: 58px;
      min-width: 58px;
    }
  }

  .profile-identity{
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
  }
  .profile-membership{
    width: 100%;
    max-width: none;
    grid-template-columns: repeat(3, minmax(150px, 1fr));
  }
  .profile-membership-item{
    min-height: 72px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: center;
  }
  .profile-membership-item > div,
.profile-membership-item.market > div,
.profile-membership-item.nation > div{
    justify-content: center;
  }
  .profile-membership-item.nation{
    text-align: center;
  }
  .profile-rating{
    align-self: stretch;
    display: flex;
    flex-direction: column;
    justify-content: center;
  }
  @media (max-width: 860px) {
    .profile-membership{
      grid-template-columns: 1fr 1fr;
    }
    .profile-membership-item.market{
      grid-column: 1 / -1;
    }
  }
  @media (max-width: 560px) {
    .profile-membership{
      grid-template-columns: 1fr;
    }
    .profile-membership-item.market{
      grid-column: auto;
    }
  }
  
  .roster-card.market-1t,
.player-result.market-1t,
.compare-summary-card.market-1t{
    background: linear-gradient(90deg, rgba(250, 204, 21, .14), rgba(255, 255, 255, .96) 62%) !important;
  }
  .roster-card.market-2t,
.player-result.market-2t,
.compare-summary-card.market-2t{
    background: linear-gradient(90deg, rgba(239, 68, 68, .15), rgba(255, 255, 255, .96) 62%) !important;
  }
  .roster-card.market-loan:not(.market-1t):not(.market-2t),
.player-result.market-loan:not(.market-1t):not(.market-2t),
.compare-summary-card.market-loan:not(.market-1t):not(.market-2t){
    background: linear-gradient(90deg, rgba(139, 92, 246, .13), rgba(255, 255, 255, .96) 66%) !important;
  }
  .roster-card.market-clause:not(.market-1t):not(.market-2t),
.player-result.market-clause:not(.market-1t):not(.market-2t),
.compare-summary-card.market-clause:not(.market-1t):not(.market-2t){
    background: linear-gradient(90deg, rgba(168, 85, 247, .14), rgba(255, 255, 255, .96) 66%) !important;
  }
  .roster-card.market-under-senior:not(.market-1t):not(.market-2t),
.player-result.market-under-senior:not(.market-1t):not(.market-2t),
.compare-summary-card.market-under-senior:not(.market-1t):not(.market-2t){
    background: linear-gradient(90deg, rgba(244, 63, 94, .13), rgba(255, 255, 255, .96) 66%) !important;
  }
  .roster-card.market-under:not(.market-1t):not(.market-2t),
.player-result.market-under:not(.market-1t):not(.market-2t),
.compare-summary-card.market-under:not(.market-1t):not(.market-2t){
    background: linear-gradient(90deg, rgba(14, 165, 233, .11), rgba(255, 255, 255, .96) 66%) !important;
  }
  .overview-roster-card .roster-name-block{
    display: grid;
    min-width: 0;
    line-height: 1.05;
  }
  .overview-roster-card .roster-surname,
.overview-roster-card .roster-given-name,
.overview-roster-card .roster-meta{
    display: block;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .overview-roster-card .roster-surname{ font-size: 12px; }
  .overview-roster-card .roster-given-name{ margin-top: 3px; color: var(--text); font-size: 11px; font-weight: 700; }
  .overview-roster-card .roster-meta{ margin-top: 5px; }
  .overview-roster-card .roster-card-side{ flex: 0 0 auto; }
  .competition-chip-logo,
.club-competition-logos .competition-chip-logo,
.club-hero-competitions .competition-chip-logo,
.honour-competition-logo,
.palmares-competition-logo{
    background: var(--surface) !important;
    border-radius: 6px;
    padding: 2px;
    object-fit: contain;
  }
  .profile-hero{
    grid-template-columns: 128px minmax(0, 1fr) 128px;
    gap: 22px;
    min-height: 164px;
    align-items: stretch;
  }
  .profile-identity{
    justify-content: flex-start;
    padding-top: 1px;
  }
  .profile-identity .eyebrow{ margin: 0 0 4px; }
  .profile-identity h2{ margin: 0 0 3px; font-size: clamp(25px, 3.2vw, 34px); line-height: 1.05; }
  .profile-identity > p:last-of-type{ margin: 0 0 7px; }
  .profile-membership{ gap: 10px; margin-top: auto; }
  .profile-membership-item{ min-height: 70px; padding: 10px 12px; }
  .profile-membership-label{ margin-bottom: 6px; }
  .profile-rating{ min-width: 128px; }
  @media (max-width: 1024px) {
    .app-shell{ display: block; }
    .sidebar{
      position: sticky;
      z-index: 40;
      top: 0;
      width: 100%;
      min-height: 0;
      height: auto;
      display: grid;
      grid-template-columns: auto minmax(0, 1fr) auto;
      align-items: center;
      gap: 10px;
      padding: 8px 12px;
      border-right: 0;
      border-bottom: 1px solid var(--line);
      box-shadow: 0 8px 24px rgba(15, 23, 42, .10);
    }
    .brand{ width: 72px; height: 48px; padding: 2px; }
    .brand-logo{ max-width: 68px; max-height: 44px; }
    .nav-list{
      display: flex;
      gap: 6px;
      overflow-x: auto;
      padding: 2px 0 5px;
      scrollbar-width: thin;
      scroll-snap-type: x proximity;
    }
    .nav-item{
      flex: 0 0 auto;
      min-height: 44px;
      padding: 8px 11px;
      white-space: nowrap;
      scroll-snap-align: start;
    }
    .version{ display: none; }
    .main{ margin-left: 0; width: 100%; padding: 22px clamp(14px, 3vw, 28px) 36px; }
    .profile-hero{ grid-template-columns: 112px minmax(0, 1fr) 112px; gap: 14px; }
    .profile-hero .player-portrait{ width: 112px; height: 132px; }
    .profile-membership-item{ min-width: 0; }
  }
  @media (max-width: 720px) {
    .sidebar{
      grid-template-columns: auto minmax(0, 1fr) auto;
      padding: 7px 9px;
    }
    .brand{ width: 54px; }
    .brand-logo{ max-width: 52px; }
    .nav-item{ min-width: 48px; justify-content: center; padding: 8px 10px; }
    .nav-item > span:last-of-type{ display: none; }
    .nav-item small{ font-size: 9px; }
    .topbar{ align-items: stretch; gap: 12px; }
    .topbar-actions{ width: 100%; align-items: flex-end; }
    .season-control{ width: 100%; }
    .season-control select{ width: 100%; }
    .app-refresh-button{ width: 42px; padding: 0; flex: 0 0 42px; }
    .app-refresh-label{ display: none; }
    .profile-hero{
      grid-template-columns: 88px minmax(0, 1fr) 82px;
      gap: 10px;
      padding: 12px;
    }
    .profile-hero .player-portrait{ width: 88px; height: 108px; }
    .profile-identity h2{ font-size: 20px; }
    .profile-id-inline{ font-size: 8px; }
    .profile-membership{ grid-template-columns: 1fr; margin-top: 10px; }
    .profile-membership-item{ min-height: 54px; }
    .profile-rating{ min-width: 0; padding: 8px; }
    .profile-rating span{ font-size: 8px; }
    .profile-rating strong{ font-size: 28px; }
    .roster-grid{ grid-template-columns: 1fr; }
    .overview-roster-card{ min-height: 76px; }
  }
  
  .brand{
    justify-content: center;
    min-height: 112px;
  }
  .brand-logo{
    width: 154px;
    max-width: 100%;
    max-height: 104px;
    object-position: center;
  }
  .team-logo,
.drawer-logo{
    box-sizing: border-box;
    width: 58px;
    height: 58px;
    padding: 7px;
    background: var(--surface) !important;
  }
  .club-directory-card .team-logo,
.club-directory-card .logo-fallback{
    width: 70px;
    height: 70px;
  }
  .club-directory-card .team-logo{ padding: 9px; }
  .profile-hero > .player-portrait{
    align-self: end;
    object-position: center bottom;
  }
  .profile-membership-item.market,
.profile-membership-item.market > div{
    text-align: center;
    justify-content: center;
  }
.club-roster-split{
    grid-template-columns: minmax(0, 2fr) minmax(300px, 1fr);
  }
  .roster-list-two-columns{
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .roster-role-group + .roster-role-group{ margin-top: 18px; }
  .roster-role-group > h3{
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 0 0 8px;
    padding-bottom: 7px;
    border-bottom: 1px solid var(--line);
    color: var(--text);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: .08em;
  }
  .roster-role-group > h3 small{
    display: block;
    margin-top: 2px;
    color: var(--muted);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0;
    text-transform: none;
  }
  .roster-role-group > h3 span{
    display: grid;
    min-width: 24px;
    height: 24px;
    place-items: center;
    border-radius: 999px;
    background: var(--surface-2);
    color: var(--muted);
    font-size: 10px;
  }
  .roster-card.market-envelope,
.player-result.market-envelope,
.compare-summary-card.market-envelope{
    border-color: rgba(37, 99, 235, .30) !important;
    background: linear-gradient(90deg, rgba(59, 130, 246, .18), rgba(255, 255, 255, .97) 68%) !important;
    box-shadow: inset 4px 0 #2563eb;
  }
  .roster-card.market-blocked,
.player-result.market-blocked,
.compare-summary-card.market-blocked{
    background: linear-gradient(90deg, rgba(30, 41, 59, .18), rgba(255, 255, 255, .97) 68%) !important;
    box-shadow: inset 4px 0 #1e293b;
  }
  @media (max-width: 1200px) and (min-width: 901px) {
    .club-roster-split{ grid-template-columns: minmax(0, 2fr) minmax(270px, 1fr); }
  }
  @media (max-width: 900px) {
    .club-roster-split{ grid-template-columns: 1fr; }
    .roster-list-two-columns{ grid-template-columns: repeat(2, minmax(0, 1fr)); }
  }
  @media (max-width: 620px) {
    .roster-list-two-columns{ grid-template-columns: 1fr; }
  }

  @media (max-width: 700px){
    .transfer-operation {
      border-radius: 16px;
    }

    .transfer-operation > header {
      align-items: flex-start;
      padding: 12px 14px;
    }

    .transfer-operation-count {
      white-space: nowrap;
      padding-top: 2px;
    }

    .transfer-movement {
      grid-template-columns: minmax(0, 1fr) auto;
      grid-template-areas:
        "player value"
        "from from"
        "to to"
        "clauses clauses";
      gap: 10px 12px;
      padding: 14px;
      align-items: start;
      min-width: 0;
    }

    .transfer-player {
      grid-area: player;
      display: grid;
      grid-template-columns: 42px minmax(0, 1fr) auto;
      gap: 10px;
      align-items: center;
      align-self: stretch;
      min-height: 62px;
      padding: 0;
    }

    .transfer-player:hover {
      background: transparent;
    }

    .transfer-player-copy {
      min-width: 0;
    }

    .transfer-player-copy strong {
      white-space: normal;
      overflow: visible;
      text-overflow: clip;
      overflow-wrap: anywhere;
      line-height: 1.2;
      min-height: 34px;
      display: flex;
      align-items: center;
    }

    .transfer-player-copy small {
      white-space: normal;
      overflow: visible;
      text-overflow: clip;
      overflow-wrap: anywhere;
      line-height: 1.25;
      min-height: 28px;
      margin-top: 3px;
    }

    .transfer-source-badge {
      align-self: start;
      margin-top: 2px;
    }

    .transfer-value {
      grid-area: value;
      display: block;
      min-width: 64px;
      border-top: 0;
      padding-top: 2px;
      text-align: right;
      justify-content: initial;
    }

    .transfer-value strong {
      font-size: 15px;
      white-space: nowrap;
    }

    .transfer-value small {
      display: none;
    }

    .transfer-team {
      position: relative;
      width: 100%;
      min-height: 54px;
      padding: 7px 9px;
      border: 1px solid var(--line);
      border-radius: 12px;
      background: color-mix(in srgb, var(--surface) 74%, transparent);
      box-sizing: border-box;
    }

    .transfer-team-from {
      grid-area: from;
    }

    .transfer-team-to {
      grid-area: to;
      grid-column: auto;
      grid-row: auto;
    }

    .transfer-team strong {
      white-space: normal;
      overflow: visible;
      text-overflow: clip;
      overflow-wrap: anywhere;
      line-height: 1.2;
      min-height: 31px;
      display: flex;
      align-items: center;
      font-size: 13px;
    }

    .transfer-team-logo,
    .transfer-team-fallback {
      width: 34px;
      height: 34px;
      flex-basis: 34px;
    }

    .transfer-team-from::after {
      content: "↓";
      position: absolute;
      left: 50%;
      bottom: -15px;
      z-index: 2;
      width: 22px;
      height: 22px;
      transform: translateX(-50%);
      display: grid;
      place-items: center;
      border: 1px solid var(--line);
      border-radius: 50%;
      background: var(--panel);
      color: #2563eb;
      font-size: 13px;
      font-weight: 900;
    }

    .transfer-route {
      display: none !important;
    }

    .transfer-clause-row {
      grid-area: clauses;
      grid-column: auto;
      margin-top: 0;
      padding-top: 2px;
    }

    .transfer-clause-row span {
      white-space: normal;
      line-height: 1.2;
    }
  }

  .club-market-panel{
    min-width: 0;
  }
  .club-market-heading{
    align-items: center;
  }
  .club-market-all{
    border: 1px solid var(--line);
    background: var(--surface);
    color: var(--text);
    border-radius: 10px;
    padding: 8px 11px;
    font: inherit;
    font-size: 12px;
    font-weight: 800;
    cursor: pointer;
  }
  .club-market-all:hover{
    border-color: #93c5fd;
    background: #eff6ff;
  }
  .club-market-loading,
.club-market-empty{
    min-height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    flex-direction: column;
    text-align: center;
    color: var(--muted);
  }
  .club-market-empty strong{
    color: var(--text);
  }
  .club-market-metrics{
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    margin-bottom: 14px;
  }
  .club-market-metric{
    min-height: 88px;
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 12px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: color-mix(in srgb, var(--surface) 88%, transparent);
  }
  .club-market-metric span{
    color: var(--muted);
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .05em;
  }
  .club-market-metric strong{
    margin-top: 3px;
    font-size: 20px;
    line-height: 1.1;
  }
  .club-market-metric small{
    margin-top: 5px;
    color: var(--muted);
    line-height: 1.25;
  }
  .club-market-metric.in strong{ color: #15803d; }
  .club-market-metric.out strong{ color: #b91c1c; }

  .club-market-list{
    display: grid;
    gap: 7px;
  }
  .club-market-row{
    width: 100%;
    min-height: 66px;
    display: grid;
    grid-template-columns: 28px 42px minmax(0, 1fr) auto;
    align-items: center;
    gap: 10px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: var(--surface);
    color: var(--text);
    padding: 8px 10px;
    text-align: left;
    font: inherit;
    cursor: pointer;
  }
  .club-market-row:hover{
    border-color: #93c5fd;
    background: #f8fbff;
  }
  .club-market-direction{
    width: 26px;
    height: 26px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    font-size: 13px;
    font-weight: 900;
  }
  .club-market-row.is-in .club-market-direction{
    color: #15803d;
    background: #dcfce7;
  }
  .club-market-row.is-out .club-market-direction{
    color: #b91c1c;
    background: #fee2e2;
  }
  .club-market-copy{
    min-width: 0;
    display: flex;
    flex-direction: column;
  }
  .club-market-copy strong{
    font-size: 13px;
    line-height: 1.2;
    white-space: normal;
    overflow-wrap: anywhere;
  }
  .club-market-copy small{
    margin-top: 2px;
    color: var(--muted);
    line-height: 1.2;
    white-space: normal;
    overflow-wrap: anywhere;
  }
  .club-market-copy small b{
    color: var(--text);
  }
  .club-market-type{
    font-size: 10px;
  }
  .club-market-cr{
    font-size: 13px;
    font-weight: 900;
    white-space: nowrap;
    text-align: right;
  }
  .club-market-more{
    margin: 10px 0 0;
    color: var(--muted);
    font-size: 11px;
    text-align: center;
  }

  @media (max-width: 700px) {
    .club-market-heading{
      gap: 10px;
    }
    .club-market-all{
      padding: 7px 9px;
      white-space: nowrap;
    }
    .club-market-metrics{
      grid-template-columns: repeat(3, minmax(0, 1fr));
      gap: 6px;
    }
    .club-market-metric{
      min-height: 78px;
      padding: 9px 8px;
    }
    .club-market-metric strong{
      font-size: 16px;
    }
    .club-market-metric small{
      font-size: 9px;
    }
    .club-market-row{
      grid-template-columns: 26px 38px minmax(0, 1fr) auto;
      min-height: 68px;
      gap: 8px;
      padding: 8px;
    }
    .club-market-row .transfer-player-face{
      width: 38px;
      height: 38px;
    }
    .club-market-copy strong,
.club-market-copy small{
      white-space: normal;
      text-overflow: clip;
      overflow: visible;
      overflow-wrap: anywhere;
    }
    .club-market-cr{
      font-size: 12px;
    }
  }

  .profile-career-shell{
    margin: 0 24px 24px;
    padding: 20px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: var(--surface);
  }

  .profile-career-heading{
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 14px;
  }

  .profile-career-heading h3{
    margin: 2px 0 0;
    font-size: 20px;
  }

  .career-summary{
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: flex-end;
  }

  .career-summary span{
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 6px 9px;
    color: var(--muted);
    font-size: 11px;
    background: color-mix(in srgb, var(--surface) 82%, var(--background));
  }

  .career-summary strong{
    color: var(--text);
  }

  .career-loading,
.career-empty{
    min-height: 100px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 7px;
    color: var(--muted);
    text-align: center;
  }

  .career-empty strong{
    color: var(--text);
  }

  .career-timeline{
    position: relative;
    display: grid;
    gap: 10px;
  }

  .stats-table-wrap{
    overflow-x: auto;
    border: 1px solid var(--line);
    border-radius: 14px;
  }

  .stats-table{
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
  }

  .stats-table th,
  .stats-table td{
    padding: 10px 14px;
    text-align: left;
    border-bottom: 1px solid var(--line);
    white-space: nowrap;
  }

  .stats-table thead th{
    background: color-mix(in srgb, var(--surface) 94%, var(--background));
    font-weight: 600;
  }

  .stats-table tbody tr:last-child td{
    border-bottom: none;
  }

  .stats-table td.stats-num,
  .stats-table th.stats-num{
    text-align: right;
  }

  .stats-table thead th:nth-child(n+4){
    text-align: right;
  }

  .stats-season-cell{
    font-weight: 700;
    white-space: nowrap;
  }

  .stats-movement-cell{
    white-space: normal;
    min-width: 200px;
  }

  .stats-movement-empty{
    color: var(--muted);
  }

  .stats-team-cell{
    display: inline-flex;
    align-items: center;
    gap: 7px;
  }

  .stats-team-cell .transfer-team-fallback,
  .stats-team-cell img{
    width: 20px;
    height: 20px;
    object-fit: contain;
    border-radius: 5px;
  }

  .stats-movement-line{
    display: flex;
    flex-direction: column;
    gap: 3px;
    margin-bottom: 6px;
    width: 100%;
    border: 0;
    background: transparent;
    color: inherit;
    font: inherit;
    text-align: left;
    padding: 4px 6px;
    border-radius: 8px;
    cursor: pointer;
  }

  .stats-movement-line:hover,
  .stats-movement-line:focus-visible{
    background: color-mix(in srgb, var(--surface) 88%, var(--background));
    outline: none;
  }

  .stats-movement-line:last-child{
    margin-bottom: 0;
  }

  .stats-movement-route{
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 600;
  }

  .stats-movement-route .transfer-team-fallback,
  .stats-movement-route img{
    width: 18px;
    height: 18px;
    object-fit: contain;
    border-radius: 5px;
    flex-shrink: 0;
  }

  .stats-movement-route-copy{
    min-width: 0;
  }

  .stats-movement-arrow{
    color: #2563eb;
  }

  .stats-movement-meta{
    color: var(--muted);
    font-size: 10px;
  }

  .stats-movement-fm-group{
    margin-top: 6px;
    padding-top: 6px;
    border-top: 1px dashed var(--line);
  }

  .stats-movement-line--fm{
    cursor: default;
  }

  .stats-movement-line--fm:hover{
    background: transparent;
  }

  .stats-season-short{
    display: none;
  }

  .fmto-modal-backdrop{
    position: fixed;
    inset: 0;
    background: rgba(6, 12, 22, 0.66);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    z-index: 9999;
  }

  .fmto-modal{
    width: 100%;
    max-width: 480px;
    max-height: 86vh;
    overflow-y: auto;
    background: #0a1526;
    border: 1px solid #22344f;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.45);
  }

  .fmto-modal-head{
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    padding: 18px 18px 12px;
    border-bottom: 1px solid #22344f;
  }

  .fmto-modal-head h3{
    margin: 2px 0 0;
    color: #f8fbff;
    font-size: 17px;
  }

  .fmto-modal-head .eyebrow{
    color: #91a6c1;
  }

  .fmto-modal-close{
    border: 1px solid #2a3f5e;
    background: #101f33;
    color: #dce8f7;
    border-radius: 999px;
    width: 30px;
    height: 30px;
    font-size: 14px;
    cursor: pointer;
    flex-shrink: 0;
  }

  .fmto-modal-close:hover{
    background: #172841;
  }

  .fmto-modal-body{
    padding: 16px 18px 20px;
    color: #dce8f7;
  }

  .fmto-modal-body .transfer-col__copy strong,
  .fmto-modal-body .transfer-player-copy strong,
  .fmto-modal-body .transfer-value strong{
    color: #f8fbff;
  }

  .fmto-modal-body .transfer-col__copy small,
  .fmto-modal-body .transfer-player-copy small{
    color: #91a6c1;
  }

  .fmto-modal-body .transfer-team-fallback{
    background: #172841;
    border-color: #314967;
  }

  .fmto-dev-fab{
    position: fixed;
    right: 18px;
    bottom: 18px;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 1px solid #2a3f5e;
    background: #101f33;
    color: #f8fbff;
    font-size: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.35);
    cursor: pointer;
    z-index: 500;
  }

  .fmto-dev-fab:hover{
    background: #172841;
  }

  .fmto-dev-row{
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 4px;
    border-bottom: 1px solid #22344f;
  }

  .fmto-dev-row:last-child{
    border-bottom: none;
  }

  .fmto-dev-row-copy{
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
  }

  .fmto-dev-row-copy strong{
    color: #f8fbff;
    font-size: 13px;
  }

  .fmto-dev-row-copy small{
    color: #91a6c1;
    font-size: 10px;
  }

  .fmto-dev-toggle{
    flex-shrink: 0;
    border: 1px solid #2a3f5e;
    background: #172841;
    color: #dce8f7;
    border-radius: 999px;
    padding: 7px 12px;
    font-size: 11px;
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap;
  }

  .fmto-dev-toggle.on{
    background: #14532d;
    border-color: #15803d;
    color: #d1fae5;
  }

  .fmto-dev-only-badge{
    display: inline-block;
    margin-left: 6px;
    padding: 2px 7px;
    border-radius: 999px;
    background: #7c2d12;
    color: #fed7aa;
    font-size: 8px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .04em;
    vertical-align: middle;
  }

  .nav-item.nav-item--dev-only{
    position: relative;
  }

  .nav-item.nav-item--dev-only::after{
    content: "";
    position: absolute;
    top: 6px;
    right: 6px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #f97316;
    box-shadow: 0 0 0 2px var(--surface);
  }

  .overview-nav-card--dev-only{
    position: relative;
    outline: 1px dashed #f97316;
    outline-offset: -1px;
  }

  .fmto-dev-only-badge--card{
    position: absolute;
    top: 10px;
    right: 10px;
    margin-left: 0;
    background: #f97316;
    color: #1c1006;
  }

  .stats-totals-row td{
    font-weight: 800;
    background: color-mix(in srgb, var(--surface) 94%, var(--background));
    border-bottom: none;
  }

  .career-timeline::before{
    content: "";
    position: absolute;
    left: 13px;
    top: 18px;
    bottom: 18px;
    width: 2px;
    background: var(--line);
  }

  .career-event{
    position: relative;
    display: grid;
    grid-template-columns: 122px minmax(0, 1fr) auto;
    grid-template-areas:
      "season route meta"
      "season clauses clauses";
    gap: 8px 14px;
    align-items: center;
    padding: 12px 14px 12px 34px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: color-mix(in srgb, var(--surface) 94%, var(--background));
  }

  .career-event::before{
    content: "";
    position: absolute;
    left: 8px;
    top: 50%;
    width: 12px;
    height: 12px;
    transform: translateY(-50%);
    border: 3px solid var(--surface);
    border-radius: 50%;
    background: #2563eb;
    box-shadow: 0 0 0 1px #93c5fd;
    z-index: 1;
  }

  .career-season{
    grid-area: season;
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
  }

  .career-season span{
    font-size: 12px;
    font-weight: 900;
    color: var(--text);
  }

  .career-season small{
    color: var(--muted);
    font-size: 10px;
  }

  .career-route{
    grid-area: route;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 24px minmax(0, 1fr);
    align-items: center;
    gap: 8px;
    min-width: 0;
  }

  .career-team{
    display: grid;
    grid-template-columns: 30px minmax(0, 1fr);
    align-items: center;
    gap: 8px;
    min-width: 0;
  }

  .career-team-logo,
.career-team-fallback{
    width: 30px;
    height: 30px;
    object-fit: contain;
    border-radius: 8px;
  }

  .career-team-fallback{
    border: 1px solid var(--line);
    background: var(--background);
  }

  .career-team strong{
    min-width: 0;
    font-size: 12px;
    line-height: 1.2;
    white-space: normal;
    overflow-wrap: anywhere;
  }

  .career-arrow{
    display: grid;
    place-items: center;
    color: #2563eb;
    font-weight: 900;
  }

  .career-event-meta{
    grid-area: meta;
    min-width: 116px;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 4px;
    text-align: right;
  }

  .career-type{
    color: var(--muted);
    font-size: 10px;
    line-height: 1.2;
  }

  .career-cr{
    white-space: nowrap;
    font-size: 13px;
  }

  .career-clauses{
    grid-area: clauses;
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
  }

  .career-clauses span{
    border-radius: 999px;
    padding: 4px 7px;
    background: #eff6ff;
    color: #1d4ed8;
    font-size: 9px;
    font-weight: 800;
  }

  .season-history-row{
    display: block;
    padding: 12px 14px 12px 34px;
  }

  .season-history-body{
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 6px;
  }

  .career-route-line{
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
  }

  .career-route-line .career-team{
    flex: 1 1 auto;
    min-width: 0;
  }

  .career-route-line .career-type{
    text-align: left;
  }

  .career-route-line .career-cr{
    margin-left: auto;
  }

  .career-route-line--empty{
    color: var(--muted);
    font-size: 11px;
  }

  .career-stats-line{
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    padding-top: 4px;
    border-top: 1px dashed var(--line);
  }

  .stat-chip{
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 3px 9px;
    background: #ecfdf5;
    color: #047857;
    font-size: 10px;
    font-weight: 800;
    white-space: nowrap;
  }

  .stat-chip--team{
    background: #eff6ff;
    color: #1d4ed8;
  }

  .career-coverage-note{
    margin: 12px 0 0;
    color: var(--muted);
    font-size: 10px;
    line-height: 1.4;
  }

  @media (max-width: 700px) {
    .profile-career-shell{
      margin: 0 12px 16px;
      padding: 14px 12px;
      border-radius: 15px;
    }

    .profile-career-heading{
      align-items: flex-start;
      flex-direction: column;
      gap: 8px;
    }

    .career-summary{
      justify-content: flex-start;
    }

    .career-timeline::before{
      left: 10px;
    }

    .career-event{
      grid-template-columns: minmax(0, 1fr) auto;
      grid-template-areas:
        "season meta"
        "route route"
        "clauses clauses";
      gap: 10px;
      padding: 12px 10px 12px 28px;
      align-items: start;
    }

    .career-event::before{
      left: 5px;
      top: 20px;
      transform: none;
    }

    .career-event-meta{
      min-width: 82px;
    }

    .career-route{
      grid-template-columns: minmax(0, 1fr);
      gap: 7px;
      align-items: stretch;
    }

    .career-team{
      min-height: 46px;
      grid-template-columns: 34px minmax(0, 1fr);
      padding: 6px 8px;
      border: 1px solid var(--line);
      border-radius: 11px;
      background: var(--surface);
    }

    .career-team-logo,
.career-team-fallback{
      width: 34px;
      height: 34px;
    }

    .career-team strong{
      font-size: 12px;
      white-space: normal;
      overflow: visible;
      text-overflow: clip;
      overflow-wrap: anywhere;
    }

    .career-arrow{
      height: 20px;
      transform: rotate(90deg);
    }

    .career-type{
      white-space: normal;
    }
  }

  .fmto-club-view-active .topbar{
    justify-content: flex-end;
    margin-bottom: 14px;
  }

  .fmto-club-view-active .topbar > :first-child{
    display: none;
  }

  .fmto-club-header{
    --club-accent: var(--brand);
    --club-header-bg: var(--surface);
    --club-header-text: var(--text);
    --club-header-muted: var(--muted);
    --club-header-border: var(--line);
    position: relative;
    isolation: isolate;
    overflow: hidden;
    margin-bottom: 20px;
    border: 1px solid var(--club-header-border);
    border-radius: 20px;
    background: var(--club-header-bg);
    box-shadow: 0 10px 30px rgba(31, 49, 79, .06);
  }

  .fmto-club-header::before,
.fmto-club-header::after{
    content: "";
    position: absolute;
    z-index: -1;
    pointer-events: none;
  }

  .fmto-club-header::before{
    top: 0;
    right: -80px;
    width: 340px;
    height: 7px;
    transform: skewX(-34deg);
    background: var(--club-accent);
  }

  .fmto-club-header::after{
    right: -90px;
    top: -38px;
    width: 260px;
    height: 150px;
    transform: skewX(-28deg);
    background: linear-gradient(135deg, rgba(37, 99, 235, .075), rgba(37, 99, 235, 0));
  }

  .fmto-club-header__main{
    display: grid;
    grid-template-columns: minmax(300px, 1.15fr) minmax(260px, .85fr) auto;
    grid-template-areas: "identity search actions";
    align-items: center;
    gap: 24px;
    min-height: 126px;
    padding: 20px 24px 18px;
  }

  .fmto-club-header__identity{
    grid-area: identity;
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 17px;
  }

  .fmto-club-header__logo{
    width: 88px;
    height: 88px;
    flex: 0 0 88px;
    object-fit: contain;
    border-radius: 16px;
    padding: 8px;
    background: var(--surface);
    border: 1px solid rgba(148, 163, 184, .24);
  }

  .fmto-club-header__logo--fallback{
    display: grid;
    place-items: center;
    color: #fff;
    font-size: 19px;
    font-weight: 900;
    letter-spacing: .03em;
  }

  .fmto-club-header__identity-copy{
    min-width: 0;
  }

  .fmto-club-header__identity-copy h2{
    margin: 0;
    color: var(--club-header-text);
    font-size: clamp(28px, 3vw, 42px);
    line-height: 1;
    letter-spacing: -.035em;
    font-weight: 900;
    white-space: normal;
    overflow-wrap: anywhere;
  }

  .fmto-club-header__identity-copy > p{
    margin: 7px 0 0;
    color: var(--club-header-muted);
    font-size: 12px;
    font-weight: 750;
  }

  .fmto-club-header__competitions{
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 10px;
  }

  .fmto-club-header__competitions .competition-link{
    min-height: 30px;
    padding: 4px 8px;
    border-radius: 9px;
  }

  .fmto-club-header__competitions .competition-chip-logo{
    width: 22px;
    height: 22px;
  }

  .fmto-club-header__search{
    grid-area: search;
    min-width: 0;
    height: 46px;
    display: flex;
    align-items: center;
    gap: 9px;
    border: 1px solid var(--club-header-border);
    border-radius: 12px;
    padding: 0 13px;
    background: color-mix(in srgb, var(--surface) 88%, var(--surface-2));
    color: var(--club-header-muted);
  }

  .fmto-club-header__search:focus-within{
    border-color: #8bb1ff;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, .10);
  }

  .fmto-club-header__search > span{
    flex: 0 0 auto;
    font-size: 18px;
    color: var(--club-accent);
  }

  .fmto-club-header__search input{
    width: 100%;
    min-width: 0;
    border: 0;
    outline: 0;
    background: transparent;
    color: var(--club-header-text);
    font: inherit;
    font-size: 13px;
  }

  .fmto-club-header__search input::placeholder{
    color: var(--club-header-muted);
  }

  .fmto-club-header__actions{
    grid-area: actions;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
  }

  .fmto-club-header__search-button,
.fmto-club-header__menu-button{
    display: none;
    width: 44px;
    height: 44px;
    place-items: center;
    border: 1px solid var(--club-header-border);
    border-radius: 11px;
    background: var(--surface);
    color: var(--club-header-text);
    cursor: pointer;
    font: inherit;
    font-size: 18px;
  }

  .fmto-club-header__search-button:focus-visible,
.fmto-club-header__menu-button:focus-visible,
.fmto-club-nav__item:focus-visible,
.fmto-club-mobile-nav__item:focus-visible,
.fmto-club-header__mobile-menu button:focus-visible{
    outline: 3px solid rgba(37, 99, 235, .22);
    outline-offset: 2px;
  }

  .fmto-club-nav{
    display: flex;
    align-items: stretch;
    gap: 2px;
    min-height: 52px;
    padding: 0 18px;
    border-top: 1px solid var(--club-header-border);
    background: color-mix(in srgb, var(--surface) 94%, var(--surface-2));
    overflow-x: auto;
    scrollbar-width: none;
  }

  .fmto-club-nav::-webkit-scrollbar{
    display: none;
  }

  .fmto-club-nav__item{
    position: relative;
    flex: 0 0 auto;
    min-height: 52px;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    border: 0;
    background: transparent;
    color: var(--club-header-muted);
    padding: 0 15px;
    font: inherit;
    font-size: 11px;
    font-weight: 850;
    letter-spacing: .045em;
    text-transform: uppercase;
    white-space: nowrap;
    cursor: pointer;
  }

  .fmto-club-nav__item::after{
    content: "";
    position: absolute;
    left: 14px;
    right: 14px;
    bottom: 0;
    height: 3px;
    border-radius: 3px 3px 0 0;
    background: transparent;
  }

  .fmto-club-nav__item:hover{
    color: var(--club-header-text);
    background: rgba(37, 99, 235, .035);
  }

  .fmto-club-nav__item--active{
    color: var(--club-accent);
    background: rgba(37, 99, 235, .06);
  }

  .fmto-club-nav__item--active::after{
    background: var(--club-accent);
  }

  .fmto-club-nav__icon{
    font-size: 13px;
  }

  .fmto-club-mobile-nav,
.fmto-club-header__mobile-menu{
    display: none;
  }

  #clubRosterSection,
#clubTransferSummary,
#clubHonoursSection{
    scroll-margin-top: 88px;
  }

  @media (max-width: 1100px) and (min-width: 768px) {
    .fmto-club-header__main{
      grid-template-columns: minmax(270px, 1.15fr) minmax(190px, .7fr) auto;
      gap: 14px;
      min-height: 108px;
      padding: 16px 18px;
    }

    .fmto-club-header__logo{
      width: 72px;
      height: 72px;
      flex-basis: 72px;
      border-radius: 14px;
      padding: 7px;
    }

    .fmto-club-header__identity{
      gap: 13px;
    }

    .fmto-club-header__identity-copy h2{
      font-size: clamp(24px, 3vw, 32px);
    }

    .fmto-club-header__competitions{
      margin-top: 7px;
    }

    .fmto-club-header__search{
      height: 42px;
    }

    .fmto-club-nav{
      padding: 0 10px;
      scroll-snap-type: x proximity;
    }

    .fmto-club-nav__item{
      min-height: 48px;
      padding: 0 12px;
      scroll-snap-align: start;
    }
  }

  @media (max-width: 767px) {
    .fmto-club-view-active .topbar{
      margin-bottom: 9px;
    }

    .fmto-club-header{
      overflow: visible;
      margin: 0 -2px 16px;
      border-radius: 15px;
      box-shadow: 0 7px 20px rgba(31, 49, 79, .05);
    }

    .fmto-club-header::before{
      right: 0;
      width: 150px;
      height: 5px;
      transform: none;
      clip-path: polygon(14% 0, 100% 0, 100% 100%, 0 100%);
    }

    .fmto-club-header::after{
      display: none;
    }

    .fmto-club-header__main{
      grid-template-columns: 44px minmax(0, 1fr) 44px;
      grid-template-areas:
        "menu identity actions"
        "search search search";
      gap: 8px;
      min-height: 70px;
      padding: 9px 10px;
    }

    .fmto-club-header__menu-button,
.fmto-club-header__search-button{
      display: grid;
    }

    .fmto-club-header__menu-button{
      grid-area: menu;
    }

    .fmto-club-header__identity{
      grid-area: identity;
      gap: 9px;
    }

    .fmto-club-header__logo{
      width: 48px;
      height: 48px;
      flex-basis: 48px;
      border-radius: 10px;
      padding: 5px;
    }

    .fmto-club-header__identity-copy h2{
      max-width: 100%;
      font-size: 18px;
      line-height: 1.05;
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
      overflow-wrap: normal;
    }

    .fmto-club-header__identity-copy > p{
      margin-top: 4px;
      font-size: 10px;
      white-space: nowrap;
    }

    .fmto-club-header__competitions{
      display: none;
    }

    .fmto-club-header__actions{
      grid-area: actions;
    }

    .fmto-club-header__search{
      display: none;
      grid-area: search;
      height: 42px;
      margin-top: 2px;
    }

    .fmto-club-header--search-open .fmto-club-header__search{
      display: flex;
    }

    .fmto-club-nav{
      display: none;
    }

    .fmto-club-mobile-nav{
      display: grid;
      grid-auto-flow: column;
      grid-auto-columns: minmax(0, 1fr);
      min-height: 58px;
      border-top: 1px solid var(--club-header-border);
      background: color-mix(in srgb, var(--surface) 96%, var(--surface-2));
    }

    .fmto-club-mobile-nav__item{
      position: relative;
      min-width: 0;
      min-height: 58px;
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      gap: 3px;
      border: 0;
      background: transparent;
      color: var(--club-header-muted);
      padding: 5px 2px 6px;
      font: inherit;
      font-size: 8.5px;
      font-weight: 800;
      line-height: 1;
      cursor: pointer;
    }

    .fmto-club-mobile-nav__item::after{
      content: "";
      position: absolute;
      left: 24%;
      right: 24%;
      bottom: 0;
      height: 3px;
      border-radius: 3px 3px 0 0;
      background: transparent;
    }

    .fmto-club-mobile-nav__item.fmto-club-nav__item--active{
      color: var(--club-accent);
      background: rgba(37, 99, 235, .045);
    }

    .fmto-club-mobile-nav__item.fmto-club-nav__item--active::after{
      background: var(--club-accent);
    }

    .fmto-club-mobile-nav__icon{
      font-size: 14px;
      line-height: 1;
    }

    .fmto-club-header__mobile-menu{
      position: absolute;
      z-index: 12;
      left: 9px;
      top: 62px;
      width: min(260px, calc(100vw - 36px));
      padding: 7px;
      border: 1px solid var(--club-header-border);
      border-radius: 13px;
      background: var(--surface);
      box-shadow: 0 18px 42px rgba(15, 23, 42, .18);
    }

    .fmto-club-header--menu-open .fmto-club-header__mobile-menu{
      display: grid;
      gap: 3px;
    }

    .fmto-club-header__mobile-menu button{
      min-height: 44px;
      border: 0;
      border-radius: 9px;
      background: transparent;
      color: var(--text);
      padding: 0 11px;
      text-align: left;
      font: inherit;
      font-size: 12px;
      font-weight: 750;
      cursor: pointer;
    }

    .fmto-club-header__mobile-menu button:hover{
      background: var(--surface-2);
    }

    #clubRosterSection,
#clubTransferSummary,
#clubHonoursSection{
      scroll-margin-top: 150px;
    }
  }

  @media (max-width: 479px) {
    .fmto-club-header__main{
      grid-template-columns: 42px minmax(0, 1fr) 42px;
      gap: 6px;
      padding: 8px;
    }

    .fmto-club-header__menu-button,
.fmto-club-header__search-button{
      width: 42px;
      height: 42px;
    }

    .fmto-club-header__logo{
      width: 44px;
      height: 44px;
      flex-basis: 44px;
    }

    .fmto-club-header__identity{
      gap: 7px;
    }

    .fmto-club-header__identity-copy h2{
      font-size: 16px;
    }

    .fmto-club-header__identity-copy > p{
      font-size: 9px;
    }

    .fmto-club-mobile-nav__item{
      font-size: 7.8px;
    }
  }

  .sidebar{
    --fmto-sidebar-width: 232px;
    --fmto-sidebar-bg: #ffffff;
    --fmto-sidebar-text: #526176;
    --fmto-sidebar-text-strong: #172033;
    --fmto-sidebar-border: #e5eaf1;
    --fmto-sidebar-hover: #f5f7fa;
    --fmto-sidebar-active: #eef2f7;
    --fmto-sidebar-accent: #2563eb;
    width: var(--fmto-sidebar-width);
    padding: 22px 16px 18px;
    background: var(--fmto-sidebar-bg);
    color: var(--fmto-sidebar-text);
    border-right: 1px solid var(--fmto-sidebar-border);
    box-shadow: 8px 0 28px rgba(15, 23, 42, 0.035);
    transition: width .2s ease, padding .2s ease, background-color .2s ease;
    
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
  }
  .brand{
    min-height: 94px;
    justify-content: center;
    border-radius: 16px;
    padding: 6px;
    overflow: hidden;
  }
  .brand:hover{ background: var(--fmto-sidebar-hover); }
  .brand-logo{
    width: 92px;
    height: 92px;
    max-height: none;
    object-fit: cover;
    object-position: center;
    clip-path: circle(42% at 50% 50%);
    background: transparent !important;
    transition: width .2s ease, height .2s ease, transform .2s ease;
  }
  .brand:hover .brand-logo{ transform: scale(1.025); }
  .nav-list{ margin-top: 34px; gap: 6px; }
  .nav-item{
    min-height: 44px;
    grid-template-columns: 30px minmax(0, 1fr) auto;
    gap: 10px;
    padding: 8px 10px;
    border-radius: 11px;
    color: var(--fmto-sidebar-text);
    font-weight: 650;
    transition: background-color .15s ease, color .15s ease, transform .15s ease;
  }
  .nav-item:hover{
    background: var(--fmto-sidebar-hover);
    color: var(--fmto-sidebar-text-strong);
  }
  .nav-item.active{
    background: var(--fmto-sidebar-active);
    color: var(--fmto-sidebar-text-strong);
    box-shadow: inset 3px 0 0 var(--fmto-sidebar-accent);
  }
  .nav-icon{
    width: 30px;
    height: 30px;
    border-radius: 9px;
    background: transparent;
    color: #7a8799;
    font-size: 13px;
    transition: background-color .15s ease, color .15s ease;
  }
  .nav-item:hover .nav-icon{
    background: #edf1f6;
    color: #334155;
  }
  .nav-item.active .nav-icon{
    background: #e8efff;
    color: var(--fmto-sidebar-accent);
  }
  .nav-item small{
    color: #8b98aa;
    font-size: 11px;
    font-variant-numeric: tabular-nums;
  }
  .version{
    margin-top: 10px;
    padding: 0 4px;
    color: #97a3b4;
    font-size: 10px;
  }
  .sidebar-collapse{
    position: absolute;
    top: 74px;
    right: -14px;
    z-index: 12;
    width: 28px;
    height: 28px;
    display: grid;
    place-items: center;
    padding: 0;
    border: 1px solid var(--fmto-sidebar-border);
    border-radius: 50%;
    background: var(--fmto-sidebar-bg);
    color: #64748b;
    box-shadow: 0 5px 16px rgba(15, 23, 42, .11);
    cursor: pointer;
  }
  .sidebar-collapse:hover{
    color: var(--fmto-sidebar-accent);
    border-color: #b9cdfc;
  }
  .sidebar-collapse:focus-visible,
.nav-item:focus-visible,
.brand:focus-visible{
    outline: 3px solid rgba(37, 99, 235, .24);
    outline-offset: 2px;
  }
  .sidebar.sidebar--collapsed{
    --fmto-sidebar-width: 78px;
    padding-left: 10px;
    padding-right: 10px;
  }
  .sidebar.sidebar--collapsed .brand{
    min-height: 66px;
    padding: 0;
  }
  .sidebar.sidebar--collapsed .brand-logo{
    width: 58px;
    height: 58px;
  }
  .sidebar.sidebar--collapsed .nav-list{ margin-top: 28px; }
  .sidebar.sidebar--collapsed .nav-item{
    position: relative;
    grid-template-columns: 1fr;
    justify-items: center;
    padding: 7px;
  }
  .sidebar.sidebar--collapsed .nav-item > span:not(.nav-icon),
.sidebar.sidebar--collapsed .nav-item small,
.sidebar.sidebar--collapsed .version{
    display: none;
  }
  .sidebar.sidebar--collapsed .nav-item.active{ box-shadow: none; }
  .sidebar.sidebar--collapsed .nav-item.active::after{
    content: "";
    position: absolute;
    left: -10px;
    width: 3px;
    height: 22px;
    border-radius: 0 3px 3px 0;
    background: var(--fmto-sidebar-accent);
  }
  body.fmto-sidebar-collapsed .main{ margin-left: 78px; }

  @media (max-width: 860px) {
    .sidebar,
.sidebar.sidebar--collapsed{
      position: static;
      width: auto;
      height: 68px;
      padding: 12px 18px;
      flex-direction: row;
      align-items: center;
      box-shadow: none;
      border-right: 0;
      border-bottom: 1px solid var(--fmto-sidebar-border);
    }
    body.fmto-sidebar-collapsed .main{ margin-left: 0; }
    .sidebar-collapse{ display: none; }
    .sidebar .brand,
.sidebar.sidebar--collapsed .brand{
      min-height: 44px;
      width: 50px;
      padding: 0;
    }
    .sidebar .brand-logo,
.sidebar.sidebar--collapsed .brand-logo{
      width: 48px;
      height: 48px;
    }
    .sidebar .nav-list,
.sidebar.sidebar--collapsed .nav-list{
      margin: 0 0 0 auto;
    }
    .sidebar.sidebar--collapsed .nav-item{
      grid-template-columns: 30px minmax(0, 1fr) auto;
      justify-items: stretch;
      padding: 9px;
    }
    .sidebar.sidebar--collapsed .nav-item > span:not(.nav-icon),
.sidebar.sidebar--collapsed .nav-item small{
      display: initial;
    }
  }

  .sidebar .nav-list{
    display: flex;
    flex-direction: column;
    gap: 0;
  }

  .sidebar .nav-group{
    display: grid;
    gap: 5px;
  }

  .sidebar .nav-divider{
    height: 1px;
    margin: 12px 10px;
    background: var(--fmto-sidebar-border);
    opacity: .78;
  }

  .sidebar .nav-item{
    position: relative;
    overflow: visible;
  }

  .sidebar .nav-icon{
    width: 32px;
    height: 32px;
    display: grid;
    place-items: center;
    padding: 5px;
  }

  .sidebar .nav-icon svg{
    width: 100%;
    height: 100%;
    display: block;
    overflow: visible;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.65;
    stroke-linecap: round;
    stroke-linejoin: round;
    vector-effect: non-scaling-stroke;
  }

  .sidebar .nav-icon--palmares svg path:last-child{
    fill: currentColor;
    stroke-width: 1.25;
  }

  .sidebar .nav-label{
    min-width: 0;
    white-space: nowrap;
  }

  .sidebar .nav-count{
    min-width: 30px;
    height: 22px;
    display: inline-grid;
    place-items: center;
    padding: 0 6px;
    border: 1px solid var(--fmto-sidebar-border);
    border-radius: 999px;
    background: color-mix(in srgb, var(--fmto-sidebar-bg) 72%, var(--fmto-sidebar-active));
    color: var(--fmto-sidebar-text);
    line-height: 1;
    font-size: 10px;
    font-weight: 800;
  }

  .sidebar .nav-item.active .nav-count{
    border-color: color-mix(in srgb, var(--fmto-sidebar-accent) 28%, var(--fmto-sidebar-border));
    color: var(--fmto-sidebar-accent);
    background: color-mix(in srgb, var(--fmto-sidebar-accent) 8%, var(--fmto-sidebar-bg));
  }

  .sidebar-footer{
    margin-top: auto;
    display: grid;
    gap: 8px;
  }

  .sidebar-footer__divider{
    height: 1px;
    margin: 0 2px 4px;
    background: var(--fmto-sidebar-border);
  }

  .sidebar .version{
    margin-top: 0;
    padding: 0 5px;
  }

  .sidebar.sidebar--collapsed .nav-divider{
    width: 34px;
    margin: 11px auto;
  }

  .sidebar.sidebar--collapsed .nav-item{
    width: 48px;
    min-height: 48px;
    margin-inline: auto;
    padding: 8px;
  }

  .sidebar.sidebar--collapsed .nav-icon{
    width: 32px;
    height: 32px;
    padding: 4px;
  }

  .sidebar.sidebar--collapsed .nav-label{
    display: none;
  }

  .sidebar.sidebar--collapsed .nav-count{
    position: absolute;
    top: 2px;
    right: -5px;
    min-width: 23px;
    height: 18px;
    padding: 0 4px;
    font-size: 8px;
    box-shadow: 0 2px 5px rgba(15,23,42,.12);
  }

  .sidebar.sidebar--collapsed .nav-item[data-tooltip]::before,
.sidebar.sidebar--collapsed .nav-item[data-tooltip]::after{
    position: absolute;
    left: calc(100% + 12px);
    z-index: 80;
    pointer-events: none;
    opacity: 0;
    visibility: hidden;
    transition: opacity .12s ease, transform .12s ease;
  }

  .sidebar.sidebar--collapsed .nav-item[data-tooltip]::before{
    content: attr(data-tooltip);
    top: 50%;
    transform: translate(4px, -50%);
    padding: 7px 10px;
    border-radius: 8px;
    background: #172033;
    color: #fff;
    font-size: 11px;
    font-weight: 750;
    line-height: 1;
    white-space: nowrap;
    box-shadow: 0 6px 18px rgba(15,23,42,.16);
  }

  .sidebar.sidebar--collapsed .nav-item[data-tooltip]::after{
    content: "";
    top: 50%;
    transform: translate(4px, -50%);
    margin-left: -6px;
    border: 5px solid transparent;
    border-right-color: #172033;
  }

  .sidebar.sidebar--collapsed .nav-item[data-tooltip]:hover::before,
.sidebar.sidebar--collapsed .nav-item[data-tooltip]:hover::after,
.sidebar.sidebar--collapsed .nav-item[data-tooltip]:focus-visible::before,
.sidebar.sidebar--collapsed .nav-item[data-tooltip]:focus-visible::after{
    opacity: 1;
    visibility: visible;
    transform: translate(0, -50%);
  }

  .sidebar.sidebar--collapsed .sidebar-footer{
    justify-items: center;
  }

  .sidebar.sidebar--collapsed .sidebar-footer__divider{
    width: 38px;
    margin-inline: auto;
  }

  .sidebar.sidebar--collapsed .version{
    display: none;
  }

  .sidebar .nav-item.active .nav-icon{
    color: var(--fmto-sidebar-accent);
  }

  .sidebar .nav-item.active::before{
    content: "";
    position: absolute;
    left: 0;
    top: 10px;
    bottom: 10px;
    width: 3px;
    border-radius: 0 3px 3px 0;
    background: var(--fmto-sidebar-accent);
  }

  .sidebar.sidebar--collapsed .nav-item.active::before{
    left: -10px;
    top: 13px;
    bottom: 13px;
  }

  @media (max-width: 860px){
    .sidebar .nav-divider {
      display: none;
    }

    .sidebar .nav-group {
      display: contents;
    }

    .sidebar .nav-list {
      display: grid;
    }

    .sidebar .nav-item.active::before {
      display: none;
    }

    .sidebar-footer {
      margin-top: 0;
    }

    .sidebar-footer__divider,
    .sidebar .theme-toggle,
    .sidebar .version {
      display: none;
    }
  }

  body.fmto-club-view-active .topbar{
    min-height: 54px;
    padding-top: 8px;
    padding-bottom: 8px;
    align-items: center;
  }
  body.fmto-club-view-active .topbar > div:first-child{ min-height: 0; }
  body.fmto-club-view-active #clubView > .back-button{
    margin-top: 0;
    margin-bottom: 8px;
  }

  #clubHubHeader.fmto-club-header{
    position: sticky;
    top: 0;
    z-index: 45;
    scroll-margin-top: 8px;
    box-shadow: 0 10px 28px rgba(15, 23, 42, .07);
  }
  #clubHubHeader .fmto-club-header__main{
    grid-template-columns: minmax(300px, 1fr) minmax(260px, 520px) minmax(210px, 270px) auto;
    gap: 16px;
    min-height: 102px;
    padding-top: 13px;
    padding-bottom: 13px;
  }
  #clubHubHeader .fmto-club-header__logo{ width: 72px; height: 72px; }
  #clubHubHeader .fmto-club-header__identity-copy h2{
    font-size: clamp(26px, 2.2vw, 38px);
    line-height: 1.02;
  }
  #clubHubHeader .fmto-club-header__competitions{ margin-top: 7px; }
  #clubHubHeader .fmto-club-nav{ min-height: 50px; }

  .fmto-club-switch{ position: relative; min-width: 0; align-self: center; }
  .fmto-club-switch__label{
    display: block; margin: 0 0 5px 2px; color: var(--muted);
    font-size: 9px; font-weight: 850; letter-spacing: .07em; text-transform: uppercase;
  }
  .fmto-club-switch__trigger{
    width: 100%; min-height: 46px; display: grid;
    grid-template-columns: 30px minmax(0, 1fr) auto; align-items: center; gap: 9px;
    padding: 6px 10px; border: 1px solid var(--line); border-radius: 11px;
    background: var(--surface); color: var(--text); font: inherit; cursor: pointer; text-align: left;
  }
  .fmto-club-switch__trigger:hover,
.fmto-club-switch__trigger[aria-expanded="true"]{
    border-color: #9bb7f5;
    background: color-mix(in srgb, var(--surface) 94%, #2563eb);
  }
  .fmto-club-switch__current{
    min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
    font-size: 12px; font-weight: 850;
  }
  .fmto-club-switch__chevron{ color: var(--muted); font-size: 14px; }
  .fmto-club-switch__logo{
    width: 30px; height: 30px; display: grid; place-items: center;
    object-fit: contain; border-radius: 8px; background: var(--surface);
  }
  .fmto-club-switch__logo--fallback{ color: #fff; font-size: 9px; font-weight: 900; }
  .fmto-club-switch__menu{
    position: absolute; z-index: 90; top: calc(100% + 7px); right: 0;
    width: min(330px, 88vw); max-height: min(430px, 64vh); overflow-y: auto;
    padding: 6px; border: 1px solid var(--line); border-radius: 13px;
    background: var(--surface); box-shadow: 0 20px 45px rgba(15, 23, 42, .16);
  }
  .fmto-club-switch__option{
    width: 100%; min-height: 43px; display: grid;
    grid-template-columns: 30px minmax(0, 1fr) 20px; align-items: center; gap: 9px;
    padding: 6px 8px; border: 0; border-radius: 9px; background: transparent;
    color: var(--text); font: inherit; text-align: left; cursor: pointer;
  }
  .fmto-club-switch__option:hover,
.fmto-club-switch__option.is-current{
    background: color-mix(in srgb, var(--surface) 88%, #2563eb);
  }
  .fmto-club-switch__option > span:nth-child(2){
    min-width: 0; white-space: normal; overflow-wrap: anywhere; font-size: 12px; font-weight: 760;
  }
  .fmto-club-switch__option strong{ color: #2563eb; text-align: center; }

  #playersView{ padding-top: 2px; }
  #playersView .player-search-panel--compact{
    width: min(100%, 1040px);
    grid-template-columns: minmax(300px, 1fr) 170px auto auto;
    gap: 9px; padding: 12px; margin: 0 0 12px; border-radius: 14px;
  }
  #playersView .player-search-panel--compact .player-query{
    min-height: 46px; padding-block: 10px;
  }
  #playersView .player-search-panel--compact .presence-filter{ min-width: 0; }
  #playersView .player-search-panel--compact .team-filter:not([hidden]){
    grid-column: 1 / span 2; width: min(100%, 500px);
  }
  #playersView .player-search-panel--compact .secondary-button,
#playersView .player-search-panel--compact .primary-button{
    min-width: 118px; min-height: 46px; padding: 9px 14px;
  }

  .player-result.player-result--with-stats{
    display: grid;
    grid-template-columns: minmax(330px, 1.25fr) minmax(315px, .9fr) auto;
    gap: 18px; align-items: center;
  }
  .player-season-stats{
    display: grid; grid-template-columns: repeat(5, minmax(44px, 1fr));
    align-items: center; gap: 4px; min-width: 0;
  }
  .player-season-stat{
    position: relative; min-height: 56px; display: grid; grid-template-rows: 23px 18px;
    align-content: center; justify-items: center; gap: 2px;
    border-left: 1px solid color-mix(in srgb, var(--line) 72%, transparent);
    color: var(--muted);
  }
  .player-season-stat:first-child{ border-left: 0; }
  .player-season-stat__icon{ width: 22px; height: 22px; display: grid; place-items: center; }
  .player-season-stat__icon svg{
    width: 21px; height: 21px; fill: none; stroke: currentColor;
    stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round;
  }
  .player-season-stat strong{
    color: var(--text); font-size: 12px; font-variant-numeric: tabular-nums;
  }
  .player-season-stat small{
    position: absolute; top: 23px; color: #d89000; font-size: 7px; font-weight: 950;
  }
  .player-season-stat--goals{ color: #20a85b; }
  .player-season-stat--assists{ color: #2387df; }
  .player-season-stat--motm{ color: #f1a400; }
  .player-season-stat--motm .player-season-stat__icon svg{ fill: currentColor; }
  .player-season-stat--yellow{ color: #f1c40f; }
  .player-season-stat--yellow .player-season-stat__icon svg{ fill: currentColor; stroke: #d7aa00; }
  .player-season-stat--red{ color: #ef4444; }
  .player-season-stat--red .player-season-stat__icon svg{ fill: currentColor; stroke: #d92f2f; }

  @media (max-width: 1250px) {
    #clubHubHeader .fmto-club-header__main{
      grid-template-columns: minmax(280px, 1fr) minmax(220px, 400px) minmax(190px, 240px) auto;
      gap: 11px;
    }
    .player-result.player-result--with-stats{
      grid-template-columns: minmax(290px, 1fr) minmax(265px, .8fr) auto;
      gap: 12px;
    }
  }

  @media (max-width: 1100px) {
    #clubHubHeader .fmto-club-header__main{
      grid-template-columns: minmax(260px, 1fr) minmax(180px, 300px) 220px;
    }
    #clubHubHeader .fmto-club-header__actions{ display: none; }
    .player-result.player-result--with-stats{
      grid-template-columns: minmax(260px, 1fr) auto;
      grid-template-areas: "identity actions" "stats stats";
    }
    .player-result.player-result--with-stats .player-main{ grid-area: identity; }
    .player-result.player-result--with-stats .player-season-stats{
      grid-area: stats; padding-top: 7px; border-top: 1px solid var(--line);
    }
    .player-result.player-result--with-stats .player-actions{ grid-area: actions; }
  }

  @media (max-width: 767px) {
    #clubHubHeader .fmto-club-header__main{ min-height: 68px; }
    .fmto-club-switch{ grid-column: 1 / -1; width: 100%; margin-top: 5px; }
    .fmto-club-switch__label{ display: none; }
    .fmto-club-switch__trigger{ min-height: 42px; }

    #playersView .player-search-panel--compact{
      width: 100%; grid-template-columns: 1fr 1fr;
    }
    #playersView .player-search-panel--compact .player-query,
#playersView .player-search-panel--compact .presence-filter,
#playersView .player-search-panel--compact .team-filter:not([hidden]){
      grid-column: 1 / -1; width: 100%;
    }
    #playersView .player-search-panel--compact .secondary-button,
#playersView .player-search-panel--compact .primary-button{
      width: 100%; min-width: 0;
    }

    .player-result.player-result--with-stats{
      grid-template-columns: 1fr;
      grid-template-areas: "identity" "stats" "actions";
      gap: 10px;
    }
    .player-season-stats{
      grid-template-columns: repeat(5, minmax(42px, 1fr));
      width: 100%; gap: 0;
    }
    .player-season-stat{ min-height: 50px; }
  }

  @media (min-width: 901px){
    #playersView .player-search-panel--compact {
      width: 100%;
      display: grid;
      grid-template-columns: minmax(280px, 480px) 150px minmax(185px, 235px) 108px 108px;
      gap: 8px;
      align-items: end;
      justify-content: start;
    }
    #playersView .player-search-panel--compact .player-query,
    #playersView .player-search-panel--compact .presence-filter,
    #playersView .player-search-panel--compact .team-filter:not([hidden]) {
      grid-column: auto;
      width: auto;
      min-width: 0;
    }
    #playersView .player-search-panel--compact .secondary-button,
    #playersView .player-search-panel--compact .primary-button {
      width: 108px;
      min-width: 108px;
      min-height: 42px;
      height: 42px;
      padding: 0 10px;
      white-space: nowrap;
    }
  }

  .player-result.player-result--with-stats{
    grid-template-columns: minmax(330px, 1.15fr) 350px minmax(310px, auto);
    align-items: center;
  }
  .player-season-stats{
    width: 350px;
    height: 62px;
    align-self: center;
    justify-self: center;
  }
  .player-season-stat{
    min-height: 62px;
    height: 62px;
    display: grid;
    grid-template-rows: 23px 10px 17px;
    align-content: center;
    align-items: center;
    justify-items: center;
    gap: 1px;
    padding: 4px 2px;
  }
  .player-season-stat__icon{ width: 22px; height: 22px; }
  .player-season-stat small{
    position: static;
    min-height: 10px;
    line-height: 10px;
    margin: 0;
    font-size: 7px;
  }
  .player-season-stat strong{
    min-height: 17px;
    line-height: 17px;
    margin: 0;
  }
  .player-result.player-result--with-stats .player-actions{
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 7px;
    flex-wrap: nowrap;
  }
  .player-result.player-result--with-stats .player-actions button[data-profile],
.player-result.player-result--with-stats .player-actions button[data-compare]{
    width: 86px;
    min-width: 86px;
    height: 40px;
    min-height: 40px;
    padding: 0 9px;
    display: inline-grid;
    place-items: center;
    white-space: nowrap;
  }

  #clubDetail,
#clubHubHeader.fmto-club-header,
#clubHubHeader .fmto-club-header__main,
#clubHubHeader .fmto-club-switch{
    overflow: visible !important;
  }
  #clubHubHeader.fmto-club-header{ isolation: isolate; z-index: 70; }
  .fmto-club-switch__menu{
    z-index: 250;
    top: calc(100% + 8px);
    max-height: min(440px, 62vh);
  }

  @media (min-width: 1280px) {
    .transfer-operations{
      grid-template-columns: repeat(2, minmax(0, 1fr));
      gap: 14px;
      align-items: stretch;
    }
    .transfer-operation{
      min-width: 0;
      height: 100%;
      display: flex;
      flex-direction: column;
    }
    .transfer-operation-body{
      flex: 1;
      display: grid;
      align-content: start;
    }
  }

  .transfer-movement.transfer-movement--compact{
    grid-template-columns: minmax(125px, .9fr) minmax(170px, 1.15fr) minmax(105px, .75fr) auto;
    grid-template-areas:
      "seller player buyer value"
      "link link link value"
      "chips chips chips chips";
    gap: 7px 12px;
    align-items: center;
    min-height: 112px;
    padding: 13px 15px;
  }
  .transfer-flow-team{
    min-width: 0;
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr);
    grid-template-areas: "logo name" "logo verb";
    gap: 1px 8px;
    align-items: center;
  }
  .transfer-flow-team--seller{ grid-area: seller; }
  .transfer-flow-team--buyer{ grid-area: buyer; }
  .transfer-flow-team .transfer-team-logo,
.transfer-flow-team .transfer-team-fallback{
    grid-area: logo;
    width: 34px;
    height: 34px;
  }
  .transfer-flow-team strong{
    grid-area: name;
    min-width: 0;
    white-space: normal;
    overflow: visible;
    text-overflow: clip;
    overflow-wrap: anywhere;
    line-height: 1.15;
    font-size: 12px;
  }
  .transfer-flow-team span{
    grid-area: verb;
    color: var(--muted);
    font-size: 10px;
    line-height: 1.1;
  }
  .transfer-player.transfer-player--flow{
    grid-area: player;
    min-width: 0;
    min-height: 58px;
    padding: 5px;
  }
  .transfer-player.transfer-player--flow .transfer-player-copy strong,
.transfer-player.transfer-player--flow .transfer-player-copy small{
    white-space: normal;
    overflow: visible;
    text-overflow: clip;
    overflow-wrap: anywhere;
    line-height: 1.15;
  }
  .transfer-flow-link{
    grid-area: link;
    padding-left: 42px;
    color: var(--muted);
    font-size: 10px;
  }
  .transfer-movement--compact .transfer-value{
    grid-area: value;
    align-self: center;
    min-width: 76px;
  }
  .transfer-movement--compact .transfer-clause-row{
    grid-area: chips;
    grid-column: auto;
    margin: 0;
    min-width: 0;
  }
  .transfer-movement--compact .transfer-clause-row span{
    max-width: 100%;
    white-space: normal;
    overflow-wrap: anywhere;
  }
  @media (max-width: 1279px) {
    .transfer-operations{ grid-template-columns: 1fr; }
  }

  @media (max-width: 1100px) and (min-width: 861px) {
    .sidebar,
.sidebar.sidebar--collapsed{
      width: 78px !important;
      padding-left: 10px !important;
      padding-right: 10px !important;
    }
    .sidebar .brand,
.sidebar.sidebar--collapsed .brand{
      min-height: 66px;
      padding: 0;
    }
    .sidebar .brand-logo,
.sidebar.sidebar--collapsed .brand-logo{
      width: 58px;
      height: 58px;
    }
    .sidebar .nav-list,
.sidebar.sidebar--collapsed .nav-list{ margin-top: 28px; }
    .sidebar .nav-item,
.sidebar.sidebar--collapsed .nav-item{
      width: 48px;
      min-height: 48px;
      margin-inline: auto;
      grid-template-columns: 1fr;
      justify-items: center;
      padding: 8px;
    }
    .sidebar .nav-label,
.sidebar .version{
      display: none !important;
    }
    .sidebar .nav-count{
      position: absolute;
      top: 2px;
      right: -5px;
      min-width: 23px;
      height: 18px;
      padding: 0 4px;
      font-size: 8px;
    }
    .sidebar-collapse{ display: none !important; }
    .main,
body.fmto-sidebar-collapsed .main{
      margin-left: 78px !important;
      width: calc(100% - 78px) !important;
    }

    .player-result.player-result--with-stats{
      grid-template-columns: minmax(260px, 1fr) auto;
      grid-template-areas: "identity actions" "stats stats";
    }
    .player-result.player-result--with-stats .player-main{ grid-area: identity; }
    .player-result.player-result--with-stats .player-actions{ grid-area: actions; }
    .player-result.player-result--with-stats .player-season-stats{
      grid-area: stats;
      width: min(100%, 350px);
      justify-self: center;
      border-top: 1px solid var(--line);
      padding-top: 6px;
    }
  }

  @media (max-width: 860px) {
    .app-shell{ display: block !important; }
    .sidebar,
.sidebar.sidebar--collapsed{
      position: sticky !important;
      inset: auto !important;
      top: 0 !important;
      z-index: 100 !important;
      width: 100% !important;
      height: 64px !important;
      min-height: 64px !important;
      padding: 8px 10px !important;
      display: flex !important;
      flex-direction: row !important;
      align-items: center !important;
      gap: 8px !important;
      border-right: 0 !important;
      border-bottom: 1px solid var(--fmto-sidebar-border) !important;
      overflow: hidden !important;
    }
    .sidebar .brand,
.sidebar.sidebar--collapsed .brand{
      width: 48px !important;
      min-width: 48px !important;
      height: 48px !important;
      min-height: 48px !important;
      flex: 0 0 48px !important;
      padding: 0 !important;
    }
    .sidebar .brand-logo,
.sidebar.sidebar--collapsed .brand-logo{
      width: 46px !important;
      height: 46px !important;
    }
    .sidebar .nav-list,
.sidebar.sidebar--collapsed .nav-list{
      flex: 1 1 auto !important;
      min-width: 0 !important;
      display: flex !important;
      flex-direction: row !important;
      align-items: center !important;
      gap: 4px !important;
      margin: 0 !important;
      padding: 0 2px !important;
      overflow-x: auto !important;
      overflow-y: hidden !important;
      scrollbar-width: none;
    }
    .sidebar .nav-list::-webkit-scrollbar{ display: none; }
    .sidebar .nav-group,
.sidebar.sidebar--collapsed .nav-group{ display: contents !important; }
    .sidebar .nav-divider,
.sidebar-footer,
.sidebar-collapse{ display: none !important; }
    .sidebar .nav-item,
.sidebar.sidebar--collapsed .nav-item{
      flex: 0 0 44px !important;
      width: 44px !important;
      min-width: 44px !important;
      min-height: 44px !important;
      margin: 0 !important;
      padding: 6px !important;
      display: grid !important;
      grid-template-columns: 1fr !important;
      justify-items: center !important;
    }
    .sidebar .nav-label,
.sidebar.sidebar--collapsed .nav-label{ display: none !important; }
    .sidebar .nav-count{
      position: absolute !important;
      top: 0 !important;
      right: -2px !important;
      min-width: 21px !important;
      height: 16px !important;
      padding: 0 3px !important;
      font-size: 7px !important;
    }
    .main,
body.fmto-sidebar-collapsed .main{
      margin-left: 0 !important;
      width: 100% !important;
      padding-top: 16px !important;
    }
    #clubHubHeader.fmto-club-header{ top: 64px; }
  }

  @media (max-width: 900px) {
    #playersView .player-search-panel--compact{
      width: 100%;
      grid-template-columns: 1fr 1fr;
    }
    #playersView .player-search-panel--compact .player-query{ grid-column: 1 / -1; }
    #playersView .player-search-panel--compact .presence-filter,
#playersView .player-search-panel--compact .team-filter:not([hidden]){
      grid-column: auto;
      width: 100%;
    }
    #playersView .player-search-panel--compact .secondary-button,
#playersView .player-search-panel--compact .primary-button{
      width: 100%;
      min-width: 0;
    }
    .player-result.player-result--with-stats{
      grid-template-columns: 1fr;
      grid-template-areas: "identity" "stats" "actions";
      gap: 9px;
    }
    .player-result.player-result--with-stats .player-main{ grid-area: identity; }
    .player-result.player-result--with-stats .player-season-stats{
      grid-area: stats;
      width: 100%;
      max-width: 380px;
      justify-self: center;
    }
    .player-result.player-result--with-stats .player-actions{
      grid-area: actions;
      justify-content: flex-start;
      flex-wrap: wrap;
    }
  }

  @media (max-width: 700px) {
    .transfer-movement.transfer-movement--compact{
      grid-template-columns: minmax(0, 1fr) auto;
      grid-template-areas:
        "player value"
        "seller seller"
        "link link"
        "buyer buyer"
        "chips chips";
      min-height: 0;
    }
    .transfer-flow-link{ padding-left: 42px; }
    .transfer-movement--compact .transfer-value{ text-align: right; }
  }

  .club-directory-toolbar{
    display: flex;
    justify-content: flex-end;
    margin-bottom: 14px;
  }
  .club-directory-toolbar .search{
    width: min(100%, 280px);
  }

  #transfersView .transfer-desk{
    padding-top: 0;
  }
  #transfersView .transfer-metrics{
    margin-top: 0;
  }

  .transfer-movement.transfer-movement--compact{
    grid-template-columns: minmax(135px, .9fr) minmax(190px, 1.15fr) minmax(135px, .9fr) auto;
    grid-template-areas: "seller player buyer value";
    min-height: 126px;
    gap: 12px;
    align-items: center;
  }

  .transfer-flow-team{
    display: grid;
    grid-template-columns: 36px minmax(0, 1fr);
    align-items: center;
    gap: 9px;
    min-width: 0;
  }
  .transfer-flow-team--seller{ grid-area: seller; }
  .transfer-flow-team--buyer{ grid-area: buyer; }

  .transfer-flow-team__copy{
    min-width: 0;
    display: grid;
    grid-template-rows: 18px 18px;
    align-items: center;
  }
  .transfer-flow-team__copy strong,
.transfer-flow-team__copy span{
    min-width: 0;
    margin: 0;
    line-height: 18px;
  }
  .transfer-flow-team__copy strong{
    font-size: 12px;
    white-space: normal;
    overflow-wrap: anywhere;
  }
  .transfer-flow-team__copy span{
    color: var(--muted);
    font-size: 10px;
  }
  .transfer-flow-team--seller .transfer-flow-team__copy strong{ grid-row: 1; }
  .transfer-flow-team--seller .transfer-flow-team__copy span{ grid-row: 2; }

  .transfer-flow-team--buyer .transfer-flow-team__copy span{ grid-row: 1; }
  .transfer-flow-team--buyer .transfer-flow-team__copy strong{ grid-row: 2; }

  .transfer-player-stack{
    grid-area: player;
    min-width: 0;
    display: grid;
    align-content: center;
    gap: 7px;
  }
  .transfer-player-stack .transfer-player{
    width: 100%;
  }
  .transfer-player-stack .transfer-clause-row{
    margin: 0;
    padding: 0 5px;
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
  }
  .transfer-player-stack .transfer-clause-row span{
    white-space: normal;
    line-height: 1.15;
  }
  .transfer-movement--compact .transfer-value{
    grid-area: value;
  }

  .player-result.player-result--with-stats{
    grid-template-columns: minmax(0, 1fr) 360px minmax(0, 1fr);
    gap: 16px;
    align-items: center;
  }
  .player-result.player-result--with-stats .player-main{
    justify-self: start;
    width: 100%;
    min-width: 0;
  }
  .player-result.player-result--with-stats .player-season-stats{
    width: 360px;
    justify-self: center;
    margin-inline: auto;
  }
  .player-result.player-result--with-stats .player-actions{
    justify-self: end;
    width: auto;
    min-width: 0;
  }

  #clubHubHeader .fmto-club-header__main{
    grid-template-columns: minmax(320px, 1fr) minmax(210px, 280px);
    justify-content: space-between;
  }
  #clubHubHeader .fmto-club-switch{
    justify-self: end;
    width: min(100%, 280px);
  }

  .club-roster-kpis{
    display: grid;
    grid-template-columns: repeat(9, minmax(116px, 1fr));
    gap: 8px;
    margin: 0 0 14px;
    overflow-x: auto;
    padding: 1px 1px 7px;
    scrollbar-width: thin;
  }
  .club-roster-kpi{
    min-width: 116px;
    min-height: 92px;
    padding: 11px 10px;
    border: 1px solid var(--line);
    border-radius: 13px;
    background: var(--surface);
    display: flex;
    flex-direction: column;
    justify-content: center;
    box-sizing: border-box;
  }
  .club-roster-kpi > span{
    color: var(--muted);
    font-size: 9px;
    font-weight: 850;
    text-transform: uppercase;
    letter-spacing: .045em;
    line-height: 1.2;
    min-height: 22px;
  }
  .club-roster-kpi > strong{
    margin-top: 4px;
    color: var(--text);
    font-size: 18px;
    line-height: 1.05;
  }
  .club-roster-kpi > small{
    margin-top: 5px;
    color: var(--muted);
    font-size: 8px;
    line-height: 1.15;
  }
  .club-roster-kpi.is-squad > strong{ color: #2563eb; }
  .club-roster-kpi.is-reserve > strong{ color: #64748b; }
  .club-roster-kpi.is-under > strong{ color: #d97706; }
  .club-roster-kpi.is-wages > strong{ color: #0f766e; }
  .club-kpi-market-value{
    display: flex;
    flex-wrap: nowrap;
    align-items: baseline;
    gap: 3px;
    font-size: 15px !important;
    white-space: nowrap;
  }
  .club-kpi-market-value b{ font-style: normal; }
  .club-kpi-market-value .positive{ color: #15803d; }
  .club-kpi-market-value .negative{ color: #dc2626; }
  .club-kpi-market-value i,
.club-kpi-market-value em{
    color: var(--muted);
    font-style: normal;
    font-size: 10px;
  }

  .player-profile{
    background: #f4f6fa !important;
    color: #0f1a2b !important;
    border: 1px solid #d3dcea !important;
  }
  .player-profile .profile-hero{
    background: #e7ecf5 !important;
    color: #0f1a2b !important;
    border-bottom: 1px solid #d3dcea !important;
  }
  .player-profile .profile-identity > p,
.player-profile .profile-membership-label,
.player-profile .profile-membership-item span,
.player-profile .profile-rating span{
    color: #5b6b85 !important;
  }
  .player-profile .profile-membership-item{
    background: #e7ecf5 !important;
    border-color: #d3dcea !important;
  }
  .player-profile .profile-membership-item strong,
.player-profile .profile-identity h2,
.player-profile .profile-rating strong{
    color: #0f1a2b !important;
  }

  .profile-tabs{
    height: 52px;
    display: flex;
    align-items: end;
    gap: 4px;
    padding: 0 22px;
    background: #e7ecf5;
    border-bottom: 1px solid #263953;
  }
  .profile-tab{
    position: relative;
    min-height: 44px;
    padding: 0 15px;
    border: 0;
    background: transparent;
    color: #5b6b85;
    font: inherit;
    font-size: 11px;
    font-weight: 850;
    text-transform: uppercase;
    letter-spacing: .045em;
    cursor: pointer;
  }
  .profile-tab:hover{ color: #33445c; }
  .profile-tab.is-active{
    
    color: #0f1a2b;
  }
  .profile-tab.is-active::after{
    content: "";
    position: absolute;
    left: 12px;
    right: 12px;
    bottom: 0;
    height: 3px;
    border-radius: 3px 3px 0 0;
    background: #3984ff;
  }

  .profile-tab-panel{
    background: #f4f6fa;
  }
  .profile-tab-panel[hidden]{
    display: none !important;
  }

  @media (min-width: 861px){
    [data-profile-tab="transfers"],
    [data-profile-panel="transfers"]{
      display: none !important;
    }
  }

  @media (max-width: 860px){
    .stats-team-name,
    .stats-movement-team-name{
      display: none;
    }
    .stats-season-full{
      display: none;
    }
    .stats-season-short{
      display: inline;
      font-weight: 700;
    }
    .stats-movement-fm-group{
      display: none;
    }
  }

  .player-profile .profile-body{
    background: #f4f6fa !important;
  }
  .player-profile .profile-role-panel,
.player-profile .attribute-group,
.player-profile .club-empty{
    background: #e9edf5 !important;
    border-color: #293e5d !important;
    color: #5b6b85 !important;
  }
  .player-profile .attribute-group h3,
.player-profile .role-panel-heading,
.player-profile .attribute-row span,
.player-profile .club-empty span{
    color: #5b6b85 !important;
  }
  .player-profile .attribute-row{
    border-color: #d3dcea !important;
  }
  .player-profile .attribute-row strong,
.player-profile .club-empty strong{
    color: #0f1a2b;
  }

  .profile-career-panel{
    min-height: 300px;
    padding: 20px 22px 24px;
    background: #f4f6fa;
  }
  .profile-career-panel .profile-career-heading{
    margin-bottom: 14px;
  }
  .profile-career-panel .profile-career-heading h3,
.profile-career-panel .career-season span,
.profile-career-panel .career-team strong,
.profile-career-panel .career-cr{
    color: #0f1a2b;
  }
  .profile-career-panel .career-summary span,
.profile-career-panel .career-event{
    background: #e9edf5;
    border-color: #d3dcea;
    color: #5b6b85;
  }
  .profile-career-panel .career-summary strong{
    color: #0f1a2b;
  }
  .profile-career-panel .stats-movement-empty,
.profile-career-panel .stats-movement-meta{
    color: #5b6b85;
  }
  .profile-career-panel .stats-movement-line:hover,
.profile-career-panel .stats-movement-line:focus-visible{
    background: #e9edf5;
  }
  .profile-career-panel .career-season small,
.profile-career-panel .career-type,
.profile-career-panel .career-empty,
.profile-career-panel .career-loading{
    color: #5b6b85;
  }
  .profile-career-panel .career-timeline::before{
    background: #c9d3e2;
  }
  .profile-career-panel .career-event::before{
    border-color: #e9edf5;
    background: #3984ff;
  }
  .profile-career-panel .career-team-fallback{
    background: #e9edf5;
    border-color: #d3dcea;
  }
  .profile-transfers-panel{
    min-height: 300px;
    padding: 20px 22px 24px;
    background: #f4f6fa;
  }
  .profile-transfers-panel .profile-career-heading{
    margin-bottom: 14px;
  }
  .profile-transfers-panel .profile-career-heading h3,
.profile-transfers-panel .career-season span,
.profile-transfers-panel .career-team strong,
.profile-transfers-panel .career-cr{
    color: #0f1a2b;
  }
  .profile-transfers-panel .career-summary span,
.profile-transfers-panel .career-event{
    background: #e9edf5;
    border-color: #d3dcea;
    color: #5b6b85;
  }
  .profile-transfers-panel .career-summary strong{
    color: #0f1a2b;
  }
  .profile-transfers-panel .stats-movement-empty,
.profile-transfers-panel .stats-movement-meta{
    color: #5b6b85;
  }
  .profile-transfers-panel .stats-movement-line:hover,
.profile-transfers-panel .stats-movement-line:focus-visible{
    background: #e9edf5;
  }
  .profile-transfers-panel .career-season small,
.profile-transfers-panel .career-type,
.profile-transfers-panel .career-empty,
.profile-transfers-panel .career-loading{
    color: #5b6b85;
  }
  .profile-transfers-panel .career-timeline::before{
    background: #c9d3e2;
  }
  .profile-transfers-panel .career-event::before{
    border-color: #e9edf5;
    background: #3984ff;
  }
  .profile-transfers-panel .career-team-fallback{
    background: #e9edf5;
    border-color: #d3dcea;
  }

  @media (max-width: 1180px){
    .app-shell {
      display: block !important;
    }
    .sidebar,
    .sidebar.sidebar--collapsed {
      position: sticky !important;
      inset: auto !important;
      top: 0 !important;
      z-index: 120 !important;
      width: 100% !important;
      height: 64px !important;
      min-height: 64px !important;
      padding: 8px 12px !important;
      display: flex !important;
      flex-direction: row !important;
      align-items: center !important;
      gap: 8px !important;
      border-right: 0 !important;
      border-bottom: 1px solid var(--fmto-sidebar-border) !important;
      overflow: hidden !important;
      box-shadow: 0 5px 18px rgba(15,23,42,.08) !important;
    }
    .sidebar .brand,
    .sidebar.sidebar--collapsed .brand {
      width: 48px !important;
      min-width: 48px !important;
      height: 48px !important;
      min-height: 48px !important;
      flex: 0 0 48px !important;
      padding: 0 !important;
    }
    .sidebar .brand-logo,
    .sidebar.sidebar--collapsed .brand-logo {
      width: 46px !important;
      height: 46px !important;
    }
    .sidebar .nav-list,
    .sidebar.sidebar--collapsed .nav-list {
      flex: 1 1 auto !important;
      min-width: 0 !important;
      display: flex !important;
      flex-direction: row !important;
      align-items: center !important;
      gap: 5px !important;
      margin: 0 !important;
      padding: 0 3px !important;
      overflow-x: auto !important;
      overflow-y: hidden !important;
      scrollbar-width: none !important;
    }
    .sidebar .nav-list::-webkit-scrollbar { display: none; }
    .sidebar .nav-group,
    .sidebar.sidebar--collapsed .nav-group { display: contents !important; }
    .sidebar .nav-divider,
    .sidebar-footer,
    .sidebar-collapse { display: none !important; }
    .sidebar .nav-item,
    .sidebar.sidebar--collapsed .nav-item {
      position: relative !important;
      flex: 0 0 46px !important;
      width: 46px !important;
      min-width: 46px !important;
      min-height: 46px !important;
      margin: 0 !important;
      padding: 7px !important;
      display: grid !important;
      grid-template-columns: 1fr !important;
      justify-items: center !important;
    }
    .sidebar .nav-label,
    .sidebar.sidebar--collapsed .nav-label { display: none !important; }
    .sidebar .nav-count {
      position: absolute !important;
      top: 0 !important;
      right: -2px !important;
      min-width: 21px !important;
      height: 16px !important;
      padding: 0 3px !important;
      font-size: 7px !important;
    }
    .main,
    body.fmto-sidebar-collapsed .main {
      margin-left: 0 !important;
      width: 100% !important;
      padding-top: 18px !important;
    }
    #clubHubHeader.fmto-club-header {
      top: 64px !important;
    }
  }

  @media (max-width: 1050px) {
    .player-result.player-result--with-stats{
      grid-template-columns: minmax(0, 1fr) auto;
      grid-template-areas:
        "identity actions"
        "stats stats";
    }
    .player-result.player-result--with-stats .player-main{ grid-area: identity; }
    .player-result.player-result--with-stats .player-actions{ grid-area: actions; }
    .player-result.player-result--with-stats .player-season-stats{
      grid-area: stats;
      width: min(100%, 360px);
      justify-self: center;
      border-top: 1px solid var(--line);
      padding-top: 6px;
    }

    #clubHubHeader .fmto-club-header__main{
      grid-template-columns: minmax(260px, 1fr) minmax(190px, 250px);
    }
  }

  @media (max-width: 700px) {
    .transfer-movement.transfer-movement--compact{
      grid-template-columns: minmax(0, 1fr) auto;
      grid-template-areas:
        "player value"
        "seller seller"
        "buyer buyer";
      min-height: 0;
    }
    .transfer-player-stack{ grid-area: player; }
    .transfer-flow-team--seller,
.transfer-flow-team--buyer{
      min-height: 48px;
    }

    .profile-tabs{
      padding-inline: 10px;
    }
    .profile-tab{
      flex: 1 1 50%;
      padding-inline: 6px;
      font-size: 10px;
    }

    #clubHubHeader .fmto-club-header__main{
      grid-template-columns: 1fr;
    }
    #clubHubHeader .fmto-club-switch{
      width: 100%;
      justify-self: stretch;
    }
  }

  @media (min-width: 1440px){
    .transfer-operations {
      grid-template-columns: repeat(2, minmax(0, 1fr));
      align-items: stretch;
    }
  }

  @media (max-width: 1439px) {
    .transfer-operations{
      grid-template-columns: 1fr;
    }
  }

  .transfer-operation{
    min-width: 0;
  }

  .transfer-operation-body{
    display: grid;
    grid-auto-rows: minmax(126px, auto);
    align-content: start;
  }

  .transfer-movement.transfer-movement--aligned{
    width: 100%;
    min-width: 0;
    min-height: 126px;
    display: grid;
    grid-template-columns: minmax(118px, 21%) minmax(205px, 34%) minmax(118px, 24%) minmax(76px, 13%);
    gap: 12px;
    align-items: center;
    padding: 14px 15px;
    box-sizing: border-box;
  }

  .transfer-movement--aligned .transfer-col{
    min-width: 0;
  }

  .transfer-movement--aligned .transfer-col--seller,
.transfer-movement--aligned .transfer-col--buyer{
    display: grid;
    grid-template-columns: 36px minmax(0, 1fr);
    gap: 9px;
    align-items: center;
  }

  .transfer-movement--aligned .transfer-col__copy{
    min-width: 0;
    display: grid;
    grid-template-rows: minmax(18px, auto) minmax(18px, auto);
    align-content: center;
  }

  .transfer-movement--aligned .transfer-col__copy strong,
.transfer-movement--aligned .transfer-col__copy small{
    display: block;
    min-width: 0;
    margin: 0;
    line-height: 1.2;
    overflow-wrap: anywhere;
  }

  .transfer-movement--aligned .transfer-col__copy strong{
    color: var(--text);
    font-size: 12px;
  }

  .transfer-movement--aligned .transfer-col__copy small{
    color: var(--muted);
    font-size: 9px;
  }

  .transfer-movement--aligned .transfer-col--seller .transfer-col__copy strong{ grid-row: 1; }
  .transfer-movement--aligned .transfer-col--seller .transfer-col__copy small{ grid-row: 2; }

  .transfer-movement--aligned .transfer-col--buyer .transfer-col__copy small{ grid-row: 1; }
  .transfer-movement--aligned .transfer-col--buyer .transfer-col__copy strong{ grid-row: 2; }

  .transfer-movement--aligned .transfer-col--player{
    display: grid;
    align-content: center;
    gap: 5px;
  }

  .transfer-player.transfer-player--aligned{
    width: 100%;
    min-width: 0;
    min-height: 58px;
    padding: 4px;
  }

  .transfer-player--aligned .transfer-player-copy{
    min-width: 0;
  }

  .transfer-player--aligned .transfer-player-copy strong,
.transfer-player--aligned .transfer-player-copy small{
    white-space: normal !important;
    overflow: visible !important;
    text-overflow: clip !important;
    overflow-wrap: anywhere;
    line-height: 1.18;
  }

  .transfer-movement--aligned .transfer-clause-row{
    width: 100%;
    margin: 0;
    padding: 0 4px;
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
  }

  .transfer-movement--aligned .transfer-clause-row span{
    width: auto !important;
    min-width: 0 !important;
    height: auto !important;
    min-height: 24px;
    display: inline-flex;
    align-items: center;
    padding: 4px 8px !important;
    border-radius: 999px !important;
    white-space: normal !important;
    line-height: 1.12;
  }

  .transfer-movement--aligned .transfer-col--value{
    justify-self: end;
    text-align: right;
    min-width: 72px;
  }

  @media (max-width: 760px) {
    .transfer-operation-body{
      grid-auto-rows: auto;
    }
    .transfer-movement.transfer-movement--aligned{
      grid-template-columns: minmax(0, 1fr) auto;
      grid-template-areas:
        "player value"
        "seller seller"
        "buyer buyer";
      gap: 10px;
      min-height: 0;
    }
    .transfer-col--player{ grid-area: player; }
    .transfer-col--seller{ grid-area: seller; }
    .transfer-col--buyer{ grid-area: buyer; }
    .transfer-col--value{ grid-area: value; }
  }

  .club-manager-card{
    display: grid;
    grid-template-columns: minmax(190px, .8fr) minmax(0, 2.2fr);
    gap: 18px;
    align-items: center;
    margin: 0 0 10px;
    padding: 12px 14px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: var(--surface);
    box-shadow: 0 8px 22px rgba(15, 23, 42, .035);
  }

  .club-manager-card__identity{
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 11px;
  }

  .club-manager-avatar{
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
    display: grid;
    place-items: center;
    border-radius: 12px;
    background: #eaf1ff;
    color: #2563eb;
    font-weight: 900;
    font-size: 17px;
  }

  .club-manager-card__identity > div{
    min-width: 0;
    display: grid;
  }

  .club-manager-card__identity span:not(.club-manager-avatar),
.club-manager-card__meta dt{
    color: var(--muted);
    font-size: 8px;
    font-weight: 850;
    text-transform: uppercase;
    letter-spacing: .055em;
  }

  .club-manager-card__identity strong{
    color: var(--text);
    font-size: 14px;
    overflow-wrap: anywhere;
  }

  .club-manager-card__identity small{
    color: var(--muted);
    font-size: 9px;
  }

  .club-manager-card__meta{
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
    margin: 0;
  }

  .club-manager-card__meta > div{
    min-width: 0;
    padding-left: 10px;
    border-left: 1px solid var(--line);
  }

  .club-manager-card__meta dt,
.club-manager-card__meta dd{
    margin: 0;
  }

  .club-manager-card__meta dd{
    margin-top: 3px;
    color: var(--text);
    font-size: 11px;
    font-weight: 750;
    overflow-wrap: anywhere;
  }

  .club-manager-contact{
    min-width: 0;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: inherit;
    text-decoration: none;
  }

  .club-manager-contact.is-telegram{
    color: #1677d2;
  }

  .club-manager-contact.is-telegram:hover{
    text-decoration: underline;
  }

  .club-manager-contact.is-disabled{
    color: var(--muted);
  }

  .roster-out-team{
    display: inline-flex;
    align-items: center;
    gap: 4px;
    min-width: 0;
  }

  .roster-out-team__label{
    color: var(--muted);
    font-size: 7px;
    font-weight: 900;
    letter-spacing: .04em;
  }

  .roster-out-team-logo,
.roster-out-team-fallback{
    width: 26px;
    height: 26px;
    flex: 0 0 26px;
    object-fit: contain;
    border-radius: 7px;
    background: var(--surface);
  }

  .roster-out-team-fallback{
    display: grid;
    place-items: center;
    color: #fff;
    font-size: 7px;
    font-weight: 900;
  }

  .reserve-type-group > h3 > span.danger{
    color: #dc2626;
    background: #fee2e2;
  }

  .roster-market-stack{
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    min-width: 0;
  }

  .roster-market-stack .roster-status-pill{
    margin: 0;
  }

  .roster-market-stack .market-badges{
    margin: 0;
    justify-content: center;
  }

  .roster-card-side{
    align-items: center;
  }

  .player-result.player-result--with-stats .player-actions{
    align-items: center;
  }

  .compare-summary-card .roster-market-stack{
    margin-top: 6px;
    align-items: flex-start;
  }

  #clubRosterOverviewAnchor{
    scroll-margin-top: 210px;
  }

  @media (max-width: 1050px) {
    .club-manager-card{
      grid-template-columns: 1fr;
      gap: 10px;
    }

    .club-manager-card__meta{
      grid-template-columns: repeat(4, minmax(120px, 1fr));
      overflow-x: auto;
      padding-bottom: 3px;
    }
  }

  @media (max-width: 620px) {
    .club-manager-card__meta{
      grid-template-columns: repeat(2, minmax(0, 1fr));
      overflow: visible;
    }

    .club-manager-card__meta > div:nth-child(odd){
      border-left: 0;
      padding-left: 0;
    }
  }

  .club-roster-kpis{
    grid-template-columns: repeat(16, minmax(104px, 1fr));
    gap: 7px;
  }
  .club-roster-kpi{ min-width: 104px; }
  .club-roster-kpi.is-market-rule > strong{ color: #315fbe; }
  .club-roster-kpi.is-at-limit{
    border-color: #f1bf63;
    background: color-mix(in srgb, var(--surface) 92%, #f59e0b);
  }
  .club-roster-kpi.is-over-limit{
    border-color: #ef8c8c;
    background: color-mix(in srgb, var(--surface) 88%, #ef4444);
  }
  .club-roster-kpi.is-over-limit > strong{ color: #dc2626; }

  .management-table-shell{ min-width: 0; }
  .management-table-heading{
    display: flex;
    justify-content: space-between;
    align-items: end;
    gap: 16px;
    margin-bottom: 12px;
  }
  .management-table-heading h2{ margin: 3px 0 0; font-size: 24px; }
  .management-table-heading > span{ color: var(--muted); font-size: 13px; }

  .data-table-scroll{
    width: 100%;
    overflow: auto;
    border: 1px solid var(--line);
    border-radius: 15px;
    background: var(--surface);
    box-shadow: 0 12px 30px rgba(15, 23, 42, .04);
  }
  .management-table{
    width: 100%;
    min-width: 1180px;
    border-collapse: separate;
    border-spacing: 0;
    color: var(--text);
    font-size: 13.5px;
  }
  .finance-table{ min-width: 2350px; }
  .managers-table{ min-width: 980px; }
  .management-table th,
.management-table td{
    padding: 10px 11px;
    border-right: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    vertical-align: middle;
    white-space: nowrap;
  }
  .management-table th:last-child,
.management-table td:last-child{ border-right: 0; }
  .management-table tbody tr:last-child td{ border-bottom: 0; }
  .management-table thead th{
    position: sticky;
    top: 0;
    z-index: 3;
    min-width: 112px;
    padding: 8px;
    background: color-mix(in srgb, var(--surface) 96%, #2563eb);
  }
  .management-table thead th:first-child{
    min-width: 190px;
    left: 0;
    z-index: 5;
  }
  .management-table tbody td:first-child{
    position: sticky;
    left: 0;
    z-index: 2;
    background: var(--surface);
  }

  .data-table-sort{
    width: 100%;
    min-height: 28px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
    padding: 0 2px;
    border: 0;
    background: transparent;
    color: var(--text);
    font: inherit;
    font-size: 9px;
    font-weight: 900;
    letter-spacing: .035em;
    text-transform: uppercase;
    cursor: pointer;
  }
  .data-sort-arrow{ color: #9aa8ba; font-size: 10px; }
  .data-sort-arrow.is-active{ color: #2563eb; }
  .data-table-filter{
    width: 100%;
    height: 29px;
    margin-top: 4px;
    padding: 0 7px;
    border: 1px solid var(--line);
    border-radius: 7px;
    background: var(--surface);
    color: var(--text);
    font: inherit;
    font-size: 9px;
    outline: none;
  }
  .data-table-filter:focus{
    border-color: #7ca2f7;
    box-shadow: 0 0 0 2px rgba(37,99,235,.10);
  }
  .management-table tbody tr:hover td,
.management-table tbody tr:hover td:first-child{
    background: color-mix(in srgb, var(--surface) 94%, #2563eb);
  }

  .data-team-cell{
    display: flex;
    align-items: center;
    gap: 8px;
  }
  .data-team-logo{
    width: 28px;
    height: 28px;
    flex: 0 0 28px;
    object-fit: contain;
    border-radius: 7px;
    background: var(--surface);
  }
  .data-team-logo--fallback{ display: inline-block; background: #eef2f7; }
  .data-number{ text-align: right; font-variant-numeric: tabular-nums; font-weight: 760; }
  .data-muted{ color: var(--muted); }
  .data-positive{ color: #15803d; }
  .data-negative{ color: #dc2626; }
  .data-limit-full{ color: #b26c00; background: #fff9ea; }
  .data-limit-over{ color: #c92020; background: #fff1f1; }
  .data-contact-link{ color: #1677d2; font-weight: 750; text-decoration: none; }
  .data-contact-link:hover{ text-decoration: underline; }
  .management-source-note{ margin: 9px 2px 0; color: var(--muted); font-size: 9px; }

  .nav-icon--finance,
.nav-icon--managers{ color: #7a8799; }
  .nav-item.active .nav-icon--finance,
.nav-item.active .nav-icon--managers{ color: var(--fmto-sidebar-accent); }

  @media (max-width: 860px) {
    .management-table-heading{
      align-items: flex-start;
      flex-direction: column;
      gap: 4px;
    }
    .data-table-scroll{ border-radius: 12px; }
    .management-table{ font-size: 12.5px; }
    .management-table th,
.management-table td{ padding: 8px 9px; }
  }

  .finance-wage-loading{ display:inline-block; min-width:18px; letter-spacing:2px; opacity:.65; }

  .club-overview-identity{
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 12px;
    margin: 0 0 12px;
    scroll-margin-top: 210px;
  }
  .club-overview-identity__col{ min-width: 0; }
  .club-overview-identity .club-manager-card,
.club-overview-identity .club-stadium-card{
    height: 100%;
    margin: 0;
  }

  .club-stadium-card{
    display: grid;
    grid-template-columns: minmax(180px, .9fr) minmax(0, 1.1fr);
    min-height: 112px;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: var(--surface);
    box-shadow: 0 8px 22px rgba(15, 23, 42, .035);
  }
  .club-stadium-card__media{
    position: relative;
    min-height: 112px;
    overflow: hidden;
    background: var(--surface-2);
  }
  .club-stadium-card__photo{
    width: 100%;
    height: 100%;
    min-height: 112px;
    display: block;
    object-fit: cover;
  }
  .club-stadium-card__placeholder{
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, var(--surface-2), color-mix(in srgb, var(--surface-2) 75%, var(--brand)));
    color: var(--muted);
    font-size: 11px;
    font-weight: 900;
    letter-spacing: .12em;
  }
  .club-stadium-card__content{
    min-width: 0;
    padding: 12px 14px;
    display: flex;
    flex-direction: column;
    justify-content: center;
  }
  .club-stadium-card__heading{
    display: grid;
    gap: 2px;
    margin-bottom: 8px;
  }
  .club-stadium-card__heading span,
.club-stadium-card__meta dt{
    color: var(--muted);
    font-family: var(--font-condensed);
    font-size: 9px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: .07em;
  }
  .club-stadium-card__heading strong{
    color: var(--text);
    font-size: 15px;
    line-height: 1.1;
  }
  .club-stadium-card__meta{
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 7px;
    margin: 0;
  }
  .club-stadium-card__meta > div{
    min-width: 0;
    padding-left: 8px;
    border-left: 1px solid var(--line);
  }
  .club-stadium-card__meta > div:first-child{ padding-left: 0; border-left: 0; }
  .club-stadium-card__meta dt,
.club-stadium-card__meta dd{ margin: 0; }
  .club-stadium-card__meta dd{
    margin-top: 3px;
    color: var(--text);
    font-size: 11px;
    font-weight: 800;
  }

  .club-roster-kpis{
    display: grid;
    grid-template-columns: repeat(8, minmax(0, 1fr));
    gap: 8px;
    overflow: visible;
    padding: 0;
    margin: 0 0 14px;
  }
  .club-roster-kpi{
    min-width: 0;
    min-height: 96px;
    padding: 12px 11px;
    font-family: var(--font-condensed);
  }
  .club-roster-kpi > span{
    min-height: 0;
    font-size: 10px;
    line-height: 1.08;
    font-weight: 900;
    letter-spacing: .055em;
  }
  .club-roster-kpi > strong{
    margin-top: 7px;
    font-size: 20px;
    line-height: 1;
    font-weight: 900;
    letter-spacing: -.02em;
  }
  .club-roster-kpi > small{
    margin-top: 6px;
    font-size: 9px;
    line-height: 1.1;
    font-weight: 700;
  }

  #clubRosterOverviewAnchor{ scroll-margin-top: 210px; }

  @media (max-width: 1450px) {
    .club-roster-kpis{ grid-template-columns: repeat(4, minmax(0, 1fr)); }
  }

  @media (max-width: 1050px) {
    .club-overview-identity{ grid-template-columns: 1fr; }
    .club-stadium-card{ grid-template-columns: minmax(150px, .8fr) minmax(0, 1.2fr); }
  }

  @media (max-width: 620px) {
    .club-roster-kpis{ grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px; }
    .club-roster-kpi{ min-height: 88px; padding: 10px 9px; }
    .club-roster-kpi > strong{ font-size: 18px; }
    .club-stadium-card{ grid-template-columns: 1fr; }
    .club-stadium-card__media,
.club-stadium-card__photo{ min-height: 150px; height: 150px; }
    .club-stadium-card__meta{ grid-template-columns: repeat(3, minmax(0, 1fr)); }
  }

  .player-profile .profile-hero{
    grid-template-columns: 128px minmax(0, 1fr) 104px !important;
    gap: 20px !important;
    align-items: center !important;
  }
  .player-profile .profile-identity{ min-width: 0; }

  .player-profile .profile-membership{
    display: grid !important;
    grid-template-columns: minmax(190px, 1fr) minmax(180px, .9fr) minmax(220px, 1fr) !important;
    gap: 10px !important;
    max-width: none !important;
    margin-top: 12px !important;
    align-items: stretch !important;
  }
  .player-profile .profile-membership-item{
    min-height: 62px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 9px 12px !important;
    border-color: #d3dcea !important;
    background: #e7ecf5 !important;
  }
  .player-profile .profile-membership-item.nation{
    text-align: left !important;
  }
  .player-profile .profile-membership-item.nation > div{
    justify-content: flex-start !important;
  }
  .player-profile .profile-membership-side{
    display: grid;
    grid-template-rows: auto auto;
    gap: 7px;
    min-width: 0;
  }
  .player-profile .profile-quickfacts{
    display: grid;
    grid-template-columns: minmax(0, .82fr) minmax(0, 1.18fr);
    gap: 7px;
  }
  .player-profile .profile-membership-item.quickfact,
  .player-profile .profile-membership-item.market{
    min-height: 45px;
    padding: 6px 9px !important;
    align-items: center;
    text-align: center;
  }
  .player-profile .profile-membership-item.quickfact .profile-membership-label,
  .player-profile .profile-membership-item.market .profile-membership-label{
    margin-bottom: 3px !important;
  }
  .player-profile .profile-membership-item.quickfact strong{
    display: block;
    max-width: 100%;
    overflow: hidden;
    color: #0f1a2b !important;
    font-size: 12px !important;
    line-height: 1.15;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .player-profile .profile-membership-item.market > div{
    justify-content: center !important;
    flex-wrap: wrap;
    gap: 6px;
  }
  .player-profile .profile-membership-label{
    color: #5b6b85 !important;
    font-size: 8px !important;
    line-height: 1.1;
    letter-spacing: .075em !important;
  }

  .player-profile .profile-rating{
    min-width: 104px !important;
    width: 104px !important;
    min-height: 112px !important;
    padding: 11px 8px !important;
    align-self: center !important;
    display: flex !important;
    flex-direction: column;
    justify-content: center;
    border-radius: 12px !important;
  }
  .player-profile .profile-rating span{
    font-size: 8px !important;
    line-height: 1.3;
    letter-spacing: .085em !important;
  }
  .player-profile .profile-rating strong{
    margin-top: 5px !important;
    color: #0f1a2b !important;
    font-size: 31px !important;
    line-height: 1;
  }

  .player-profile .role-panel-heading{
    margin-bottom: 2px !important;
  }
  .player-profile .role-panel-heading span{
    color: #0f1a2b !important;
    font-size: 13px !important;
    line-height: 1.2;
  }
  .player-profile .role-position-summary{
    min-height: 22px;
    margin: 0 0 7px;
    color: #5b6b85;
    font-size: 10px;
    font-weight: 800;
    line-height: 1.35;
    letter-spacing: .035em;
  }

  .player-profile .attribute-row strong.skill-colored,
  .compare-table td.skill-colored,
  .compare-mobile-value.skill-colored{
    color: var(--skill-color, #0f1a2b) !important;
  }
  .player-profile .attribute-row{
    min-height: 31px;
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) 38px;
    align-items: center !important;
    gap: 8px;
    padding: 6px 10px !important;
    border-bottom: 1px solid #d3dcea !important;
    border-radius: 0 !important;
    background: #e9edf5 !important;
  }
  .player-profile .attribute-row span{
    min-width: 0;
    
    color: #3f4f68 !important;
    font-size: 12px !important;
    line-height: 1.25;
    text-align: left !important;
  }
  .player-profile .attribute-row strong{
    min-width: 38px !important;
    
    font-size: 13px !important;
    font-weight: 800 !important;
    line-height: 1.2;
    text-align: right !important;
    font-variant-numeric: tabular-nums;
  }
  .player-profile .attribute-group{ overflow: hidden; }
  .player-profile .attribute-group h3{
    min-height: 29px;
    margin: 0 !important;
    padding: 7px 10px !important;
    border-bottom: 1px solid #d3dcea !important;
    color: #0f1a2b !important;
    font-size: 12px !important;
    line-height: 1.2;
    letter-spacing: .02em;
  }
  .player-profile .attribute-subsection-title{
    min-height: 28px;
    margin: 0 !important;
    padding: 8px 10px 6px !important;
    border-top: 1px solid #d3dcea !important;
    border-bottom: 1px solid #243953 !important;
    color: #5b6b85 !important;
    font-size: 10px !important;
    font-weight: 850;
    line-height: 1.2;
    text-transform: uppercase;
    letter-spacing: .035em;
  }
  .player-profile .profile-attributes,
  .player-profile.goalkeeper .profile-attributes{
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 12px !important;
  }

  @media (max-width: 1040px){
    .player-profile .profile-hero{
      grid-template-columns: 104px minmax(0, 1fr) 94px !important;
      gap: 14px !important;
    }
    .player-profile .player-portrait{
      width: 104px !important;
      height: 126px !important;
    }
    .player-profile .profile-membership{
      grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }
    .player-profile .profile-membership-side{
      grid-column: 1 / -1;
      grid-template-columns: 1fr 1fr;
      grid-template-rows: auto;
      gap: 8px;
    }
    .player-profile .profile-rating{
      width: 94px !important;
      min-width: 94px !important;
    }
  }

  @media (max-width: 760px){
    .player-profile .profile-hero{
      grid-template-columns: 82px minmax(0, 1fr) !important;
      align-items: start !important;
    }
    .player-profile .player-portrait{
      width: 82px !important;
      height: 106px !important;
    }
    .player-profile .profile-rating{
      grid-column: 1 / -1 !important;
      width: 100% !important;
      min-width: 0 !important;
      min-height: 58px !important;
      display: flex !important;
      flex-direction: row !important;
      align-items: center !important;
      justify-content: space-between !important;
      padding: 10px 14px !important;
    }
    .player-profile .profile-rating strong{
      margin-top: 0 !important;
      font-size: 26px !important;
    }
    .player-profile .profile-membership{
      grid-template-columns: 1fr !important;
    }
    .player-profile .profile-membership-side{
      grid-column: auto;
      grid-template-columns: 1fr;
    }
    .player-profile .profile-attributes,
    .player-profile.goalkeeper .profile-attributes{
      grid-template-columns: 1fr !important;
    }
  }

  .player-profile .profile-hero{
    grid-template-columns: 128px minmax(0, 1fr) 104px !important;
    gap: 20px !important;
    align-items: stretch !important;
    padding-top: 18px !important;
    padding-bottom: 18px !important;
  }

  .player-profile .profile-identity{
    display: flex !important;
    min-width: 0;
    flex-direction: column;
    justify-content: flex-start;
  }

  .player-profile .profile-membership{
    display: grid !important;
    grid-template-columns:
      minmax(220px, 1.08fr)
      minmax(205px, .98fr)
      minmax(275px, 1.12fr) !important;
    grid-template-rows: 45px 56px !important;
    column-gap: 10px !important;
    row-gap: 7px !important;
    width: 100% !important;
    max-width: none !important;
    margin-top: 8px !important;
    align-items: stretch !important;
  }

  .player-profile .profile-membership-item.team{
    grid-column: 1;
    grid-row: 2;
  }

  .player-profile .profile-membership-item.nation{
    grid-column: 2;
    grid-row: 2;
  }

  .player-profile .profile-membership-side{
    grid-column: 3;
    grid-row: 1 / span 2;
    display: grid !important;
    grid-template-rows: 45px 56px !important;
    gap: 7px !important;
    min-width: 0;
  }

  .player-profile .profile-quickfacts{
    display: grid !important;
    grid-template-columns: minmax(0, .70fr) minmax(0, 1fr) !important;
    gap: 7px !important;
    min-width: 0;
  }

  .player-profile .profile-membership-item.team,
  .player-profile .profile-membership-item.nation,
  .player-profile .profile-membership-item.market{
    min-height: 56px !important;
    height: 56px !important;
    padding: 7px 12px !important;
    box-sizing: border-box !important;
  }

  .player-profile .profile-membership-item.quickfact{
    min-height: 45px !important;
    height: 45px !important;
    padding: 5px 9px !important;
    box-sizing: border-box !important;
  }

  .player-profile .profile-membership-item.team,
  .player-profile .profile-membership-item.nation{
    align-self: end !important;
  }

  .player-profile .profile-membership-item.market{
    align-self: stretch !important;
  }

  .player-profile .profile-membership-item.team > div,
  .player-profile .profile-membership-item.nation > div{
    min-height: 25px !important;
    align-items: center !important;
  }

  .player-profile .profile-membership-item.team > div{
    justify-content: center !important;
  }

  .player-profile .profile-membership-item.nation > div{
    justify-content: flex-start !important;
  }

  .player-profile .profile-membership-item.market > div{
    min-height: 25px !important;
    align-items: center !important;
    justify-content: center !important;
  }

  .player-profile .profile-membership-item.quickfact{
    justify-content: center !important;
  }

  .player-profile .profile-membership-label{
    margin-bottom: 3px !important;
    font-size: 7.5px !important;
    line-height: 1.05 !important;
    letter-spacing: .075em !important;
  }

  .player-profile .profile-membership-item.team strong,
  .player-profile .profile-membership-item.nation strong{
    font-size: 11px !important;
    line-height: 1.15 !important;
  }

  .player-profile .profile-membership-item.quickfact strong{
    font-size: 12px !important;
    line-height: 1.05 !important;
  }

  .player-profile .profile-rating{
    width: 104px !important;
    min-width: 104px !important;
    min-height: 108px !important;
    height: 108px !important;
    align-self: end !important;
    margin-bottom: 0 !important;
    padding: 10px 7px !important;
    box-sizing: border-box !important;
  }

  .player-profile .profile-rating span{
    font-size: 7.5px !important;
    letter-spacing: .08em !important;
  }

  .player-profile .profile-rating strong{
    margin-top: 6px !important;
    font-size: 30px !important;
  }

  .player-profile .player-portrait{
    align-self: end !important;
  }

  @media (max-width: 1100px){
    .player-profile .profile-membership{
      grid-template-columns:
        minmax(180px, 1fr)
        minmax(165px, .94fr)
        minmax(240px, 1.08fr) !important;
    }
  }

  @media (max-width: 920px){
    .player-profile .profile-membership{
      grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
      grid-template-rows: auto !important;
    }

    .player-profile .profile-membership-item.team,
    .player-profile .profile-membership-item.nation{
      grid-row: auto;
      grid-column: auto;
      height: auto !important;
      min-height: 56px !important;
    }

    .player-profile .profile-membership-side{
      grid-column: 1 / -1;
      grid-row: auto;
      grid-template-rows: 45px 56px !important;
    }
  }

  @media (max-width: 760px){
    .player-profile .profile-membership{
      grid-template-columns: 1fr !important;
    }

    .player-profile .profile-membership-side{
      grid-column: auto;
      grid-template-rows: auto auto !important;
    }

    .player-profile .profile-quickfacts{
      grid-template-columns: 1fr 1fr !important;
    }

    .player-profile .profile-membership-item.team,
    .player-profile .profile-membership-item.nation,
    .player-profile .profile-membership-item.market{
      min-height: 54px !important;
      height: auto !important;
    }

    .player-profile .profile-rating{
      height: 58px !important;
      min-height: 58px !important;
    }
  }

  @media (min-width: 921px){
    .player-profile .profile-identity h2{
      transform: translateY(46px) !important;
      position: relative;
      z-index: 2;
      margin-top: 0 !important;
      margin-bottom: 8px !important;
    }
  }

  @media (min-width: 921px){
    .player-profile .profile-rating-stack{
      width: 104px;
      min-width: 104px;
      align-self: end;
      display: flex;
      flex-direction: column;
      align-items: stretch;
      gap: 6px;
    }

    .player-profile .profile-season-db{
      width: 100%;
      margin: 0 !important;
      color: #8fb1db !important;
      font-size: 7px !important;
      font-weight: 800 !important;
      line-height: 1.15 !important;
      letter-spacing: .07em !important;
      text-align: center !important;
      white-space: nowrap;
    }

    .player-profile .profile-rating-stack .profile-rating{
      width: 104px !important;
      min-width: 104px !important;
      align-self: stretch !important;
      margin: 0 !important;
    }
  }

  @media (max-width: 920px){
    .player-profile .profile-rating-stack{
      grid-column: 1 / -1;
      width: 100%;
      min-width: 0;
      display: flex;
      flex-direction: column;
      gap: 5px;
    }

    .player-profile .profile-season-db{
      margin: 0 !important;
      color: #8fb1db !important;
      font-size: 8px !important;
      font-weight: 800 !important;
      line-height: 1.2 !important;
      letter-spacing: .06em !important;
      text-align: left !important;
    }
  }

  @media (min-width: 921px){
    .player-profile .profile-hero{
      padding-top: 10px !important;
      padding-bottom: 10px !important;
    }

    .player-profile .profile-membership{
      grid-template-rows: 40px 50px !important;
      row-gap: 5px !important;
      margin-top: 5px !important;
    }

    .player-profile .profile-membership-side{
      grid-template-rows: 40px 50px !important;
      gap: 5px !important;
    }

    .player-profile .profile-membership-item.quickfact{
      min-height: 40px !important;
      height: 40px !important;
      padding-top: 4px !important;
      padding-bottom: 4px !important;
    }

    .player-profile .profile-membership-item.team,
    .player-profile .profile-membership-item.nation,
    .player-profile .profile-membership-item.market{
      min-height: 50px !important;
      height: 50px !important;
      padding-top: 5px !important;
      padding-bottom: 5px !important;
    }

    .player-profile .profile-rating{
      min-height: 95px !important;
      height: 95px !important;
      padding: 8px 7px !important;
    }

    .player-profile .profile-rating strong{
      font-size: 28px !important;
    }

    .player-profile .profile-identity h2{
      transform: translateY(38px) !important;
      margin-bottom: 5px !important;
    }
  }

  .player-profile .profile-membership-item.nation{
    text-align: center !important;
    align-items: center !important;
  }

  .player-profile .profile-membership-item.nation > div{
    width: 100%;
    justify-content: center !important;
    align-items: center !important;
    text-align: center !important;
  }

  .player-profile .profile-membership-item.nation .profile-membership-label{
    width: 100%;
    text-align: center !important;
  }

  .player-profile .profile-membership-item.market .roster-status-pill{
    min-height: 22px !important;
    padding: 4px 9px !important;
    border-width: 1px !important;
    font-size: 10px !important;
    font-weight: 900 !important;
    text-shadow: none !important;
  }

  .player-profile .profile-membership-item.market .roster-status-pill.status-owned{
    border-color: #7fb2e8 !important;
    background: #dcecff !important;
    color: #163b67 !important;
  }

  .player-profile .profile-membership-item.market .roster-status-pill.status-loan{
    border-color: #b89ce8 !important;
    background: #eadfff !important;
    color: #4b2b83 !important;
  }

  .player-profile .profile-membership-item.market .roster-status-pill.status-out{
    border-color: #e79a9a !important;
    background: #ffe1e1 !important;
    color: #7a1f1f !important;
  }

  .player-profile .profile-membership-item.market .market-badge{
    min-height: 22px !important;
    padding: 4px 8px !important;
    border-width: 1px !important;
    font-size: 10px !important;
    font-weight: 900 !important;
    text-shadow: none !important;
  }

  .player-profile .profile-membership-item.market .market-badge.transfer-1{
    border-color: #d8aa42 !important;
    background: #ffe8a3 !important;
    color: #5f4100 !important;
  }

  .player-profile .profile-membership-item.market .market-badge.transfer-2{
    border-color: #df8451 !important;
    background: #ffd4bd !important;
    color: #783009 !important;
  }

  .player-profile .profile-membership-item.market .market-badge.blocked{
    border-color: #dc7373 !important;
    background: #ffd1d1 !important;
    color: #711f1f !important;
  }

  .player-profile .profile-membership-item.market .market-badge.envelope{
    border-color: #6e9fdb !important;
    background: #d9eaff !important;
    color: #174b85 !important;
  }

  .player-profile .profile-rating-stack,
  .player-profile .profile-season-db{
    display: contents;
  }

  .player-profile .profile-membership-item.market > div{
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex-wrap: wrap;
    gap: 6px !important;
    line-height: 1 !important;
  }

  .player-profile .profile-membership-item.market .roster-status-pill,
  .player-profile .profile-membership-item.market .market-badge{
    box-sizing: border-box !important;
    height: 22px !important;
    min-height: 22px !important;
    margin: 0 !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    vertical-align: middle !important;
    line-height: 1 !important;
  }

  .player-profile .profile-membership-item.market .market-badges{
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 6px !important;
    margin: 0 !important;
    padding: 0 !important;
    line-height: 1 !important;
    vertical-align: middle !important;
  }

  @media (max-width: 760px){
    .player-profile .profile-hero{
      display: grid !important;
      grid-template-columns: 86px minmax(0, 1fr) !important;
      grid-template-areas:
        "portrait identity"
        "rating rating" !important;
      gap: 10px 12px !important;
      align-items: start !important;
      padding: 14px 12px 12px !important;
    }

    .player-profile .player-portrait{
      grid-area: portrait !important;
      width: 86px !important;
      height: 106px !important;
      margin: 0 !important;
      align-self: start !important;
      border-radius: 11px !important;
    }

    .player-profile .profile-identity{
      grid-area: identity !important;
      display: block !important;
      min-width: 0 !important;
    }

    .player-profile .profile-identity h2{
      transform: none !important;
      position: static !important;
      margin: 2px 0 10px !important;
      padding: 0 !important;
      display: flex !important;
      align-items: baseline !important;
      flex-wrap: wrap !important;
      gap: 4px 6px !important;
      font-size: 22px !important;
      line-height: 1.02 !important;
      text-align: left !important;
    }

    .player-profile .profile-id-inline{
      font-size: 8px !important;
      line-height: 1.1 !important;
      white-space: nowrap !important;
    }

    .player-profile .profile-membership{
      display: grid !important;
      grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
      grid-template-rows: auto !important;
      gap: 7px !important;
      width: 100% !important;
      margin: 0 !important;
    }

    .player-profile .profile-membership-item.team,
    .player-profile .profile-membership-item.nation{
      grid-column: auto !important;
      grid-row: auto !important;
      min-width: 0 !important;
      min-height: 54px !important;
      height: 54px !important;
      padding: 6px 7px !important;
      align-self: stretch !important;
    }

    .player-profile .profile-membership-side{
      grid-column: 1 / -1 !important;
      grid-row: auto !important;
      display: grid !important;
      grid-template-columns: 1fr !important;
      grid-template-rows: auto auto !important;
      gap: 7px !important;
      min-width: 0 !important;
    }

    .player-profile .profile-quickfacts{
      display: grid !important;
      grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
      gap: 7px !important;
      min-width: 0 !important;
    }

    .player-profile .profile-membership-item.quickfact{
      min-width: 0 !important;
      min-height: 48px !important;
      height: 48px !important;
      padding: 5px 6px !important;
    }

    .player-profile .profile-membership-item.market{
      min-height: 50px !important;
      height: 50px !important;
      padding: 5px 7px !important;
      width: 100% !important;
    }

    .player-profile .profile-membership-label{
      margin-bottom: 4px !important;
      font-size: 7px !important;
      line-height: 1.05 !important;
      letter-spacing: .055em !important;
      text-align: center !important;
    }

    .player-profile .profile-membership-item.team,
    .player-profile .profile-membership-item.nation,
    .player-profile .profile-membership-item.quickfact,
    .player-profile .profile-membership-item.market{
      align-items: center !important;
      text-align: center !important;
      justify-content: center !important;
    }

    .player-profile .profile-membership-item.team > div,
    .player-profile .profile-membership-item.nation > div{
      width: 100% !important;
      justify-content: center !important;
      align-items: center !important;
      gap: 5px !important;
      min-width: 0 !important;
    }

    .player-profile .profile-membership-item.team strong,
    .player-profile .profile-membership-item.nation strong{
      min-width: 0 !important;
      max-width: 100% !important;
      overflow: hidden !important;
      text-overflow: ellipsis !important;
      white-space: nowrap !important;
      font-size: 10px !important;
    }

    .player-profile .profile-team-logo,
    .player-profile .flag{
      flex: 0 0 auto !important;
    }

    .player-profile .profile-rating{
      grid-area: rating !important;
      width: 100% !important;
      min-width: 0 !important;
      min-height: 52px !important;
      height: 52px !important;
      margin: 0 !important;
      padding: 7px 12px !important;
      display: flex !important;
      flex-direction: row !important;
      align-items: center !important;
      justify-content: space-between !important;
      align-self: stretch !important;
      border-radius: 10px !important;
    }

    .player-profile .profile-rating span{
      margin: 0 !important;
      font-size: 8px !important;
      line-height: 1.1 !important;
      text-align: left !important;
    }

    .player-profile .profile-rating strong{
      margin: 0 !important;
      font-size: 27px !important;
      line-height: 1 !important;
    }

    .player-profile .profile-tabs{
      min-height: 48px !important;
      padding: 0 10px !important;
    }

    .player-profile .profile-tabs button{
      min-height: 48px !important;
      padding: 0 12px !important;
      font-size: 10px !important;
    }
  }

  @media (max-width: 430px){
    .player-profile .profile-hero{
      grid-template-columns: 78px minmax(0, 1fr) !important;
      gap: 9px 10px !important;
      padding-left: 10px !important;
      padding-right: 10px !important;
    }

    .player-profile .player-portrait{
      width: 78px !important;
      height: 98px !important;
    }

    .player-profile .profile-identity h2{
      font-size: 20px !important;
    }

    .player-profile .profile-membership{
      gap: 6px !important;
    }

    .player-profile .profile-membership-side,
    .player-profile .profile-quickfacts{
      gap: 6px !important;
    }
  }

  @media (max-width: 760px){
    
    .player-profile .profile-membership{
      grid-column: 1 / -1 !important;
      display: grid !important;
      grid-template-columns: 86px minmax(0, 1fr) !important;
      gap: 7px 12px !important;
      width: calc(100% + 98px) !important;
      margin-left: -98px !important;
      margin-top: 0 !important;
    }

    .player-profile .profile-membership-item.team{
      grid-column: 1 / -1 !important;
      grid-row: 2 !important;
      width: 100% !important;
      min-width: 0 !important;
      height: 52px !important;
      min-height: 52px !important;
      padding: 5px 9px !important;
    }

    .player-profile .profile-membership-item.nation{
      grid-column: 2 !important;
      grid-row: 1 !important;
      width: 100% !important;
      min-width: 0 !important;
      height: 48px !important;
      min-height: 48px !important;
      padding: 5px 7px !important;
    }

    .player-profile .profile-membership-side{
      display: contents !important;
    }

    .player-profile .profile-quickfacts{
      display: contents !important;
    }

    .player-profile .profile-membership-item.quickfact.birth{
      grid-column: 1 !important;
      grid-row: 1 !important;
      width: 86px !important;
      min-width: 86px !important;
      height: 48px !important;
      min-height: 48px !important;
      padding: 5px 5px !important;
    }

    .player-profile .profile-membership-item.quickfact.wage{
      grid-column: 2 !important;
      grid-row: 3 !important;
      width: 100% !important;
      min-width: 0 !important;
      height: 48px !important;
      min-height: 48px !important;
      padding: 5px 7px !important;
    }

    .player-profile .profile-membership-item.market{
      grid-column: 1 / -1 !important;
      grid-row: 4 !important;
      width: 100% !important;
      min-width: 0 !important;
      height: 50px !important;
      min-height: 50px !important;
      padding: 5px 8px !important;
    }

    .player-profile .profile-membership-item.team > div,
    .player-profile .profile-membership-item.market > div{
      justify-content: center !important;
    }
  }

  @media (max-width: 430px){
    .player-profile .profile-membership{
      grid-template-columns: 78px minmax(0, 1fr) !important;
      gap: 6px 10px !important;
      width: calc(100% + 88px) !important;
      margin-left: -88px !important;
    }

    .player-profile .profile-membership-item.quickfact.birth{
      width: 78px !important;
      min-width: 78px !important;
    }
  }

  @media (max-width: 760px){

    .player-profile .profile-hero{
      display: grid !important;
      grid-template-columns: 78px minmax(0, 1fr) !important;
      grid-template-areas:
        "portrait identity"
        "rating rating" !important;
      gap: 8px 10px !important;
      padding: 12px 10px 11px !important;
      align-items: start !important;
    }

    .player-profile .player-portrait{
      grid-area: portrait !important;
      width: 78px !important;
      height: 98px !important;
      margin: 0 !important;
      align-self: start !important;
      border-radius: 10px !important;
    }

    .player-profile .profile-identity{
      grid-area: identity !important;
      display: block !important;
      min-width: 0 !important;
      overflow: visible !important;
    }

    .player-profile .profile-identity h2{
      transform: none !important;
      position: static !important;
      margin: 1px 0 5px !important;
      padding: 0 !important;
      display: flex !important;
      align-items: baseline !important;
      flex-wrap: wrap !important;
      gap: 2px 5px !important;
      font-size: 20px !important;
      line-height: 1.02 !important;
      text-align: left !important;
    }

    .player-profile .profile-id-inline{
      margin-left: 0 !important;
      font-size: 7px !important;
      line-height: 1 !important;
      white-space: nowrap !important;
      opacity: .9;
    }

    .player-profile .profile-membership{
      display: grid !important;
      grid-template-columns: 78px minmax(0, 1fr) minmax(0, 1fr) !important;
      grid-template-rows: 48px 52px 50px !important;
      gap: 6px !important;
      width: calc(100% + 88px) !important;
      margin: 0 0 0 -88px !important;
      align-items: stretch !important;
    }

    .player-profile .profile-membership-item.quickfact.birth{
      grid-column: 2 !important;
      grid-row: 1 !important;
      width: auto !important;
      min-width: 0 !important;
      height: 48px !important;
      min-height: 48px !important;
      padding: 5px 6px !important;
    }

    .player-profile .profile-membership-item.nation{
      grid-column: 3 !important;
      grid-row: 1 !important;
      width: auto !important;
      min-width: 0 !important;
      height: 48px !important;
      min-height: 48px !important;
      padding: 5px 6px !important;
    }

    .player-profile .profile-membership-item.team{
      grid-column: 1 / 3 !important;
      grid-row: 2 !important;
      width: auto !important;
      min-width: 0 !important;
      height: 52px !important;
      min-height: 52px !important;
      padding: 5px 8px !important;
    }

    .player-profile .profile-membership-item.quickfact.wage{
      grid-column: 3 !important;
      grid-row: 2 !important;
      width: auto !important;
      min-width: 0 !important;
      height: 52px !important;
      min-height: 52px !important;
      padding: 5px 6px !important;
    }

    .player-profile .profile-membership-item.market{
      grid-column: 1 / -1 !important;
      grid-row: 3 !important;
      width: auto !important;
      min-width: 0 !important;
      height: 50px !important;
      min-height: 50px !important;
      padding: 5px 8px !important;
    }

    .player-profile .profile-membership-side,
    .player-profile .profile-quickfacts{
      display: contents !important;
    }

    .player-profile .profile-membership-item.team,
    .player-profile .profile-membership-item.nation,
    .player-profile .profile-membership-item.quickfact,
    .player-profile .profile-membership-item.market{
      align-items: center !important;
      justify-content: center !important;
      text-align: center !important;
      box-sizing: border-box !important;
    }

    .player-profile .profile-membership-label{
      margin-bottom: 3px !important;
      font-size: 6.8px !important;
      line-height: 1.05 !important;
      letter-spacing: .05em !important;
      text-align: center !important;
    }

    .player-profile .profile-membership-item.team > div,
    .player-profile .profile-membership-item.nation > div,
    .player-profile .profile-membership-item.market > div{
      width: 100% !important;
      justify-content: center !important;
      align-items: center !important;
    }

    .player-profile .profile-membership-item.team strong,
    .player-profile .profile-membership-item.nation strong{
      max-width: 100% !important;
      overflow: hidden !important;
      text-overflow: ellipsis !important;
      white-space: nowrap !important;
      font-size: 9.5px !important;
    }

    .player-profile .profile-membership-item.quickfact strong{
      font-size: 11px !important;
      line-height: 1 !important;
    }

    .player-profile .profile-rating{
      grid-area: rating !important;
      width: 100% !important;
      min-width: 0 !important;
      min-height: 50px !important;
      height: 50px !important;
      margin: 0 !important;
      padding: 7px 11px !important;
      display: flex !important;
      flex-direction: row !important;
      align-items: center !important;
      justify-content: space-between !important;
      border-radius: 10px !important;
    }

    .player-profile .profile-rating strong{
      margin: 0 !important;
      font-size: 26px !important;
      line-height: 1 !important;
    }
  }

  @media (max-width: 430px){
    .player-profile .profile-hero{
      grid-template-columns: 72px minmax(0, 1fr) !important;
      gap: 7px 9px !important;
      padding-left: 9px !important;
      padding-right: 9px !important;
    }

    .player-profile .player-portrait{
      width: 72px !important;
      height: 92px !important;
    }

    .player-profile .profile-identity h2{
      font-size: 18px !important;
      gap: 1px 4px !important;
      margin-bottom: 4px !important;
    }

    .player-profile .profile-id-inline{
      font-size: 6.5px !important;
    }

    .player-profile .profile-membership{
      grid-template-columns: 72px minmax(0, 1fr) minmax(0, 1fr) !important;
      width: calc(100% + 81px) !important;
      margin-left: -81px !important;
      gap: 5px !important;
    }
  }

  .transfer-desk{ display:grid; gap:18px; }
  .transfer-desk-heading{ display:flex; justify-content:space-between; align-items:flex-end; gap:20px; padding:22px 24px; border:1px solid var(--line); border-radius:22px; background:linear-gradient(135deg, rgba(15,23,42,.98), rgba(30,41,59,.96)); color:#fff; box-shadow:var(--shadow); }
  .transfer-desk-heading h2{ margin:4px 0 6px; font-size:clamp(26px,3vw,38px); }
  .transfer-desk-heading .eyebrow{ color:#93c5fd; }
  .transfer-desk-intro{ margin:0; color:#cbd5e1; max-width:760px; }
  .transfer-live-pill{ display:inline-flex; align-items:center; gap:8px; padding:9px 12px; border:1px solid rgba(255,255,255,.16); border-radius:999px; background:rgba(255,255,255,.08); color:#e2e8f0; font-size:12px; font-weight:800; white-space:nowrap; }
  .transfer-live-pill span{ width:8px; height:8px; border-radius:50%; background:#22c55e; box-shadow:0 0 0 5px rgba(34,197,94,.12); }
  .transfer-metrics{ display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:12px; }
  .transfer-metrics > div{ padding:16px 18px; border:1px solid var(--line); border-radius:18px; background:var(--panel); }
  .transfer-metrics span{ display:block; font-size:11px; text-transform:uppercase; letter-spacing:.08em; color:var(--muted); font-weight:800; }
  .transfer-metrics strong{ display:block; margin-top:5px; font-size:24px; }
  .transfer-toolbar{ display:grid; grid-template-columns:minmax(240px,1.5fr) minmax(170px,.8fr) minmax(190px,.9fr) auto; gap:10px; align-items:center; }
  .transfer-filter{ min-height:44px; border:1px solid var(--line); border-radius:12px; padding:0 12px; background:var(--panel); color:var(--text); }
  .transfer-operations{ display:grid; gap:14px; }
  .transfer-operation{ border:1px solid var(--line); background:var(--panel); border-radius:20px; overflow:hidden; box-shadow:0 8px 24px rgba(15,23,42,.04); }
  .transfer-operation > header{ display:flex; justify-content:space-between; align-items:center; gap:16px; padding:14px 18px; background:color-mix(in srgb, var(--panel) 90%, #2563eb 10%); border-bottom:1px solid var(--line); }
  .transfer-operation h3{ margin:2px 0 0; font-size:16px; }
  .transfer-operation-kicker{ font-size:10px; text-transform:uppercase; letter-spacing:.1em; color:var(--muted); font-weight:800; }
  .transfer-operation-count{ font-size:12px; font-weight:800; color:var(--muted); }
  .transfer-operation-body{ display:grid; }
  .transfer-movement{ display:grid; grid-template-columns:minmax(150px,1fr) 42px minmax(220px,1.3fr) 42px minmax(150px,1fr) minmax(110px,.65fr); align-items:center; gap:10px; padding:15px 18px; }
  .transfer-movement + .transfer-movement{ border-top:1px solid var(--line); }
  .transfer-team{ display:flex; align-items:center; gap:10px; min-width:0; }
  .transfer-team > div{ min-width:0; }
  .transfer-team strong{ display:block; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; font-size:13px; }
  .transfer-team-label{ display:block; font-size:9px; text-transform:uppercase; letter-spacing:.08em; color:var(--muted); font-weight:800; margin-bottom:2px; }
  .transfer-team-logo,
.transfer-team-fallback{ width:36px; height:36px; flex:0 0 36px; border-radius:10px; object-fit:contain; display:grid; place-items:center; font-weight:900; font-size:10px; background:var(--surface); }
  .transfer-route{ display:flex; align-items:center; gap:3px; color:#2563eb; }
  .transfer-route span{ height:1px; background:var(--line); flex:1; }
  .transfer-route b{ font-size:15px; }
  .transfer-player{ width:100%; border:0; background:transparent; color:inherit; padding:7px; border-radius:13px; display:flex; align-items:center; gap:10px; text-align:left; cursor:pointer; min-width:0; }
  .transfer-player:hover{ background:var(--surface); }
  .transfer-player-face{ width:42px; height:42px; flex:0 0 42px; border-radius:12px; object-fit:cover; }
  .transfer-player-face-fallback{ display:grid; place-items:center; background:var(--surface); border:1px solid var(--line); color:var(--muted); }
  .transfer-player-copy{ min-width:0; flex:1; }
  .transfer-player-copy strong{ display:block; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; font-size:14px; }
  .transfer-player-copy small{ display:block; color:var(--muted); margin-top:2px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
  .transfer-source-badge{ font-size:9px; font-weight:900; color:#6d28d9; background:#f3e8ff; border:1px solid #ddd6fe; padding:4px 6px; border-radius:999px; white-space:nowrap; }
  .transfer-value{ text-align:right; }
  .transfer-value strong{ display:block; font-size:14px; }
  .transfer-value small{ display:block; color:var(--muted); font-size:10px; margin-top:2px; }
  .transfer-clause-row{ grid-column:3 / -1; display:flex; flex-wrap:wrap; gap:6px; margin-top:2px; }
  .transfer-clause-row span{ padding:5px 8px; border-radius:999px; background:var(--surface); border:1px solid var(--line); font-size:10px; color:var(--muted); font-weight:700; }

  @media (max-width: 1000px) {
    .transfer-metrics{ grid-template-columns:repeat(2,minmax(0,1fr)); }
    .transfer-toolbar{ grid-template-columns:1fr 1fr; }
    .transfer-search{ grid-column:1 / -1; }
    .transfer-movement{ grid-template-columns:minmax(120px,1fr) 28px minmax(190px,1.4fr) 28px minmax(120px,1fr); }
    .transfer-value{ grid-column:1 / -1; display:flex; justify-content:flex-end; gap:8px; align-items:baseline; }
    .transfer-clause-row{ grid-column:1 / -1; }
  }
  @media (max-width: 700px) {
    .transfer-desk-heading{ align-items:flex-start; flex-direction:column; padding:18px; }
    .transfer-metrics{ grid-template-columns:1fr 1fr; }
    .transfer-toolbar{ grid-template-columns:1fr; }
    .transfer-search{ grid-column:auto; }
    .transfer-movement{ grid-template-columns:1fr 24px 1.3fr; gap:8px; padding:14px; }
    .transfer-team-to{ grid-column:1; grid-row:2; }
    .transfer-route:nth-of-type(2){ display:none; }
    .transfer-player{ grid-column:3; grid-row:1 / span 2; align-self:stretch; }
    .transfer-value{ grid-column:1 / -1; justify-content:flex-start; text-align:left; border-top:1px dashed var(--line); padding-top:9px; }
    .transfer-clause-row{ grid-column:1 / -1; }
  }

  @media (max-width: 700px){
    .transfer-operation {
      border-radius: 16px;
    }

    .transfer-operation > header {
      align-items: flex-start;
      padding: 12px 14px;
    }

    .transfer-operation-count {
      white-space: nowrap;
      padding-top: 2px;
    }

    .transfer-movement {
      grid-template-columns: minmax(0, 1fr) auto;
      grid-template-areas:
        "player value"
        "from from"
        "to to"
        "clauses clauses";
      gap: 10px 12px;
      padding: 14px;
      align-items: start;
      min-width: 0;
    }

    .transfer-player {
      grid-area: player;
      display: grid;
      grid-template-columns: 42px minmax(0, 1fr) auto;
      gap: 10px;
      align-items: center;
      align-self: stretch;
      min-height: 62px;
      padding: 0;
    }

    .transfer-player:hover {
      background: transparent;
    }

    .transfer-player-copy {
      min-width: 0;
    }

    .transfer-player-copy strong {
      white-space: normal;
      overflow: visible;
      text-overflow: clip;
      overflow-wrap: anywhere;
      line-height: 1.2;
      min-height: 34px;
      display: flex;
      align-items: center;
    }

    .transfer-player-copy small {
      white-space: normal;
      overflow: visible;
      text-overflow: clip;
      overflow-wrap: anywhere;
      line-height: 1.25;
      min-height: 28px;
      margin-top: 3px;
    }

    .transfer-source-badge {
      align-self: start;
      margin-top: 2px;
    }

    .transfer-value {
      grid-area: value;
      display: block;
      min-width: 64px;
      border-top: 0;
      padding-top: 2px;
      text-align: right;
      justify-content: initial;
    }

    .transfer-value strong {
      font-size: 15px;
      white-space: nowrap;
    }

    .transfer-value small {
      display: none;
    }

    .transfer-team {
      position: relative;
      width: 100%;
      min-height: 54px;
      padding: 7px 9px;
      border: 1px solid var(--line);
      border-radius: 12px;
      background: color-mix(in srgb, var(--surface) 74%, transparent);
      box-sizing: border-box;
    }

    .transfer-team-from {
      grid-area: from;
    }

    .transfer-team-to {
      grid-area: to;
      grid-column: auto;
      grid-row: auto;
    }

    .transfer-team strong {
      white-space: normal;
      overflow: visible;
      text-overflow: clip;
      overflow-wrap: anywhere;
      line-height: 1.2;
      min-height: 31px;
      display: flex;
      align-items: center;
      font-size: 13px;
    }

    .transfer-team-logo,
    .transfer-team-fallback {
      width: 34px;
      height: 34px;
      flex-basis: 34px;
    }

    .transfer-team-from::after {
      content: "↓";
      position: absolute;
      left: 50%;
      bottom: -15px;
      z-index: 2;
      width: 22px;
      height: 22px;
      transform: translateX(-50%);
      display: grid;
      place-items: center;
      border: 1px solid var(--line);
      border-radius: 50%;
      background: var(--panel);
      color: #2563eb;
      font-size: 13px;
      font-weight: 900;
    }

    .transfer-route {
      display: none !important;
    }

    .transfer-clause-row {
      grid-area: clauses;
      grid-column: auto;
      margin-top: 0;
      padding-top: 2px;
    }

    .transfer-clause-row span {
      white-space: normal;
      line-height: 1.2;
    }
  }

  .club-market-panel{
    min-width: 0;
  }
  .club-market-heading{
    align-items: center;
  }
  .club-market-all{
    border: 1px solid var(--line);
    background: var(--surface);
    color: var(--text);
    border-radius: 10px;
    padding: 8px 11px;
    font: inherit;
    font-size: 12px;
    font-weight: 800;
    cursor: pointer;
  }
  .club-market-all:hover{
    border-color: #93c5fd;
    background: #eff6ff;
  }
  .club-market-loading,
.club-market-empty{
    min-height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    flex-direction: column;
    text-align: center;
    color: var(--muted);
  }
  .club-market-empty strong{
    color: var(--text);
  }
  .club-market-metrics{
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    margin-bottom: 14px;
  }
  .club-market-metric{
    min-height: 88px;
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 12px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: color-mix(in srgb, var(--surface) 88%, transparent);
  }
  .club-market-metric span{
    color: var(--muted);
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .05em;
  }
  .club-market-metric strong{
    margin-top: 3px;
    font-size: 20px;
    line-height: 1.1;
  }
  .club-market-metric small{
    margin-top: 5px;
    color: var(--muted);
    line-height: 1.25;
  }
  .club-market-metric.in strong{ color: #15803d; }
  .club-market-metric.out strong{ color: #b91c1c; }

  .club-market-list{
    display: grid;
    gap: 7px;
  }
  .club-market-row{
    width: 100%;
    min-height: 66px;
    display: grid;
    grid-template-columns: 28px 42px minmax(0, 1fr) auto;
    align-items: center;
    gap: 10px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: var(--surface);
    color: var(--text);
    padding: 8px 10px;
    text-align: left;
    font: inherit;
    cursor: pointer;
  }
  .club-market-row:hover{
    border-color: #93c5fd;
    background: #f8fbff;
  }
  .club-market-direction{
    width: 26px;
    height: 26px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    font-size: 13px;
    font-weight: 900;
  }
  .club-market-row.is-in .club-market-direction{
    color: #15803d;
    background: #dcfce7;
  }
  .club-market-row.is-out .club-market-direction{
    color: #b91c1c;
    background: #fee2e2;
  }
  .club-market-copy{
    min-width: 0;
    display: flex;
    flex-direction: column;
  }
  .club-market-copy strong{
    font-size: 13px;
    line-height: 1.2;
    white-space: normal;
    overflow-wrap: anywhere;
  }
  .club-market-copy small{
    margin-top: 2px;
    color: var(--muted);
    line-height: 1.2;
    white-space: normal;
    overflow-wrap: anywhere;
  }
  .club-market-copy small b{
    color: var(--text);
  }
  .club-market-type{
    font-size: 10px;
  }
  .club-market-cr{
    font-size: 13px;
    font-weight: 900;
    white-space: nowrap;
    text-align: right;
  }
  .club-market-more{
    margin: 10px 0 0;
    color: var(--muted);
    font-size: 11px;
    text-align: center;
  }

  @media (max-width: 700px) {
    .club-market-heading{
      gap: 10px;
    }
    .club-market-all{
      padding: 7px 9px;
      white-space: nowrap;
    }
    .club-market-metrics{
      grid-template-columns: repeat(3, minmax(0, 1fr));
      gap: 6px;
    }
    .club-market-metric{
      min-height: 78px;
      padding: 9px 8px;
    }
    .club-market-metric strong{
      font-size: 16px;
    }
    .club-market-metric small{
      font-size: 9px;
    }
    .club-market-row{
      grid-template-columns: 26px 38px minmax(0, 1fr) auto;
      min-height: 68px;
      gap: 8px;
      padding: 8px;
    }
    .club-market-row .transfer-player-face{
      width: 38px;
      height: 38px;
    }
    .club-market-copy strong,
.club-market-copy small{
      white-space: normal;
      text-overflow: clip;
      overflow: visible;
      overflow-wrap: anywhere;
    }
    .club-market-cr{
      font-size: 12px;
    }
  }

  .profile-career-shell{
    margin: 0 24px 24px;
    padding: 20px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: var(--surface);
  }

  .profile-career-heading{
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 14px;
  }

  .profile-career-heading h3{
    margin: 2px 0 0;
    font-size: 20px;
  }

  .career-summary{
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: flex-end;
  }

  .career-summary span{
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 6px 9px;
    color: var(--muted);
    font-size: 11px;
    background: color-mix(in srgb, var(--surface) 82%, var(--background));
  }

  .career-summary strong{
    color: var(--text);
  }

  .career-loading,
.career-empty{
    min-height: 100px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 7px;
    color: var(--muted);
    text-align: center;
  }

  .career-empty strong{
    color: var(--text);
  }

  .career-timeline{
    position: relative;
    display: grid;
    gap: 10px;
  }

  .stats-table-wrap{
    overflow-x: auto;
    border: 1px solid var(--line);
    border-radius: 14px;
  }

  .stats-table{
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
  }

  .stats-table th,
  .stats-table td{
    padding: 10px 14px;
    text-align: left;
    border-bottom: 1px solid var(--line);
    white-space: nowrap;
  }

  .stats-table thead th{
    background: color-mix(in srgb, var(--surface) 94%, var(--background));
    font-weight: 600;
  }

  .stats-table tbody tr:last-child td{
    border-bottom: none;
  }

  .stats-table td.stats-num,
  .stats-table th.stats-num{
    text-align: right;
  }

  .stats-table thead th:nth-child(n+4){
    text-align: right;
  }

  .stats-season-cell{
    font-weight: 700;
    white-space: nowrap;
  }

  .stats-movement-cell{
    white-space: normal;
    min-width: 200px;
  }

  .stats-movement-empty{
    color: var(--muted);
  }

  .stats-team-cell{
    display: inline-flex;
    align-items: center;
    gap: 7px;
  }

  .stats-team-cell .transfer-team-fallback,
  .stats-team-cell img{
    width: 20px;
    height: 20px;
    object-fit: contain;
    border-radius: 5px;
  }

  .stats-movement-line{
    display: flex;
    flex-direction: column;
    gap: 3px;
    margin-bottom: 6px;
    width: 100%;
    border: 0;
    background: transparent;
    color: inherit;
    font: inherit;
    text-align: left;
    padding: 4px 6px;
    border-radius: 8px;
    cursor: pointer;
  }

  .stats-movement-line:hover,
  .stats-movement-line:focus-visible{
    background: color-mix(in srgb, var(--surface) 88%, var(--background));
    outline: none;
  }

  .stats-movement-line:last-child{
    margin-bottom: 0;
  }

  .stats-movement-route{
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 600;
  }

  .stats-movement-route .transfer-team-fallback,
  .stats-movement-route img{
    width: 18px;
    height: 18px;
    object-fit: contain;
    border-radius: 5px;
    flex-shrink: 0;
  }

  .stats-movement-route-copy{
    min-width: 0;
  }

  .stats-movement-arrow{
    color: #2563eb;
  }

  .stats-movement-meta{
    color: var(--muted);
    font-size: 10px;
  }

  .stats-movement-fm-group{
    margin-top: 6px;
    padding-top: 6px;
    border-top: 1px dashed var(--line);
  }

  .stats-movement-line--fm{
    cursor: default;
  }

  .stats-movement-line--fm:hover{
    background: transparent;
  }

  .stats-season-short{
    display: none;
  }

  .fmto-modal-backdrop{
    position: fixed;
    inset: 0;
    background: rgba(6, 12, 22, 0.66);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    z-index: 9999;
  }

  .fmto-modal{
    width: 100%;
    max-width: 480px;
    max-height: 86vh;
    overflow-y: auto;
    background: #0a1526;
    border: 1px solid #22344f;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.45);
  }

  .fmto-modal-head{
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    padding: 18px 18px 12px;
    border-bottom: 1px solid #22344f;
  }

  .fmto-modal-head h3{
    margin: 2px 0 0;
    color: #f8fbff;
    font-size: 17px;
  }

  .fmto-modal-head .eyebrow{
    color: #91a6c1;
  }

  .fmto-modal-close{
    border: 1px solid #2a3f5e;
    background: #101f33;
    color: #dce8f7;
    border-radius: 999px;
    width: 30px;
    height: 30px;
    font-size: 14px;
    cursor: pointer;
    flex-shrink: 0;
  }

  .fmto-modal-close:hover{
    background: #172841;
  }

  .fmto-modal-body{
    padding: 16px 18px 20px;
    color: #dce8f7;
  }

  .fmto-modal-body .transfer-col__copy strong,
  .fmto-modal-body .transfer-player-copy strong,
  .fmto-modal-body .transfer-value strong{
    color: #f8fbff;
  }

  .fmto-modal-body .transfer-col__copy small,
  .fmto-modal-body .transfer-player-copy small{
    color: #91a6c1;
  }

  .fmto-modal-body .transfer-team-fallback{
    background: #172841;
    border-color: #314967;
  }

  .fmto-dev-fab{
    position: fixed;
    right: 18px;
    bottom: 18px;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 1px solid #2a3f5e;
    background: #101f33;
    color: #f8fbff;
    font-size: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.35);
    cursor: pointer;
    z-index: 500;
  }

  .fmto-dev-fab:hover{
    background: #172841;
  }

  .fmto-dev-row{
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 4px;
    border-bottom: 1px solid #22344f;
  }

  .fmto-dev-row:last-child{
    border-bottom: none;
  }

  .fmto-dev-row-copy{
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
  }

  .fmto-dev-row-copy strong{
    color: #f8fbff;
    font-size: 13px;
  }

  .fmto-dev-row-copy small{
    color: #91a6c1;
    font-size: 10px;
  }

  .fmto-dev-toggle{
    flex-shrink: 0;
    border: 1px solid #2a3f5e;
    background: #172841;
    color: #dce8f7;
    border-radius: 999px;
    padding: 7px 12px;
    font-size: 11px;
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap;
  }

  .fmto-dev-toggle.on{
    background: #14532d;
    border-color: #15803d;
    color: #d1fae5;
  }

  .fmto-dev-only-badge{
    display: inline-block;
    margin-left: 6px;
    padding: 2px 7px;
    border-radius: 999px;
    background: #7c2d12;
    color: #fed7aa;
    font-size: 8px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .04em;
    vertical-align: middle;
  }

  .nav-item.nav-item--dev-only{
    position: relative;
  }

  .nav-item.nav-item--dev-only::after{
    content: "";
    position: absolute;
    top: 6px;
    right: 6px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #f97316;
    box-shadow: 0 0 0 2px var(--surface);
  }

  .overview-nav-card--dev-only{
    position: relative;
    outline: 1px dashed #f97316;
    outline-offset: -1px;
  }

  .fmto-dev-only-badge--card{
    position: absolute;
    top: 10px;
    right: 10px;
    margin-left: 0;
    background: #f97316;
    color: #1c1006;
  }

  .stats-totals-row td{
    font-weight: 800;
    background: color-mix(in srgb, var(--surface) 94%, var(--background));
    border-bottom: none;
  }

  .career-timeline::before{
    content: "";
    position: absolute;
    left: 13px;
    top: 18px;
    bottom: 18px;
    width: 2px;
    background: var(--line);
  }

  .career-event{
    position: relative;
    display: grid;
    grid-template-columns: 122px minmax(0, 1fr) auto;
    grid-template-areas:
      "season route meta"
      "season clauses clauses";
    gap: 8px 14px;
    align-items: center;
    padding: 12px 14px 12px 34px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: color-mix(in srgb, var(--surface) 94%, var(--background));
  }

  .career-event::before{
    content: "";
    position: absolute;
    left: 8px;
    top: 50%;
    width: 12px;
    height: 12px;
    transform: translateY(-50%);
    border: 3px solid var(--surface);
    border-radius: 50%;
    background: #2563eb;
    box-shadow: 0 0 0 1px #93c5fd;
    z-index: 1;
  }

  .career-season{
    grid-area: season;
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
  }

  .career-season span{
    font-size: 12px;
    font-weight: 900;
    color: var(--text);
  }

  .career-season small{
    color: var(--muted);
    font-size: 10px;
  }

  .career-route{
    grid-area: route;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 24px minmax(0, 1fr);
    align-items: center;
    gap: 8px;
    min-width: 0;
  }

  .career-team{
    display: grid;
    grid-template-columns: 30px minmax(0, 1fr);
    align-items: center;
    gap: 8px;
    min-width: 0;
  }

  .career-team-logo,
.career-team-fallback{
    width: 30px;
    height: 30px;
    object-fit: contain;
    border-radius: 8px;
  }

  .career-team-fallback{
    border: 1px solid var(--line);
    background: var(--background);
  }

  .career-team strong{
    min-width: 0;
    font-size: 12px;
    line-height: 1.2;
    white-space: normal;
    overflow-wrap: anywhere;
  }

  .career-arrow{
    display: grid;
    place-items: center;
    color: #2563eb;
    font-weight: 900;
  }

  .career-event-meta{
    grid-area: meta;
    min-width: 116px;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 4px;
    text-align: right;
  }

  .career-type{
    color: var(--muted);
    font-size: 10px;
    line-height: 1.2;
  }

  .career-cr{
    white-space: nowrap;
    font-size: 13px;
  }

  .career-clauses{
    grid-area: clauses;
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
  }

  .career-clauses span{
    border-radius: 999px;
    padding: 4px 7px;
    background: #eff6ff;
    color: #1d4ed8;
    font-size: 9px;
    font-weight: 800;
  }

  .season-history-row{
    display: block;
    padding: 12px 14px 12px 34px;
  }

  .season-history-body{
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 6px;
  }

  .career-route-line{
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
  }

  .career-route-line .career-team{
    flex: 1 1 auto;
    min-width: 0;
  }

  .career-route-line .career-type{
    text-align: left;
  }

  .career-route-line .career-cr{
    margin-left: auto;
  }

  .career-route-line--empty{
    color: var(--muted);
    font-size: 11px;
  }

  .career-stats-line{
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    padding-top: 4px;
    border-top: 1px dashed var(--line);
  }

  .stat-chip{
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 3px 9px;
    background: #ecfdf5;
    color: #047857;
    font-size: 10px;
    font-weight: 800;
    white-space: nowrap;
  }

  .stat-chip--team{
    background: #eff6ff;
    color: #1d4ed8;
  }

  .career-coverage-note{
    margin: 12px 0 0;
    color: var(--muted);
    font-size: 10px;
    line-height: 1.4;
  }

  @media (max-width: 700px) {
    .profile-career-shell{
      margin: 0 12px 16px;
      padding: 14px 12px;
      border-radius: 15px;
    }

    .profile-career-heading{
      align-items: flex-start;
      flex-direction: column;
      gap: 8px;
    }

    .career-summary{
      justify-content: flex-start;
    }

    .career-timeline::before{
      left: 10px;
    }

    .career-event{
      grid-template-columns: minmax(0, 1fr) auto;
      grid-template-areas:
        "season meta"
        "route route"
        "clauses clauses";
      gap: 10px;
      padding: 12px 10px 12px 28px;
      align-items: start;
    }

    .career-event::before{
      left: 5px;
      top: 20px;
      transform: none;
    }

    .career-event-meta{
      min-width: 82px;
    }

    .career-route{
      grid-template-columns: minmax(0, 1fr);
      gap: 7px;
      align-items: stretch;
    }

    .career-team{
      min-height: 46px;
      grid-template-columns: 34px minmax(0, 1fr);
      padding: 6px 8px;
      border: 1px solid var(--line);
      border-radius: 11px;
      background: var(--surface);
    }

    .career-team-logo,
.career-team-fallback{
      width: 34px;
      height: 34px;
    }

    .career-team strong{
      font-size: 12px;
      white-space: normal;
      overflow: visible;
      text-overflow: clip;
      overflow-wrap: anywhere;
    }

    .career-arrow{
      height: 20px;
      transform: rotate(90deg);
    }

    .career-type{
      white-space: normal;
    }
  }

  .fmto-club-view-active .topbar{
    justify-content: flex-end;
    margin-bottom: 14px;
  }

  .fmto-club-view-active .topbar > :first-child{
    display: none;
  }

  .fmto-club-header{
    --club-accent: var(--brand);
    --club-header-bg: var(--surface);
    --club-header-text: var(--text);
    --club-header-muted: var(--muted);
    --club-header-border: var(--line);
    position: relative;
    isolation: isolate;
    overflow: hidden;
    margin-bottom: 20px;
    border: 1px solid var(--club-header-border);
    border-radius: 20px;
    background: var(--club-header-bg);
    box-shadow: 0 10px 30px rgba(31, 49, 79, .06);
  }

  .fmto-club-header::before,
.fmto-club-header::after{
    content: "";
    position: absolute;
    z-index: -1;
    pointer-events: none;
  }

  .fmto-club-header::before{
    top: 0;
    right: -80px;
    width: 340px;
    height: 7px;
    transform: skewX(-34deg);
    background: var(--club-accent);
  }

  .fmto-club-header::after{
    right: -90px;
    top: -38px;
    width: 260px;
    height: 150px;
    transform: skewX(-28deg);
    background: linear-gradient(135deg, rgba(37, 99, 235, .075), rgba(37, 99, 235, 0));
  }

  .fmto-club-header__main{
    display: grid;
    grid-template-columns: minmax(300px, 1.15fr) minmax(260px, .85fr) auto;
    grid-template-areas: "identity search actions";
    align-items: center;
    gap: 24px;
    min-height: 126px;
    padding: 20px 24px 18px;
  }

  .fmto-club-header__identity{
    grid-area: identity;
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 17px;
  }

  .fmto-club-header__logo{
    width: 88px;
    height: 88px;
    flex: 0 0 88px;
    object-fit: contain;
    border-radius: 16px;
    padding: 8px;
    background: var(--surface);
    border: 1px solid rgba(148, 163, 184, .24);
  }

  .fmto-club-header__logo--fallback{
    display: grid;
    place-items: center;
    color: #fff;
    font-size: 19px;
    font-weight: 900;
    letter-spacing: .03em;
  }

  .fmto-club-header__identity-copy{
    min-width: 0;
  }

  .fmto-club-header__identity-copy h2{
    margin: 0;
    color: var(--club-header-text);
    font-size: clamp(28px, 3vw, 42px);
    line-height: 1;
    letter-spacing: -.035em;
    font-weight: 900;
    white-space: normal;
    overflow-wrap: anywhere;
  }

  .fmto-club-header__identity-copy > p{
    margin: 7px 0 0;
    color: var(--club-header-muted);
    font-size: 12px;
    font-weight: 750;
  }

  .fmto-club-header__competitions{
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 10px;
  }

  .fmto-club-header__competitions .competition-link{
    min-height: 30px;
    padding: 4px 8px;
    border-radius: 9px;
  }

  .fmto-club-header__competitions .competition-chip-logo{
    width: 22px;
    height: 22px;
  }

  .fmto-club-header__search{
    grid-area: search;
    min-width: 0;
    height: 46px;
    display: flex;
    align-items: center;
    gap: 9px;
    border: 1px solid var(--club-header-border);
    border-radius: 12px;
    padding: 0 13px;
    background: color-mix(in srgb, var(--surface) 88%, var(--surface-2));
    color: var(--club-header-muted);
  }

  .fmto-club-header__search:focus-within{
    border-color: #8bb1ff;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, .10);
  }

  .fmto-club-header__search > span{
    flex: 0 0 auto;
    font-size: 18px;
    color: var(--club-accent);
  }

  .fmto-club-header__search input{
    width: 100%;
    min-width: 0;
    border: 0;
    outline: 0;
    background: transparent;
    color: var(--club-header-text);
    font: inherit;
    font-size: 13px;
  }

  .fmto-club-header__search input::placeholder{
    color: var(--club-header-muted);
  }

  .fmto-club-header__actions{
    grid-area: actions;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
  }

  .fmto-club-header__search-button,
.fmto-club-header__menu-button{
    display: none;
    width: 44px;
    height: 44px;
    place-items: center;
    border: 1px solid var(--club-header-border);
    border-radius: 11px;
    background: var(--surface);
    color: var(--club-header-text);
    cursor: pointer;
    font: inherit;
    font-size: 18px;
  }

  .fmto-club-header__search-button:focus-visible,
.fmto-club-header__menu-button:focus-visible,
.fmto-club-nav__item:focus-visible,
.fmto-club-mobile-nav__item:focus-visible,
.fmto-club-header__mobile-menu button:focus-visible{
    outline: 3px solid rgba(37, 99, 235, .22);
    outline-offset: 2px;
  }

  .fmto-club-nav{
    display: flex;
    align-items: stretch;
    gap: 2px;
    min-height: 52px;
    padding: 0 18px;
    border-top: 1px solid var(--club-header-border);
    background: color-mix(in srgb, var(--surface) 94%, var(--surface-2));
    overflow-x: auto;
    scrollbar-width: none;
  }

  .fmto-club-nav::-webkit-scrollbar{
    display: none;
  }

  .fmto-club-nav__item{
    position: relative;
    flex: 0 0 auto;
    min-height: 52px;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    border: 0;
    background: transparent;
    color: var(--club-header-muted);
    padding: 0 15px;
    font: inherit;
    font-size: 11px;
    font-weight: 850;
    letter-spacing: .045em;
    text-transform: uppercase;
    white-space: nowrap;
    cursor: pointer;
  }

  .fmto-club-nav__item::after{
    content: "";
    position: absolute;
    left: 14px;
    right: 14px;
    bottom: 0;
    height: 3px;
    border-radius: 3px 3px 0 0;
    background: transparent;
  }

  .fmto-club-nav__item:hover{
    color: var(--club-header-text);
    background: rgba(37, 99, 235, .035);
  }

  .fmto-club-nav__item--active{
    color: var(--club-accent);
    background: rgba(37, 99, 235, .06);
  }

  .fmto-club-nav__item--active::after{
    background: var(--club-accent);
  }

  .fmto-club-nav__icon{
    font-size: 13px;
  }

  .fmto-club-mobile-nav,
.fmto-club-header__mobile-menu{
    display: none;
  }

  #clubRosterSection,
#clubTransferSummary,
#clubHonoursSection{
    scroll-margin-top: 88px;
  }

  @media (max-width: 1100px) and (min-width: 768px) {
    .fmto-club-header__main{
      grid-template-columns: minmax(270px, 1.15fr) minmax(190px, .7fr) auto;
      gap: 14px;
      min-height: 108px;
      padding: 16px 18px;
    }

    .fmto-club-header__logo{
      width: 72px;
      height: 72px;
      flex-basis: 72px;
      border-radius: 14px;
      padding: 7px;
    }

    .fmto-club-header__identity{
      gap: 13px;
    }

    .fmto-club-header__identity-copy h2{
      font-size: clamp(24px, 3vw, 32px);
    }

    .fmto-club-header__competitions{
      margin-top: 7px;
    }

    .fmto-club-header__search{
      height: 42px;
    }

    .fmto-club-nav{
      padding: 0 10px;
      scroll-snap-type: x proximity;
    }

    .fmto-club-nav__item{
      min-height: 48px;
      padding: 0 12px;
      scroll-snap-align: start;
    }
  }

  @media (max-width: 767px) {
    .fmto-club-view-active .topbar{
      margin-bottom: 9px;
    }

    .fmto-club-header{
      overflow: visible;
      margin: 0 -2px 16px;
      border-radius: 15px;
      box-shadow: 0 7px 20px rgba(31, 49, 79, .05);
    }

    .fmto-club-header::before{
      right: 0;
      width: 150px;
      height: 5px;
      transform: none;
      clip-path: polygon(14% 0, 100% 0, 100% 100%, 0 100%);
    }

    .fmto-club-header::after{
      display: none;
    }

    .fmto-club-header__main{
      grid-template-columns: 44px minmax(0, 1fr) 44px;
      grid-template-areas:
        "menu identity actions"
        "search search search";
      gap: 8px;
      min-height: 70px;
      padding: 9px 10px;
    }

    .fmto-club-header__menu-button,
.fmto-club-header__search-button{
      display: grid;
    }

    .fmto-club-header__menu-button{
      grid-area: menu;
    }

    .fmto-club-header__identity{
      grid-area: identity;
      gap: 9px;
    }

    .fmto-club-header__logo{
      width: 48px;
      height: 48px;
      flex-basis: 48px;
      border-radius: 10px;
      padding: 5px;
    }

    .fmto-club-header__identity-copy h2{
      max-width: 100%;
      font-size: 18px;
      line-height: 1.05;
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
      overflow-wrap: normal;
    }

    .fmto-club-header__identity-copy > p{
      margin-top: 4px;
      font-size: 10px;
      white-space: nowrap;
    }

    .fmto-club-header__competitions{
      display: none;
    }

    .fmto-club-header__actions{
      grid-area: actions;
    }

    .fmto-club-header__search{
      display: none;
      grid-area: search;
      height: 42px;
      margin-top: 2px;
    }

    .fmto-club-header--search-open .fmto-club-header__search{
      display: flex;
    }

    .fmto-club-nav{
      display: none;
    }

    .fmto-club-mobile-nav{
      display: grid;
      grid-auto-flow: column;
      grid-auto-columns: minmax(0, 1fr);
      min-height: 58px;
      border-top: 1px solid var(--club-header-border);
      background: color-mix(in srgb, var(--surface) 96%, var(--surface-2));
    }

    .fmto-club-mobile-nav__item{
      position: relative;
      min-width: 0;
      min-height: 58px;
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      gap: 3px;
      border: 0;
      background: transparent;
      color: var(--club-header-muted);
      padding: 5px 2px 6px;
      font: inherit;
      font-size: 8.5px;
      font-weight: 800;
      line-height: 1;
      cursor: pointer;
    }

    .fmto-club-mobile-nav__item::after{
      content: "";
      position: absolute;
      left: 24%;
      right: 24%;
      bottom: 0;
      height: 3px;
      border-radius: 3px 3px 0 0;
      background: transparent;
    }

    .fmto-club-mobile-nav__item.fmto-club-nav__item--active{
      color: var(--club-accent);
      background: rgba(37, 99, 235, .045);
    }

    .fmto-club-mobile-nav__item.fmto-club-nav__item--active::after{
      background: var(--club-accent);
    }

    .fmto-club-mobile-nav__icon{
      font-size: 14px;
      line-height: 1;
    }

    .fmto-club-header__mobile-menu{
      position: absolute;
      z-index: 12;
      left: 9px;
      top: 62px;
      width: min(260px, calc(100vw - 36px));
      padding: 7px;
      border: 1px solid var(--club-header-border);
      border-radius: 13px;
      background: var(--surface);
      box-shadow: 0 18px 42px rgba(15, 23, 42, .18);
    }

    .fmto-club-header--menu-open .fmto-club-header__mobile-menu{
      display: grid;
      gap: 3px;
    }

    .fmto-club-header__mobile-menu button{
      min-height: 44px;
      border: 0;
      border-radius: 9px;
      background: transparent;
      color: var(--text);
      padding: 0 11px;
      text-align: left;
      font: inherit;
      font-size: 12px;
      font-weight: 750;
      cursor: pointer;
    }

    .fmto-club-header__mobile-menu button:hover{
      background: var(--surface-2);
    }

    #clubRosterSection,
#clubTransferSummary,
#clubHonoursSection{
      scroll-margin-top: 150px;
    }
  }

  @media (max-width: 479px) {
    .fmto-club-header__main{
      grid-template-columns: 42px minmax(0, 1fr) 42px;
      gap: 6px;
      padding: 8px;
    }

    .fmto-club-header__menu-button,
.fmto-club-header__search-button{
      width: 42px;
      height: 42px;
    }

    .fmto-club-header__logo{
      width: 44px;
      height: 44px;
      flex-basis: 44px;
    }

    .fmto-club-header__identity{
      gap: 7px;
    }

    .fmto-club-header__identity-copy h2{
      font-size: 16px;
    }

    .fmto-club-header__identity-copy > p{
      font-size: 9px;
    }

    .fmto-club-mobile-nav__item{
      font-size: 7.8px;
    }
  }

  .sidebar{
    --fmto-sidebar-width: 232px;
    --fmto-sidebar-bg: #ffffff;
    --fmto-sidebar-text: #526176;
    --fmto-sidebar-text-strong: #172033;
    --fmto-sidebar-border: #e5eaf1;
    --fmto-sidebar-hover: #f5f7fa;
    --fmto-sidebar-active: #eef2f7;
    --fmto-sidebar-accent: #2563eb;
    width: var(--fmto-sidebar-width);
    padding: 22px 16px 18px;
    background: var(--fmto-sidebar-bg);
    color: var(--fmto-sidebar-text);
    border-right: 1px solid var(--fmto-sidebar-border);
    box-shadow: 8px 0 28px rgba(15, 23, 42, 0.035);
    transition: width .2s ease, padding .2s ease, background-color .2s ease;
    
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
  }
  .brand{
    min-height: 94px;
    justify-content: center;
    border-radius: 16px;
    padding: 6px;
    overflow: hidden;
  }
  .brand:hover{ background: var(--fmto-sidebar-hover); }
  .brand-logo{
    width: 92px;
    height: 92px;
    max-height: none;
    object-fit: cover;
    object-position: center;
    clip-path: circle(42% at 50% 50%);
    background: transparent !important;
    transition: width .2s ease, height .2s ease, transform .2s ease;
  }
  .brand:hover .brand-logo{ transform: scale(1.025); }
  .nav-list{ margin-top: 34px; gap: 6px; }
  .nav-item{
    min-height: 44px;
    grid-template-columns: 30px minmax(0, 1fr) auto;
    gap: 10px;
    padding: 8px 10px;
    border-radius: 11px;
    color: var(--fmto-sidebar-text);
    font-weight: 650;
    transition: background-color .15s ease, color .15s ease, transform .15s ease;
  }
  .nav-item:hover{
    background: var(--fmto-sidebar-hover);
    color: var(--fmto-sidebar-text-strong);
  }
  .nav-item.active{
    background: var(--fmto-sidebar-active);
    color: var(--fmto-sidebar-text-strong);
    box-shadow: inset 3px 0 0 var(--fmto-sidebar-accent);
  }
  .nav-icon{
    width: 30px;
    height: 30px;
    border-radius: 9px;
    background: transparent;
    color: #7a8799;
    font-size: 13px;
    transition: background-color .15s ease, color .15s ease;
  }
  .nav-item:hover .nav-icon{
    background: #edf1f6;
    color: #334155;
  }
  .nav-item.active .nav-icon{
    background: #e8efff;
    color: var(--fmto-sidebar-accent);
  }
  .nav-item small{
    color: #8b98aa;
    font-size: 11px;
    font-variant-numeric: tabular-nums;
  }
  .version{
    margin-top: 10px;
    padding: 0 4px;
    color: #97a3b4;
    font-size: 10px;
  }
  .sidebar-collapse{
    position: absolute;
    top: 74px;
    right: -14px;
    z-index: 12;
    width: 28px;
    height: 28px;
    display: grid;
    place-items: center;
    padding: 0;
    border: 1px solid var(--fmto-sidebar-border);
    border-radius: 50%;
    background: var(--fmto-sidebar-bg);
    color: #64748b;
    box-shadow: 0 5px 16px rgba(15, 23, 42, .11);
    cursor: pointer;
  }
  .sidebar-collapse:hover{
    color: var(--fmto-sidebar-accent);
    border-color: #b9cdfc;
  }
  .sidebar-collapse:focus-visible,
.nav-item:focus-visible,
.brand:focus-visible{
    outline: 3px solid rgba(37, 99, 235, .24);
    outline-offset: 2px;
  }
  .sidebar.sidebar--collapsed{
    --fmto-sidebar-width: 78px;
    padding-left: 10px;
    padding-right: 10px;
  }
  .sidebar.sidebar--collapsed .brand{
    min-height: 66px;
    padding: 0;
  }
  .sidebar.sidebar--collapsed .brand-logo{
    width: 58px;
    height: 58px;
  }
  .sidebar.sidebar--collapsed .nav-list{ margin-top: 28px; }
  .sidebar.sidebar--collapsed .nav-item{
    position: relative;
    grid-template-columns: 1fr;
    justify-items: center;
    padding: 7px;
  }
  .sidebar.sidebar--collapsed .nav-item > span:not(.nav-icon),
.sidebar.sidebar--collapsed .nav-item small,
.sidebar.sidebar--collapsed .version{
    display: none;
  }
  .sidebar.sidebar--collapsed .nav-item.active{ box-shadow: none; }
  .sidebar.sidebar--collapsed .nav-item.active::after{
    content: "";
    position: absolute;
    left: -10px;
    width: 3px;
    height: 22px;
    border-radius: 0 3px 3px 0;
    background: var(--fmto-sidebar-accent);
  }
  body.fmto-sidebar-collapsed .main{ margin-left: 78px; }

  @media (max-width: 860px) {
    .sidebar,
.sidebar.sidebar--collapsed{
      position: static;
      width: auto;
      height: 68px;
      padding: 12px 18px;
      flex-direction: row;
      align-items: center;
      box-shadow: none;
      border-right: 0;
      border-bottom: 1px solid var(--fmto-sidebar-border);
    }
    body.fmto-sidebar-collapsed .main{ margin-left: 0; }
    .sidebar-collapse{ display: none; }
    .sidebar .brand,
.sidebar.sidebar--collapsed .brand{
      min-height: 44px;
      width: 50px;
      padding: 0;
    }
    .sidebar .brand-logo,
.sidebar.sidebar--collapsed .brand-logo{
      width: 48px;
      height: 48px;
    }
    .sidebar .nav-list,
.sidebar.sidebar--collapsed .nav-list{
      margin: 0 0 0 auto;
    }
    .sidebar.sidebar--collapsed .nav-item{
      grid-template-columns: 30px minmax(0, 1fr) auto;
      justify-items: stretch;
      padding: 9px;
    }
    .sidebar.sidebar--collapsed .nav-item > span:not(.nav-icon),
.sidebar.sidebar--collapsed .nav-item small{
      display: initial;
    }
  }

  .sidebar .nav-list{
    display: flex;
    flex-direction: column;
    gap: 0;
  }

  .sidebar .nav-group{
    display: grid;
    gap: 5px;
  }

  .sidebar .nav-divider{
    height: 1px;
    margin: 12px 10px;
    background: var(--fmto-sidebar-border);
    opacity: .78;
  }

  .sidebar .nav-item{
    position: relative;
    overflow: visible;
  }

  .sidebar .nav-icon{
    width: 32px;
    height: 32px;
    display: grid;
    place-items: center;
    padding: 5px;
  }

  .sidebar .nav-icon svg{
    width: 100%;
    height: 100%;
    display: block;
    overflow: visible;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.65;
    stroke-linecap: round;
    stroke-linejoin: round;
    vector-effect: non-scaling-stroke;
  }

  .sidebar .nav-icon--palmares svg path:last-child{
    fill: currentColor;
    stroke-width: 1.25;
  }

  .sidebar .nav-label{
    min-width: 0;
    white-space: nowrap;
  }

  .sidebar .nav-count{
    min-width: 30px;
    height: 22px;
    display: inline-grid;
    place-items: center;
    padding: 0 6px;
    border: 1px solid var(--fmto-sidebar-border);
    border-radius: 999px;
    background: color-mix(in srgb, var(--fmto-sidebar-bg) 72%, var(--fmto-sidebar-active));
    color: var(--fmto-sidebar-text);
    line-height: 1;
    font-size: 10px;
    font-weight: 800;
  }

  .sidebar .nav-item.active .nav-count{
    border-color: color-mix(in srgb, var(--fmto-sidebar-accent) 28%, var(--fmto-sidebar-border));
    color: var(--fmto-sidebar-accent);
    background: color-mix(in srgb, var(--fmto-sidebar-accent) 8%, var(--fmto-sidebar-bg));
  }

  .sidebar-footer{
    margin-top: auto;
    display: grid;
    gap: 8px;
  }

  .sidebar-footer__divider{
    height: 1px;
    margin: 0 2px 4px;
    background: var(--fmto-sidebar-border);
  }

  .sidebar .version{
    margin-top: 0;
    padding: 0 5px;
  }

  .sidebar.sidebar--collapsed .nav-divider{
    width: 34px;
    margin: 11px auto;
  }

  .sidebar.sidebar--collapsed .nav-item{
    width: 48px;
    min-height: 48px;
    margin-inline: auto;
    padding: 8px;
  }

  .sidebar.sidebar--collapsed .nav-icon{
    width: 32px;
    height: 32px;
    padding: 4px;
  }

  .sidebar.sidebar--collapsed .nav-label{
    display: none;
  }

  .sidebar.sidebar--collapsed .nav-count{
    position: absolute;
    top: 2px;
    right: -5px;
    min-width: 23px;
    height: 18px;
    padding: 0 4px;
    font-size: 8px;
    box-shadow: 0 2px 5px rgba(15,23,42,.12);
  }

  .sidebar.sidebar--collapsed .nav-item[data-tooltip]::before,
.sidebar.sidebar--collapsed .nav-item[data-tooltip]::after{
    position: absolute;
    left: calc(100% + 12px);
    z-index: 80;
    pointer-events: none;
    opacity: 0;
    visibility: hidden;
    transition: opacity .12s ease, transform .12s ease;
  }

  .sidebar.sidebar--collapsed .nav-item[data-tooltip]::before{
    content: attr(data-tooltip);
    top: 50%;
    transform: translate(4px, -50%);
    padding: 7px 10px;
    border-radius: 8px;
    background: #172033;
    color: #fff;
    font-size: 11px;
    font-weight: 750;
    line-height: 1;
    white-space: nowrap;
    box-shadow: 0 6px 18px rgba(15,23,42,.16);
  }

  .sidebar.sidebar--collapsed .nav-item[data-tooltip]::after{
    content: "";
    top: 50%;
    transform: translate(4px, -50%);
    margin-left: -6px;
    border: 5px solid transparent;
    border-right-color: #172033;
  }

  .sidebar.sidebar--collapsed .nav-item[data-tooltip]:hover::before,
.sidebar.sidebar--collapsed .nav-item[data-tooltip]:hover::after,
.sidebar.sidebar--collapsed .nav-item[data-tooltip]:focus-visible::before,
.sidebar.sidebar--collapsed .nav-item[data-tooltip]:focus-visible::after{
    opacity: 1;
    visibility: visible;
    transform: translate(0, -50%);
  }

  .sidebar.sidebar--collapsed .sidebar-footer{
    justify-items: center;
  }

  .sidebar.sidebar--collapsed .sidebar-footer__divider{
    width: 38px;
    margin-inline: auto;
  }

  .sidebar.sidebar--collapsed .version{
    display: none;
  }

  .sidebar .nav-item.active .nav-icon{
    color: var(--fmto-sidebar-accent);
  }

  .sidebar .nav-item.active::before{
    content: "";
    position: absolute;
    left: 0;
    top: 10px;
    bottom: 10px;
    width: 3px;
    border-radius: 0 3px 3px 0;
    background: var(--fmto-sidebar-accent);
  }

  .sidebar.sidebar--collapsed .nav-item.active::before{
    left: -10px;
    top: 13px;
    bottom: 13px;
  }

  @media (max-width: 860px){
    .sidebar .nav-divider {
      display: none;
    }

    .sidebar .nav-group {
      display: contents;
    }

    .sidebar .nav-list {
      display: grid;
    }

    .sidebar .nav-item.active::before {
      display: none;
    }

    .sidebar-footer {
      margin-top: 0;
    }

    .sidebar-footer__divider,
    .sidebar .theme-toggle,
    .sidebar .version {
      display: none;
    }
  }

  body.fmto-club-view-active .topbar{
    min-height: 54px;
    padding-top: 8px;
    padding-bottom: 8px;
    align-items: center;
  }
  body.fmto-club-view-active .topbar > div:first-child{ min-height: 0; }
  body.fmto-club-view-active #clubView > .back-button{
    margin-top: 0;
    margin-bottom: 8px;
  }

  #clubHubHeader.fmto-club-header{
    position: sticky;
    top: 0;
    z-index: 45;
    scroll-margin-top: 8px;
    box-shadow: 0 10px 28px rgba(15, 23, 42, .07);
  }
  #clubHubHeader .fmto-club-header__main{
    grid-template-columns: minmax(300px, 1fr) minmax(260px, 520px) minmax(210px, 270px) auto;
    gap: 16px;
    min-height: 102px;
    padding-top: 13px;
    padding-bottom: 13px;
  }
  #clubHubHeader .fmto-club-header__logo{ width: 72px; height: 72px; }
  #clubHubHeader .fmto-club-header__identity-copy h2{
    font-size: clamp(26px, 2.2vw, 38px);
    line-height: 1.02;
  }
  #clubHubHeader .fmto-club-header__competitions{ margin-top: 7px; }
  #clubHubHeader .fmto-club-nav{ min-height: 50px; }

  .fmto-club-switch{ position: relative; min-width: 0; align-self: center; }
  .fmto-club-switch__label{
    display: block; margin: 0 0 5px 2px; color: var(--muted);
    font-size: 9px; font-weight: 850; letter-spacing: .07em; text-transform: uppercase;
  }
  .fmto-club-switch__trigger{
    width: 100%; min-height: 46px; display: grid;
    grid-template-columns: 30px minmax(0, 1fr) auto; align-items: center; gap: 9px;
    padding: 6px 10px; border: 1px solid var(--line); border-radius: 11px;
    background: var(--surface); color: var(--text); font: inherit; cursor: pointer; text-align: left;
  }
  .fmto-club-switch__trigger:hover,
.fmto-club-switch__trigger[aria-expanded="true"]{
    border-color: #9bb7f5;
    background: color-mix(in srgb, var(--surface) 94%, #2563eb);
  }
  .fmto-club-switch__current{
    min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
    font-size: 12px; font-weight: 850;
  }
  .fmto-club-switch__chevron{ color: var(--muted); font-size: 14px; }
  .fmto-club-switch__logo{
    width: 30px; height: 30px; display: grid; place-items: center;
    object-fit: contain; border-radius: 8px; background: var(--surface);
  }
  .fmto-club-switch__logo--fallback{ color: #fff; font-size: 9px; font-weight: 900; }
  .fmto-club-switch__menu{
    position: absolute; z-index: 90; top: calc(100% + 7px); right: 0;
    width: min(330px, 88vw); max-height: min(430px, 64vh); overflow-y: auto;
    padding: 6px; border: 1px solid var(--line); border-radius: 13px;
    background: var(--surface); box-shadow: 0 20px 45px rgba(15, 23, 42, .16);
  }
  .fmto-club-switch__option{
    width: 100%; min-height: 43px; display: grid;
    grid-template-columns: 30px minmax(0, 1fr) 20px; align-items: center; gap: 9px;
    padding: 6px 8px; border: 0; border-radius: 9px; background: transparent;
    color: var(--text); font: inherit; text-align: left; cursor: pointer;
  }
  .fmto-club-switch__option:hover,
.fmto-club-switch__option.is-current{
    background: color-mix(in srgb, var(--surface) 88%, #2563eb);
  }
  .fmto-club-switch__option > span:nth-child(2){
    min-width: 0; white-space: normal; overflow-wrap: anywhere; font-size: 12px; font-weight: 760;
  }
  .fmto-club-switch__option strong{ color: #2563eb; text-align: center; }

  #playersView{ padding-top: 2px; }
  #playersView .player-search-panel--compact{
    width: min(100%, 1040px);
    grid-template-columns: minmax(300px, 1fr) 170px auto auto;
    gap: 9px; padding: 12px; margin: 0 0 12px; border-radius: 14px;
  }
  #playersView .player-search-panel--compact .player-query{
    min-height: 46px; padding-block: 10px;
  }
  #playersView .player-search-panel--compact .presence-filter{ min-width: 0; }
  #playersView .player-search-panel--compact .team-filter:not([hidden]){
    grid-column: 1 / span 2; width: min(100%, 500px);
  }
  #playersView .player-search-panel--compact .secondary-button,
#playersView .player-search-panel--compact .primary-button{
    min-width: 118px; min-height: 46px; padding: 9px 14px;
  }

  .player-result.player-result--with-stats{
    display: grid;
    grid-template-columns: minmax(330px, 1.25fr) minmax(315px, .9fr) auto;
    gap: 18px; align-items: center;
  }
  .player-season-stats{
    display: grid; grid-template-columns: repeat(5, minmax(44px, 1fr));
    align-items: center; gap: 4px; min-width: 0;
  }
  .player-season-stat{
    position: relative; min-height: 56px; display: grid; grid-template-rows: 23px 18px;
    align-content: center; justify-items: center; gap: 2px;
    border-left: 1px solid color-mix(in srgb, var(--line) 72%, transparent);
    color: var(--muted);
  }
  .player-season-stat:first-child{ border-left: 0; }
  .player-season-stat__icon{ width: 22px; height: 22px; display: grid; place-items: center; }
  .player-season-stat__icon svg{
    width: 21px; height: 21px; fill: none; stroke: currentColor;
    stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round;
  }
  .player-season-stat strong{
    color: var(--text); font-size: 12px; font-variant-numeric: tabular-nums;
  }
  .player-season-stat small{
    position: absolute; top: 23px; color: #d89000; font-size: 7px; font-weight: 950;
  }
  .player-season-stat--goals{ color: #20a85b; }
  .player-season-stat--assists{ color: #2387df; }
  .player-season-stat--motm{ color: #f1a400; }
  .player-season-stat--motm .player-season-stat__icon svg{ fill: currentColor; }
  .player-season-stat--yellow{ color: #f1c40f; }
  .player-season-stat--yellow .player-season-stat__icon svg{ fill: currentColor; stroke: #d7aa00; }
  .player-season-stat--red{ color: #ef4444; }
  .player-season-stat--red .player-season-stat__icon svg{ fill: currentColor; stroke: #d92f2f; }

  @media (max-width: 1250px) {
    #clubHubHeader .fmto-club-header__main{
      grid-template-columns: minmax(280px, 1fr) minmax(220px, 400px) minmax(190px, 240px) auto;
      gap: 11px;
    }
    .player-result.player-result--with-stats{
      grid-template-columns: minmax(290px, 1fr) minmax(265px, .8fr) auto;
      gap: 12px;
    }
  }

  @media (max-width: 1100px) {
    #clubHubHeader .fmto-club-header__main{
      grid-template-columns: minmax(260px, 1fr) minmax(180px, 300px) 220px;
    }
    #clubHubHeader .fmto-club-header__actions{ display: none; }
    .player-result.player-result--with-stats{
      grid-template-columns: minmax(260px, 1fr) auto;
      grid-template-areas: "identity actions" "stats stats";
    }
    .player-result.player-result--with-stats .player-main{ grid-area: identity; }
    .player-result.player-result--with-stats .player-season-stats{
      grid-area: stats; padding-top: 7px; border-top: 1px solid var(--line);
    }
    .player-result.player-result--with-stats .player-actions{ grid-area: actions; }
  }

  @media (max-width: 767px) {
    #clubHubHeader .fmto-club-header__main{ min-height: 68px; }
    .fmto-club-switch{ grid-column: 1 / -1; width: 100%; margin-top: 5px; }
    .fmto-club-switch__label{ display: none; }
    .fmto-club-switch__trigger{ min-height: 42px; }

    #playersView .player-search-panel--compact{
      width: 100%; grid-template-columns: 1fr 1fr;
    }
    #playersView .player-search-panel--compact .player-query,
#playersView .player-search-panel--compact .presence-filter,
#playersView .player-search-panel--compact .team-filter:not([hidden]){
      grid-column: 1 / -1; width: 100%;
    }
    #playersView .player-search-panel--compact .secondary-button,
#playersView .player-search-panel--compact .primary-button{
      width: 100%; min-width: 0;
    }

    .player-result.player-result--with-stats{
      grid-template-columns: 1fr;
      grid-template-areas: "identity" "stats" "actions";
      gap: 10px;
    }
    .player-season-stats{
      grid-template-columns: repeat(5, minmax(42px, 1fr));
      width: 100%; gap: 0;
    }
    .player-season-stat{ min-height: 50px; }
  }

  @media (min-width: 901px){
    #playersView .player-search-panel--compact {
      width: 100%;
      display: grid;
      grid-template-columns: minmax(280px, 480px) 150px minmax(185px, 235px) 108px 108px;
      gap: 8px;
      align-items: end;
      justify-content: start;
    }
    #playersView .player-search-panel--compact .player-query,
    #playersView .player-search-panel--compact .presence-filter,
    #playersView .player-search-panel--compact .team-filter:not([hidden]) {
      grid-column: auto;
      width: auto;
      min-width: 0;
    }
    #playersView .player-search-panel--compact .secondary-button,
    #playersView .player-search-panel--compact .primary-button {
      width: 108px;
      min-width: 108px;
      min-height: 42px;
      height: 42px;
      padding: 0 10px;
      white-space: nowrap;
    }
  }

  .player-result.player-result--with-stats{
    grid-template-columns: minmax(330px, 1.15fr) 350px minmax(310px, auto);
    align-items: center;
  }
  .player-season-stats{
    width: 350px;
    height: 62px;
    align-self: center;
    justify-self: center;
  }
  .player-season-stat{
    min-height: 62px;
    height: 62px;
    display: grid;
    grid-template-rows: 23px 10px 17px;
    align-content: center;
    align-items: center;
    justify-items: center;
    gap: 1px;
    padding: 4px 2px;
  }
  .player-season-stat__icon{ width: 22px; height: 22px; }
  .player-season-stat small{
    position: static;
    min-height: 10px;
    line-height: 10px;
    margin: 0;
    font-size: 7px;
  }
  .player-season-stat strong{
    min-height: 17px;
    line-height: 17px;
    margin: 0;
  }
  .player-result.player-result--with-stats .player-actions{
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 7px;
    flex-wrap: nowrap;
  }
  .player-result.player-result--with-stats .player-actions button[data-profile],
.player-result.player-result--with-stats .player-actions button[data-compare]{
    width: 86px;
    min-width: 86px;
    height: 40px;
    min-height: 40px;
    padding: 0 9px;
    display: inline-grid;
    place-items: center;
    white-space: nowrap;
  }

  #clubDetail,
#clubHubHeader.fmto-club-header,
#clubHubHeader .fmto-club-header__main,
#clubHubHeader .fmto-club-switch{
    overflow: visible !important;
  }
  #clubHubHeader.fmto-club-header{ isolation: isolate; z-index: 70; }
  .fmto-club-switch__menu{
    z-index: 250;
    top: calc(100% + 8px);
    max-height: min(440px, 62vh);
  }

  @media (min-width: 1280px) {
    .transfer-operations{
      grid-template-columns: repeat(2, minmax(0, 1fr));
      gap: 14px;
      align-items: stretch;
    }
    .transfer-operation{
      min-width: 0;
      height: 100%;
      display: flex;
      flex-direction: column;
    }
    .transfer-operation-body{
      flex: 1;
      display: grid;
      align-content: start;
    }
  }

  .transfer-movement.transfer-movement--compact{
    grid-template-columns: minmax(125px, .9fr) minmax(170px, 1.15fr) minmax(105px, .75fr) auto;
    grid-template-areas:
      "seller player buyer value"
      "link link link value"
      "chips chips chips chips";
    gap: 7px 12px;
    align-items: center;
    min-height: 112px;
    padding: 13px 15px;
  }
  .transfer-flow-team{
    min-width: 0;
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr);
    grid-template-areas: "logo name" "logo verb";
    gap: 1px 8px;
    align-items: center;
  }
  .transfer-flow-team--seller{ grid-area: seller; }
  .transfer-flow-team--buyer{ grid-area: buyer; }
  .transfer-flow-team .transfer-team-logo,
.transfer-flow-team .transfer-team-fallback{
    grid-area: logo;
    width: 34px;
    height: 34px;
  }
  .transfer-flow-team strong{
    grid-area: name;
    min-width: 0;
    white-space: normal;
    overflow: visible;
    text-overflow: clip;
    overflow-wrap: anywhere;
    line-height: 1.15;
    font-size: 12px;
  }
  .transfer-flow-team span{
    grid-area: verb;
    color: var(--muted);
    font-size: 10px;
    line-height: 1.1;
  }
  .transfer-player.transfer-player--flow{
    grid-area: player;
    min-width: 0;
    min-height: 58px;
    padding: 5px;
  }
  .transfer-player.transfer-player--flow .transfer-player-copy strong,
.transfer-player.transfer-player--flow .transfer-player-copy small{
    white-space: normal;
    overflow: visible;
    text-overflow: clip;
    overflow-wrap: anywhere;
    line-height: 1.15;
  }
  .transfer-flow-link{
    grid-area: link;
    padding-left: 42px;
    color: var(--muted);
    font-size: 10px;
  }
  .transfer-movement--compact .transfer-value{
    grid-area: value;
    align-self: center;
    min-width: 76px;
  }
  .transfer-movement--compact .transfer-clause-row{
    grid-area: chips;
    grid-column: auto;
    margin: 0;
    min-width: 0;
  }
  .transfer-movement--compact .transfer-clause-row span{
    max-width: 100%;
    white-space: normal;
    overflow-wrap: anywhere;
  }
  @media (max-width: 1279px) {
    .transfer-operations{ grid-template-columns: 1fr; }
  }

  @media (max-width: 1100px) and (min-width: 861px) {
    .sidebar,
.sidebar.sidebar--collapsed{
      width: 78px !important;
      padding-left: 10px !important;
      padding-right: 10px !important;
    }
    .sidebar .brand,
.sidebar.sidebar--collapsed .brand{
      min-height: 66px;
      padding: 0;
    }
    .sidebar .brand-logo,
.sidebar.sidebar--collapsed .brand-logo{
      width: 58px;
      height: 58px;
    }
    .sidebar .nav-list,
.sidebar.sidebar--collapsed .nav-list{ margin-top: 28px; }
    .sidebar .nav-item,
.sidebar.sidebar--collapsed .nav-item{
      width: 48px;
      min-height: 48px;
      margin-inline: auto;
      grid-template-columns: 1fr;
      justify-items: center;
      padding: 8px;
    }
    .sidebar .nav-label,
.sidebar .version{
      display: none !important;
    }
    .sidebar .nav-count{
      position: absolute;
      top: 2px;
      right: -5px;
      min-width: 23px;
      height: 18px;
      padding: 0 4px;
      font-size: 8px;
    }
    .sidebar-collapse{ display: none !important; }
    .main,
body.fmto-sidebar-collapsed .main{
      margin-left: 78px !important;
      width: calc(100% - 78px) !important;
    }

    .player-result.player-result--with-stats{
      grid-template-columns: minmax(260px, 1fr) auto;
      grid-template-areas: "identity actions" "stats stats";
    }
    .player-result.player-result--with-stats .player-main{ grid-area: identity; }
    .player-result.player-result--with-stats .player-actions{ grid-area: actions; }
    .player-result.player-result--with-stats .player-season-stats{
      grid-area: stats;
      width: min(100%, 350px);
      justify-self: center;
      border-top: 1px solid var(--line);
      padding-top: 6px;
    }
  }

  @media (max-width: 860px) {
    .app-shell{ display: block !important; }
    .sidebar,
.sidebar.sidebar--collapsed{
      position: sticky !important;
      inset: auto !important;
      top: 0 !important;
      z-index: 100 !important;
      width: 100% !important;
      height: 64px !important;
      min-height: 64px !important;
      padding: 8px 10px !important;
      display: flex !important;
      flex-direction: row !important;
      align-items: center !important;
      gap: 8px !important;
      border-right: 0 !important;
      border-bottom: 1px solid var(--fmto-sidebar-border) !important;
      overflow: hidden !important;
    }
    .sidebar .brand,
.sidebar.sidebar--collapsed .brand{
      width: 48px !important;
      min-width: 48px !important;
      height: 48px !important;
      min-height: 48px !important;
      flex: 0 0 48px !important;
      padding: 0 !important;
    }
    .sidebar .brand-logo,
.sidebar.sidebar--collapsed .brand-logo{
      width: 46px !important;
      height: 46px !important;
    }
    .sidebar .nav-list,
.sidebar.sidebar--collapsed .nav-list{
      flex: 1 1 auto !important;
      min-width: 0 !important;
      display: flex !important;
      flex-direction: row !important;
      align-items: center !important;
      gap: 4px !important;
      margin: 0 !important;
      padding: 0 2px !important;
      overflow-x: auto !important;
      overflow-y: hidden !important;
      scrollbar-width: none;
    }
    .sidebar .nav-list::-webkit-scrollbar{ display: none; }
    .sidebar .nav-group,
.sidebar.sidebar--collapsed .nav-group{ display: contents !important; }
    .sidebar .nav-divider,
.sidebar-footer,
.sidebar-collapse{ display: none !important; }
    .sidebar .nav-item,
.sidebar.sidebar--collapsed .nav-item{
      flex: 0 0 44px !important;
      width: 44px !important;
      min-width: 44px !important;
      min-height: 44px !important;
      margin: 0 !important;
      padding: 6px !important;
      display: grid !important;
      grid-template-columns: 1fr !important;
      justify-items: center !important;
    }
    .sidebar .nav-label,
.sidebar.sidebar--collapsed .nav-label{ display: none !important; }
    .sidebar .nav-count{
      position: absolute !important;
      top: 0 !important;
      right: -2px !important;
      min-width: 21px !important;
      height: 16px !important;
      padding: 0 3px !important;
      font-size: 7px !important;
    }
    .main,
body.fmto-sidebar-collapsed .main{
      margin-left: 0 !important;
      width: 100% !important;
      padding-top: 16px !important;
    }
    #clubHubHeader.fmto-club-header{ top: 64px; }
  }

  @media (max-width: 900px) {
    #playersView .player-search-panel--compact{
      width: 100%;
      grid-template-columns: 1fr 1fr;
    }
    #playersView .player-search-panel--compact .player-query{ grid-column: 1 / -1; }
    #playersView .player-search-panel--compact .presence-filter,
#playersView .player-search-panel--compact .team-filter:not([hidden]){
      grid-column: auto;
      width: 100%;
    }
    #playersView .player-search-panel--compact .secondary-button,
#playersView .player-search-panel--compact .primary-button{
      width: 100%;
      min-width: 0;
    }
    .player-result.player-result--with-stats{
      grid-template-columns: 1fr;
      grid-template-areas: "identity" "stats" "actions";
      gap: 9px;
    }
    .player-result.player-result--with-stats .player-main{ grid-area: identity; }
    .player-result.player-result--with-stats .player-season-stats{
      grid-area: stats;
      width: 100%;
      max-width: 380px;
      justify-self: center;
    }
    .player-result.player-result--with-stats .player-actions{
      grid-area: actions;
      justify-content: flex-start;
      flex-wrap: wrap;
    }
  }

  @media (max-width: 700px) {
    .transfer-movement.transfer-movement--compact{
      grid-template-columns: minmax(0, 1fr) auto;
      grid-template-areas:
        "player value"
        "seller seller"
        "link link"
        "buyer buyer"
        "chips chips";
      min-height: 0;
    }
    .transfer-flow-link{ padding-left: 42px; }
    .transfer-movement--compact .transfer-value{ text-align: right; }
  }

  .club-directory-toolbar{
    display: flex;
    justify-content: flex-end;
    margin-bottom: 14px;
  }
  .club-directory-toolbar .search{
    width: min(100%, 280px);
  }

  #transfersView .transfer-desk{
    padding-top: 0;
  }
  #transfersView .transfer-metrics{
    margin-top: 0;
  }

  .transfer-movement.transfer-movement--compact{
    grid-template-columns: minmax(135px, .9fr) minmax(190px, 1.15fr) minmax(135px, .9fr) auto;
    grid-template-areas: "seller player buyer value";
    min-height: 126px;
    gap: 12px;
    align-items: center;
  }

  .transfer-flow-team{
    display: grid;
    grid-template-columns: 36px minmax(0, 1fr);
    align-items: center;
    gap: 9px;
    min-width: 0;
  }
  .transfer-flow-team--seller{ grid-area: seller; }
  .transfer-flow-team--buyer{ grid-area: buyer; }

  .transfer-flow-team__copy{
    min-width: 0;
    display: grid;
    grid-template-rows: 18px 18px;
    align-items: center;
  }
  .transfer-flow-team__copy strong,
.transfer-flow-team__copy span{
    min-width: 0;
    margin: 0;
    line-height: 18px;
  }
  .transfer-flow-team__copy strong{
    font-size: 12px;
    white-space: normal;
    overflow-wrap: anywhere;
  }
  .transfer-flow-team__copy span{
    color: var(--muted);
    font-size: 10px;
  }
  .transfer-flow-team--seller .transfer-flow-team__copy strong{ grid-row: 1; }
  .transfer-flow-team--seller .transfer-flow-team__copy span{ grid-row: 2; }

  .transfer-flow-team--buyer .transfer-flow-team__copy span{ grid-row: 1; }
  .transfer-flow-team--buyer .transfer-flow-team__copy strong{ grid-row: 2; }

  .transfer-player-stack{
    grid-area: player;
    min-width: 0;
    display: grid;
    align-content: center;
    gap: 7px;
  }
  .transfer-player-stack .transfer-player{
    width: 100%;
  }
  .transfer-player-stack .transfer-clause-row{
    margin: 0;
    padding: 0 5px;
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
  }
  .transfer-player-stack .transfer-clause-row span{
    white-space: normal;
    line-height: 1.15;
  }
  .transfer-movement--compact .transfer-value{
    grid-area: value;
  }

  .player-result.player-result--with-stats{
    grid-template-columns: minmax(0, 1fr) 360px minmax(0, 1fr);
    gap: 16px;
    align-items: center;
  }
  .player-result.player-result--with-stats .player-main{
    justify-self: start;
    width: 100%;
    min-width: 0;
  }
  .player-result.player-result--with-stats .player-season-stats{
    width: 360px;
    justify-self: center;
    margin-inline: auto;
  }
  .player-result.player-result--with-stats .player-actions{
    justify-self: end;
    width: auto;
    min-width: 0;
  }

  #clubHubHeader .fmto-club-header__main{
    grid-template-columns: minmax(320px, 1fr) minmax(210px, 280px);
    justify-content: space-between;
  }
  #clubHubHeader .fmto-club-switch{
    justify-self: end;
    width: min(100%, 280px);
  }

  .club-roster-kpis{
    display: grid;
    grid-template-columns: repeat(9, minmax(116px, 1fr));
    gap: 8px;
    margin: 0 0 14px;
    overflow-x: auto;
    padding: 1px 1px 7px;
    scrollbar-width: thin;
  }
  .club-roster-kpi{
    min-width: 116px;
    min-height: 92px;
    padding: 11px 10px;
    border: 1px solid var(--line);
    border-radius: 13px;
    background: var(--surface);
    display: flex;
    flex-direction: column;
    justify-content: center;
    box-sizing: border-box;
  }
  .club-roster-kpi > span{
    color: var(--muted);
    font-size: 9px;
    font-weight: 850;
    text-transform: uppercase;
    letter-spacing: .045em;
    line-height: 1.2;
    min-height: 22px;
  }
  .club-roster-kpi > strong{
    margin-top: 4px;
    color: var(--text);
    font-size: 18px;
    line-height: 1.05;
  }
  .club-roster-kpi > small{
    margin-top: 5px;
    color: var(--muted);
    font-size: 8px;
    line-height: 1.15;
  }
  .club-roster-kpi.is-squad > strong{ color: #2563eb; }
  .club-roster-kpi.is-reserve > strong{ color: #64748b; }
  .club-roster-kpi.is-under > strong{ color: #d97706; }
  .club-roster-kpi.is-wages > strong{ color: #0f766e; }
  .club-kpi-market-value{
    display: flex;
    flex-wrap: nowrap;
    align-items: baseline;
    gap: 3px;
    font-size: 15px !important;
    white-space: nowrap;
  }
  .club-kpi-market-value b{ font-style: normal; }
  .club-kpi-market-value .positive{ color: #15803d; }
  .club-kpi-market-value .negative{ color: #dc2626; }
  .club-kpi-market-value i,
.club-kpi-market-value em{
    color: var(--muted);
    font-style: normal;
    font-size: 10px;
  }

  .player-profile{
    background: #f4f6fa !important;
    color: #0f1a2b !important;
    border: 1px solid #d3dcea !important;
  }
  .player-profile .profile-hero{
    background: #e7ecf5 !important;
    color: #0f1a2b !important;
    border-bottom: 1px solid #d3dcea !important;
  }
  .player-profile .profile-identity > p,
.player-profile .profile-membership-label,
.player-profile .profile-membership-item span,
.player-profile .profile-rating span{
    color: #5b6b85 !important;
  }
  .player-profile .profile-membership-item{
    background: #e7ecf5 !important;
    border-color: #d3dcea !important;
  }
  .player-profile .profile-membership-item strong,
.player-profile .profile-identity h2,
.player-profile .profile-rating strong{
    color: #0f1a2b !important;
  }

  .profile-tabs{
    height: 52px;
    display: flex;
    align-items: end;
    gap: 4px;
    padding: 0 22px;
    background: #e7ecf5;
    border-bottom: 1px solid #263953;
  }
  .profile-tab{
    position: relative;
    min-height: 44px;
    padding: 0 15px;
    border: 0;
    background: transparent;
    color: #5b6b85;
    font: inherit;
    font-size: 11px;
    font-weight: 850;
    text-transform: uppercase;
    letter-spacing: .045em;
    cursor: pointer;
  }
  .profile-tab:hover{ color: #33445c; }
  .profile-tab.is-active{
    
    color: #0f1a2b;
  }
  .profile-tab.is-active::after{
    content: "";
    position: absolute;
    left: 12px;
    right: 12px;
    bottom: 0;
    height: 3px;
    border-radius: 3px 3px 0 0;
    background: #3984ff;
  }

  .profile-tab-panel{
    background: #f4f6fa;
  }
  .profile-tab-panel[hidden]{
    display: none !important;
  }

  @media (min-width: 861px){
    [data-profile-tab="transfers"],
    [data-profile-panel="transfers"]{
      display: none !important;
    }
  }

  @media (max-width: 860px){
    .stats-team-name,
    .stats-movement-team-name{
      display: none;
    }
    .stats-season-full{
      display: none;
    }
    .stats-season-short{
      display: inline;
      font-weight: 700;
    }
    .stats-movement-fm-group{
      display: none;
    }
  }

  .player-profile .profile-body{
    background: #f4f6fa !important;
  }
  .player-profile .profile-role-panel,
.player-profile .attribute-group,
.player-profile .club-empty{
    background: #e9edf5 !important;
    border-color: #293e5d !important;
    color: #5b6b85 !important;
  }
  .player-profile .attribute-group h3,
.player-profile .role-panel-heading,
.player-profile .attribute-row span,
.player-profile .club-empty span{
    color: #5b6b85 !important;
  }
  .player-profile .attribute-row{
    border-color: #d3dcea !important;
  }
  .player-profile .attribute-row strong,
.player-profile .club-empty strong{
    color: #0f1a2b;
  }

  .profile-career-panel{
    min-height: 300px;
    padding: 20px 22px 24px;
    background: #f4f6fa;
  }
  .profile-career-panel .profile-career-heading{
    margin-bottom: 14px;
  }
  .profile-career-panel .profile-career-heading h3,
.profile-career-panel .career-season span,
.profile-career-panel .career-team strong,
.profile-career-panel .career-cr{
    color: #0f1a2b;
  }
  .profile-career-panel .career-summary span,
.profile-career-panel .career-event{
    background: #e9edf5;
    border-color: #d3dcea;
    color: #5b6b85;
  }
  .profile-career-panel .career-summary strong{
    color: #0f1a2b;
  }
  .profile-career-panel .stats-movement-empty,
.profile-career-panel .stats-movement-meta{
    color: #5b6b85;
  }
  .profile-career-panel .stats-movement-line:hover,
.profile-career-panel .stats-movement-line:focus-visible{
    background: #e9edf5;
  }
  .profile-career-panel .career-season small,
.profile-career-panel .career-type,
.profile-career-panel .career-empty,
.profile-career-panel .career-loading{
    color: #5b6b85;
  }
  .profile-career-panel .career-timeline::before{
    background: #c9d3e2;
  }
  .profile-career-panel .career-event::before{
    border-color: #e9edf5;
    background: #3984ff;
  }
  .profile-career-panel .career-team-fallback{
    background: #e9edf5;
    border-color: #d3dcea;
  }
  .profile-transfers-panel{
    min-height: 300px;
    padding: 20px 22px 24px;
    background: #f4f6fa;
  }
  .profile-transfers-panel .profile-career-heading{
    margin-bottom: 14px;
  }
  .profile-transfers-panel .profile-career-heading h3,
.profile-transfers-panel .career-season span,
.profile-transfers-panel .career-team strong,
.profile-transfers-panel .career-cr{
    color: #0f1a2b;
  }
  .profile-transfers-panel .career-summary span,
.profile-transfers-panel .career-event{
    background: #e9edf5;
    border-color: #d3dcea;
    color: #5b6b85;
  }
  .profile-transfers-panel .career-summary strong{
    color: #0f1a2b;
  }
  .profile-transfers-panel .stats-movement-empty,
.profile-transfers-panel .stats-movement-meta{
    color: #5b6b85;
  }
  .profile-transfers-panel .stats-movement-line:hover,
.profile-transfers-panel .stats-movement-line:focus-visible{
    background: #e9edf5;
  }
  .profile-transfers-panel .career-season small,
.profile-transfers-panel .career-type,
.profile-transfers-panel .career-empty,
.profile-transfers-panel .career-loading{
    color: #5b6b85;
  }
  .profile-transfers-panel .career-timeline::before{
    background: #c9d3e2;
  }
  .profile-transfers-panel .career-event::before{
    border-color: #e9edf5;
    background: #3984ff;
  }
  .profile-transfers-panel .career-team-fallback{
    background: #e9edf5;
    border-color: #d3dcea;
  }

  @media (max-width: 1180px){
    .app-shell {
      display: block !important;
    }
    .sidebar,
    .sidebar.sidebar--collapsed {
      position: sticky !important;
      inset: auto !important;
      top: 0 !important;
      z-index: 120 !important;
      width: 100% !important;
      height: 64px !important;
      min-height: 64px !important;
      padding: 8px 12px !important;
      display: flex !important;
      flex-direction: row !important;
      align-items: center !important;
      gap: 8px !important;
      border-right: 0 !important;
      border-bottom: 1px solid var(--fmto-sidebar-border) !important;
      overflow: hidden !important;
      box-shadow: 0 5px 18px rgba(15,23,42,.08) !important;
    }
    .sidebar .brand,
    .sidebar.sidebar--collapsed .brand {
      width: 48px !important;
      min-width: 48px !important;
      height: 48px !important;
      min-height: 48px !important;
      flex: 0 0 48px !important;
      padding: 0 !important;
    }
    .sidebar .brand-logo,
    .sidebar.sidebar--collapsed .brand-logo {
      width: 46px !important;
      height: 46px !important;
    }
    .sidebar .nav-list,
    .sidebar.sidebar--collapsed .nav-list {
      flex: 1 1 auto !important;
      min-width: 0 !important;
      display: flex !important;
      flex-direction: row !important;
      align-items: center !important;
      gap: 5px !important;
      margin: 0 !important;
      padding: 0 3px !important;
      overflow-x: auto !important;
      overflow-y: hidden !important;
      scrollbar-width: none !important;
    }
    .sidebar .nav-list::-webkit-scrollbar { display: none; }
    .sidebar .nav-group,
    .sidebar.sidebar--collapsed .nav-group { display: contents !important; }
    .sidebar .nav-divider,
    .sidebar-footer,
    .sidebar-collapse { display: none !important; }
    .sidebar .nav-item,
    .sidebar.sidebar--collapsed .nav-item {
      position: relative !important;
      flex: 0 0 46px !important;
      width: 46px !important;
      min-width: 46px !important;
      min-height: 46px !important;
      margin: 0 !important;
      padding: 7px !important;
      display: grid !important;
      grid-template-columns: 1fr !important;
      justify-items: center !important;
    }
    .sidebar .nav-label,
    .sidebar.sidebar--collapsed .nav-label { display: none !important; }
    .sidebar .nav-count {
      position: absolute !important;
      top: 0 !important;
      right: -2px !important;
      min-width: 21px !important;
      height: 16px !important;
      padding: 0 3px !important;
      font-size: 7px !important;
    }
    .main,
    body.fmto-sidebar-collapsed .main {
      margin-left: 0 !important;
      width: 100% !important;
      padding-top: 18px !important;
    }
    #clubHubHeader.fmto-club-header {
      top: 64px !important;
    }
  }

  @media (max-width: 1050px) {
    .player-result.player-result--with-stats{
      grid-template-columns: minmax(0, 1fr) auto;
      grid-template-areas:
        "identity actions"
        "stats stats";
    }
    .player-result.player-result--with-stats .player-main{ grid-area: identity; }
    .player-result.player-result--with-stats .player-actions{ grid-area: actions; }
    .player-result.player-result--with-stats .player-season-stats{
      grid-area: stats;
      width: min(100%, 360px);
      justify-self: center;
      border-top: 1px solid var(--line);
      padding-top: 6px;
    }

    #clubHubHeader .fmto-club-header__main{
      grid-template-columns: minmax(260px, 1fr) minmax(190px, 250px);
    }
  }

  @media (max-width: 700px) {
    .transfer-movement.transfer-movement--compact{
      grid-template-columns: minmax(0, 1fr) auto;
      grid-template-areas:
        "player value"
        "seller seller"
        "buyer buyer";
      min-height: 0;
    }
    .transfer-player-stack{ grid-area: player; }
    .transfer-flow-team--seller,
.transfer-flow-team--buyer{
      min-height: 48px;
    }

    .profile-tabs{
      padding-inline: 10px;
    }
    .profile-tab{
      flex: 1 1 50%;
      padding-inline: 6px;
      font-size: 10px;
    }

    #clubHubHeader .fmto-club-header__main{
      grid-template-columns: 1fr;
    }
    #clubHubHeader .fmto-club-switch{
      width: 100%;
      justify-self: stretch;
    }
  }

  @media (min-width: 1440px){
    .transfer-operations {
      grid-template-columns: repeat(2, minmax(0, 1fr));
      align-items: stretch;
    }
  }

  @media (max-width: 1439px) {
    .transfer-operations{
      grid-template-columns: 1fr;
    }
  }

  .transfer-operation{
    min-width: 0;
  }

  .transfer-operation-body{
    display: grid;
    grid-auto-rows: minmax(126px, auto);
    align-content: start;
  }

  .transfer-movement.transfer-movement--aligned{
    width: 100%;
    min-width: 0;
    min-height: 126px;
    display: grid;
    grid-template-columns: minmax(118px, 21%) minmax(205px, 34%) minmax(118px, 24%) minmax(76px, 13%);
    gap: 12px;
    align-items: center;
    padding: 14px 15px;
    box-sizing: border-box;
  }

  .transfer-movement--aligned .transfer-col{
    min-width: 0;
  }

  .transfer-movement--aligned .transfer-col--seller,
.transfer-movement--aligned .transfer-col--buyer{
    display: grid;
    grid-template-columns: 36px minmax(0, 1fr);
    gap: 9px;
    align-items: center;
  }

  .transfer-movement--aligned .transfer-col__copy{
    min-width: 0;
    display: grid;
    grid-template-rows: minmax(18px, auto) minmax(18px, auto);
    align-content: center;
  }

  .transfer-movement--aligned .transfer-col__copy strong,
.transfer-movement--aligned .transfer-col__copy small{
    display: block;
    min-width: 0;
    margin: 0;
    line-height: 1.2;
    overflow-wrap: anywhere;
  }

  .transfer-movement--aligned .transfer-col__copy strong{
    color: var(--text);
    font-size: 12px;
  }

  .transfer-movement--aligned .transfer-col__copy small{
    color: var(--muted);
    font-size: 9px;
  }

  .transfer-movement--aligned .transfer-col--seller .transfer-col__copy strong{ grid-row: 1; }
  .transfer-movement--aligned .transfer-col--seller .transfer-col__copy small{ grid-row: 2; }

  .transfer-movement--aligned .transfer-col--buyer .transfer-col__copy small{ grid-row: 1; }
  .transfer-movement--aligned .transfer-col--buyer .transfer-col__copy strong{ grid-row: 2; }

  .transfer-movement--aligned .transfer-col--player{
    display: grid;
    align-content: center;
    gap: 5px;
  }

  .transfer-player.transfer-player--aligned{
    width: 100%;
    min-width: 0;
    min-height: 58px;
    padding: 4px;
  }

  .transfer-player--aligned .transfer-player-copy{
    min-width: 0;
  }

  .transfer-player--aligned .transfer-player-copy strong,
.transfer-player--aligned .transfer-player-copy small{
    white-space: normal !important;
    overflow: visible !important;
    text-overflow: clip !important;
    overflow-wrap: anywhere;
    line-height: 1.18;
  }

  .transfer-movement--aligned .transfer-clause-row{
    width: 100%;
    margin: 0;
    padding: 0 4px;
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
  }

  .transfer-movement--aligned .transfer-clause-row span{
    width: auto !important;
    min-width: 0 !important;
    height: auto !important;
    min-height: 24px;
    display: inline-flex;
    align-items: center;
    padding: 4px 8px !important;
    border-radius: 999px !important;
    white-space: normal !important;
    line-height: 1.12;
  }

  .transfer-movement--aligned .transfer-col--value{
    justify-self: end;
    text-align: right;
    min-width: 72px;
  }

  @media (max-width: 760px) {
    .transfer-operation-body{
      grid-auto-rows: auto;
    }
    .transfer-movement.transfer-movement--aligned{
      grid-template-columns: minmax(0, 1fr) auto;
      grid-template-areas:
        "player value"
        "seller seller"
        "buyer buyer";
      gap: 10px;
      min-height: 0;
    }
    .transfer-col--player{ grid-area: player; }
    .transfer-col--seller{ grid-area: seller; }
    .transfer-col--buyer{ grid-area: buyer; }
    .transfer-col--value{ grid-area: value; }
  }

  .club-manager-card{
    display: grid;
    grid-template-columns: minmax(190px, .8fr) minmax(0, 2.2fr);
    gap: 18px;
    align-items: center;
    margin: 0 0 10px;
    padding: 12px 14px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: var(--surface);
    box-shadow: 0 8px 22px rgba(15, 23, 42, .035);
  }

  .club-manager-card__identity{
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 11px;
  }

  .club-manager-avatar{
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
    display: grid;
    place-items: center;
    border-radius: 12px;
    background: #eaf1ff;
    color: #2563eb;
    font-weight: 900;
    font-size: 17px;
  }

  .club-manager-card__identity > div{
    min-width: 0;
    display: grid;
  }

  .club-manager-card__identity span:not(.club-manager-avatar),
.club-manager-card__meta dt{
    color: var(--muted);
    font-size: 8px;
    font-weight: 850;
    text-transform: uppercase;
    letter-spacing: .055em;
  }

  .club-manager-card__identity strong{
    color: var(--text);
    font-size: 14px;
    overflow-wrap: anywhere;
  }

  .club-manager-card__identity small{
    color: var(--muted);
    font-size: 9px;
  }

  .club-manager-card__meta{
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
    margin: 0;
  }

  .club-manager-card__meta > div{
    min-width: 0;
    padding-left: 10px;
    border-left: 1px solid var(--line);
  }

  .club-manager-card__meta dt,
.club-manager-card__meta dd{
    margin: 0;
  }

  .club-manager-card__meta dd{
    margin-top: 3px;
    color: var(--text);
    font-size: 11px;
    font-weight: 750;
    overflow-wrap: anywhere;
  }

  .club-manager-contact{
    min-width: 0;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: inherit;
    text-decoration: none;
  }

  .club-manager-contact.is-telegram{
    color: #1677d2;
  }

  .club-manager-contact.is-telegram:hover{
    text-decoration: underline;
  }

  .club-manager-contact.is-disabled{
    color: var(--muted);
  }

  .roster-out-team{
    display: inline-flex;
    align-items: center;
    gap: 4px;
    min-width: 0;
  }

  .roster-out-team__label{
    color: var(--muted);
    font-size: 7px;
    font-weight: 900;
    letter-spacing: .04em;
  }

  .roster-out-team-logo,
.roster-out-team-fallback{
    width: 26px;
    height: 26px;
    flex: 0 0 26px;
    object-fit: contain;
    border-radius: 7px;
    background: var(--surface);
  }

  .roster-out-team-fallback{
    display: grid;
    place-items: center;
    color: #fff;
    font-size: 7px;
    font-weight: 900;
  }

  .reserve-type-group > h3 > span.danger{
    color: #dc2626;
    background: #fee2e2;
  }

  .roster-market-stack{
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    min-width: 0;
  }

  .roster-market-stack .roster-status-pill{
    margin: 0;
  }

  .roster-market-stack .market-badges{
    margin: 0;
    justify-content: center;
  }

  .roster-card-side{
    align-items: center;
  }

  .player-result.player-result--with-stats .player-actions{
    align-items: center;
  }

  .compare-summary-card .roster-market-stack{
    margin-top: 6px;
    align-items: flex-start;
  }

  #clubRosterOverviewAnchor{
    scroll-margin-top: 210px;
  }

  @media (max-width: 1050px) {
    .club-manager-card{
      grid-template-columns: 1fr;
      gap: 10px;
    }

    .club-manager-card__meta{
      grid-template-columns: repeat(4, minmax(120px, 1fr));
      overflow-x: auto;
      padding-bottom: 3px;
    }
  }

  @media (max-width: 620px) {
    .club-manager-card__meta{
      grid-template-columns: repeat(2, minmax(0, 1fr));
      overflow: visible;
    }

    .club-manager-card__meta > div:nth-child(odd){
      border-left: 0;
      padding-left: 0;
    }
  }

  .club-roster-kpis{
    grid-template-columns: repeat(15, minmax(104px, 1fr));
    gap: 7px;
  }
  .club-roster-kpi{ min-width: 104px; }
  .club-roster-kpi.is-market-rule > strong{ color: #315fbe; }
  .club-roster-kpi.is-at-limit{
    border-color: #f1bf63;
    background: color-mix(in srgb, var(--surface) 92%, #f59e0b);
  }
  .club-roster-kpi.is-over-limit{
    border-color: #ef8c8c;
    background: color-mix(in srgb, var(--surface) 88%, #ef4444);
  }
  .club-roster-kpi.is-over-limit > strong{ color: #dc2626; }

  .management-table-shell{ min-width: 0; }
  .management-table-heading{
    display: flex;
    justify-content: space-between;
    align-items: end;
    gap: 16px;
    margin-bottom: 12px;
  }
  .management-table-heading h2{ margin: 3px 0 0; font-size: 24px; }
  .management-table-heading > span{ color: var(--muted); font-size: 13px; }

  .data-table-scroll{
    width: 100%;
    overflow: auto;
    border: 1px solid var(--line);
    border-radius: 15px;
    background: var(--surface);
    box-shadow: 0 12px 30px rgba(15, 23, 42, .04);
  }
  .management-table{
    width: 100%;
    min-width: 1180px;
    border-collapse: separate;
    border-spacing: 0;
    color: var(--text);
    font-size: 13.5px;
  }
  .finance-table{ min-width: 2350px; }
  .managers-table{ min-width: 980px; }
  .management-table th,
.management-table td{
    padding: 10px 11px;
    border-right: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    vertical-align: middle;
    white-space: nowrap;
  }
  .management-table th:last-child,
.management-table td:last-child{ border-right: 0; }
  .management-table tbody tr:last-child td{ border-bottom: 0; }
  .management-table thead th{
    position: sticky;
    top: 0;
    z-index: 3;
    min-width: 112px;
    padding: 8px;
    background: color-mix(in srgb, var(--surface) 96%, #2563eb);
  }
  .management-table thead th:first-child{
    min-width: 190px;
    left: 0;
    z-index: 5;
  }
  .management-table tbody td:first-child{
    position: sticky;
    left: 0;
    z-index: 2;
    background: var(--surface);
  }

  .data-table-sort{
    width: 100%;
    min-height: 28px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
    padding: 0 2px;
    border: 0;
    background: transparent;
    color: var(--text);
    font: inherit;
    font-size: 9px;
    font-weight: 900;
    letter-spacing: .035em;
    text-transform: uppercase;
    cursor: pointer;
  }
  .data-sort-arrow{ color: #9aa8ba; font-size: 10px; }
  .data-sort-arrow.is-active{ color: #2563eb; }
  .data-table-filter{
    width: 100%;
    height: 29px;
    margin-top: 4px;
    padding: 0 7px;
    border: 1px solid var(--line);
    border-radius: 7px;
    background: var(--surface);
    color: var(--text);
    font: inherit;
    font-size: 9px;
    outline: none;
  }
  .data-table-filter:focus{
    border-color: #7ca2f7;
    box-shadow: 0 0 0 2px rgba(37,99,235,.10);
  }
  .management-table tbody tr:hover td,
.management-table tbody tr:hover td:first-child{
    background: color-mix(in srgb, var(--surface) 94%, #2563eb);
  }

  .data-team-cell{
    display: flex;
    align-items: center;
    gap: 8px;
  }
  .data-team-logo{
    width: 28px;
    height: 28px;
    flex: 0 0 28px;
    object-fit: contain;
    border-radius: 7px;
    background: var(--surface);
  }
  .data-team-logo--fallback{ display: inline-block; background: #eef2f7; }
  .data-number{ text-align: right; font-variant-numeric: tabular-nums; font-weight: 760; }
  .data-muted{ color: var(--muted); }
  .data-positive{ color: #15803d; }
  .data-negative{ color: #dc2626; }
  .data-limit-full{ color: #b26c00; background: #fff9ea; }
  .data-limit-over{ color: #c92020; background: #fff1f1; }
  .data-contact-link{ color: #1677d2; font-weight: 750; text-decoration: none; }
  .data-contact-link:hover{ text-decoration: underline; }
  .management-source-note{ margin: 9px 2px 0; color: var(--muted); font-size: 9px; }

  .nav-icon--finance,
.nav-icon--managers{ color: #7a8799; }
  .nav-item.active .nav-icon--finance,
.nav-item.active .nav-icon--managers{ color: var(--fmto-sidebar-accent); }

  @media (max-width: 860px) {
    .management-table-heading{
      align-items: flex-start;
      flex-direction: column;
      gap: 4px;
    }
    .data-table-scroll{ border-radius: 12px; }
    .management-table{ font-size: 12.5px; }
    .management-table th,
.management-table td{ padding: 8px 9px; }
  }

  @media (max-width: 720px){
    
    html, body { max-width: 100%; overflow-x: clip; }

    .sidebar,
    .sidebar.sidebar--collapsed {
      height: 56px !important;
      min-height: 56px !important;
      padding: 6px 8px !important;
      gap: 5px !important;
    }
    .sidebar .brand,
    .sidebar.sidebar--collapsed .brand {
      width: 42px !important;
      min-width: 42px !important;
      height: 42px !important;
      min-height: 42px !important;
      flex-basis: 42px !important;
    }
    .sidebar .brand-logo,
    .sidebar.sidebar--collapsed .brand-logo {
      width: 40px !important;
      height: 40px !important;
      max-width: 40px !important;
      max-height: 40px !important;
    }
    .sidebar .nav-list,
    .sidebar.sidebar--collapsed .nav-list {
      gap: 2px !important;
      padding: 0 !important;
      scroll-snap-type: x proximity;
    }
    .sidebar .nav-item,
    .sidebar.sidebar--collapsed .nav-item {
      flex: 0 0 40px !important;
      width: 40px !important;
      min-width: 40px !important;
      min-height: 40px !important;
      height: 40px !important;
      padding: 7px !important;
      border-radius: 11px !important;
      scroll-snap-align: center;
    }
    .sidebar .nav-icon {
      width: 22px !important;
      height: 22px !important;
    }
    .sidebar .nav-icon svg {
      width: 22px !important;
      height: 22px !important;
    }
    .sidebar .nav-count {
      top: -2px !important;
      right: -3px !important;
      min-width: 20px !important;
      height: 15px !important;
      font-size: 7px !important;
      line-height: 15px !important;
    }

    .main,
    body.fmto-sidebar-collapsed .main {
      padding: 12px 10px 34px !important;
    }
    .topbar {
      display: grid !important;
      grid-template-columns: minmax(0, 1fr) !important;
      align-items: stretch !important;
      gap: 9px !important;
      margin-bottom: 14px !important;
    }
    .topbar > div:first-child {
      min-width: 0;
    }
    .topbar .eyebrow {
      display: none !important;
    }
    .topbar h1 {
      font-size: 25px !important;
      line-height: 1.05 !important;
      letter-spacing: -0.035em !important;
    }
    .topbar-actions {
      display: grid !important;
      grid-template-columns: 42px minmax(0, 1fr) !important;
      align-items: end !important;
      gap: 8px !important;
      width: 100% !important;
    }
    .app-refresh-button {
      width: 42px !important;
      min-width: 42px !important;
      height: 42px !important;
      padding: 0 !important;
      border-radius: 11px !important;
      align-self: end;
    }
    .app-refresh-button > span:first-child {
      font-size: 19px !important;
    }
    .app-refresh-label { display: none !important; }
    .season-control {
      width: 100% !important;
      min-width: 0 !important;
      gap: 4px !important;
      font-size: 9px !important;
      line-height: 1 !important;
      text-transform: uppercase;
      letter-spacing: .05em;
    }
    .season-control select {
      width: 100% !important;
      min-width: 0 !important;
      height: 42px !important;
      padding: 0 34px 0 11px !important;
      border-radius: 11px !important;
      font-size: 13px !important;
      font-weight: 800 !important;
      text-transform: none;
      letter-spacing: 0;
    }
    #clubHubHeader.fmto-club-header { top: 56px !important; }
  }

  @media (max-width: 390px) {
    .sidebar .brand,
.sidebar.sidebar--collapsed .brand{
      width: 38px !important;
      min-width: 38px !important;
      flex-basis: 38px !important;
    }
    .sidebar .brand-logo,
.sidebar.sidebar--collapsed .brand-logo{
      width: 36px !important;
      height: 36px !important;
    }
    .sidebar .nav-item,
.sidebar.sidebar--collapsed .nav-item{
      flex-basis: 38px !important;
      width: 38px !important;
      min-width: 38px !important;
    }
    .main,
body.fmto-sidebar-collapsed .main{ padding-inline: 8px !important; }
    .topbar h1{ font-size: 23px !important; }
  }

  .club-overview-identity{
    align-items: start;
    gap: 14px;
  }
  .club-overview-identity .club-manager-card,
.club-overview-identity .club-stadium-card{
    height: auto;
    margin: 0;
  }
  .club-manager-card,
.club-stadium-card{
    min-height: 0;
  }
  .club-manager-card{
    min-height: 240px;
    align-content: space-between;
  }
  .club-stadium-card{
    grid-template-columns: minmax(0, 1.2fr) minmax(250px, .9fr);
    min-height: 240px;
  }
  .club-stadium-card__media,
.club-stadium-card__photo{
    min-height: 240px;
    height: 240px;
  }
  .club-stadium-card__content{
    padding: 14px 16px;
  }

  .club-roster-kpis{
    display: grid;
    grid-template-columns: repeat(8, minmax(0, 1fr));
    gap: 10px;
    overflow: visible;
  }
  .club-roster-kpi{
    min-width: 0;
    min-height: 92px;
    padding: 12px 11px;
    font-family: var(--font-condensed);
  }
  .club-roster-kpi > span{
    font-size: 10px;
    line-height: 1.05;
    font-weight: 900;
    letter-spacing: .06em;
  }
  .club-roster-kpi > strong{
    font-size: 18px;
    font-weight: 900;
    letter-spacing: -.02em;
  }
  .club-roster-kpi > small{
    font-size: 9px;
    line-height: 1.1;
  }

  .club-roster-split{
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(300px, 1fr);
    gap: 14px;
    align-items: start;
  }
  .club-roster-side{
    display: grid;
    gap: 14px;
    align-content: start;
  }

  .club-top3-panel{
    padding: 0;
    overflow: hidden;
    border-radius: 22px;
    border-color: #243b60;
    background:
      radial-gradient(circle at top left, rgba(250, 204, 21, .16), transparent 26%),
      linear-gradient(135deg, #0b1a31, #132948 58%, #0d213c);
    box-shadow: 0 16px 34px rgba(9, 18, 34, .18);
  }
  .club-top3-panel .section-heading{
    margin: 0;
    padding: 14px 16px 10px;
    border-bottom: 1px solid rgba(255, 255, 255, .12);
  }
  .club-top3-panel .section-heading h2{
    margin: 0;
    color: #fff;
    font-size: 18px;
    font-weight: 900;
    letter-spacing: -.02em;
  }
  .club-top3-board{
    display: grid;
    gap: 10px;
    padding: 12px;
  }
  .club-top3-secondary{
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }
  .club-top3-card{
    position: relative;
    display: grid;
    grid-template-columns: auto 70px minmax(0, 1fr);
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 14px 14px 14px 12px;
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: 18px;
    background: linear-gradient(135deg, rgba(255,255,255,.08), rgba(255,255,255,.03));
    color: #fff;
    text-align: left;
    cursor: pointer;
  }
  .club-top3-card--primary{
    grid-template-columns: auto 108px minmax(0, 1fr);
    min-height: 136px;
    padding: 16px;
    border-color: rgba(244, 186, 58, .46);
    background: linear-gradient(135deg, rgba(255,255,255,.10), rgba(21, 46, 85, .75));
  }
  .club-top3-card__face .player-face-stack{ display: inline-grid; }
  .club-top3-card__face .top3-face{
    width: 56px;
    height: 56px;
    border-radius: 16px;
  }
  .club-top3-card__face .top3-face--primary{
    width: 96px;
    height: 96px;
    border-radius: 22px;
  }
  .club-top3-card__body{
    display: grid;
    min-width: 0;
    gap: 2px;
  }
  .club-top3-card__name{
    color: #fff;
    font-size: 15px;
    line-height: 1.06;
    font-weight: 900;
    letter-spacing: -.02em;
    overflow-wrap: anywhere;
  }
  .club-top3-card--primary .club-top3-card__name{
    font-size: 18px;
  }
  .club-top3-card__label{
    color: rgba(255,255,255,.74);
    font-family: var(--font-condensed);
    font-size: 10px;
    font-weight: 900;
    letter-spacing: .08em;
    text-transform: uppercase;
  }
  .club-top3-card__value{
    color: #ffd053;
    font-size: 20px;
    line-height: 1;
    font-weight: 900;
    letter-spacing: -.03em;
  }
  .club-top3-card--primary .club-top3-card__value{
    font-size: 28px;
  }
  .club-top3-medal{
    position: relative;
    width: 28px;
    height: 28px;
    flex: 0 0 28px;
    border-radius: 999px;
    display: inline-grid;
    place-items: center;
    font-size: 12px;
    font-weight: 900;
    color: #1f2937;
    box-shadow: inset 0 0 0 1px rgba(255,255,255,.35), 0 4px 10px rgba(2, 6, 23, .18);
  }
  .club-top3-medal::before,
.club-top3-medal::after{
    content: "";
    position: absolute;
    top: 23px;
    width: 8px;
    height: 9px;
    clip-path: polygon(50% 100%, 0 0, 100% 0);
  }
  .club-top3-medal::before{ left: 5px; background: rgba(255,255,255,.85); }
  .club-top3-medal::after{ right: 5px; background: rgba(255,255,255,.58); }
  .club-top3-medal.is-gold{ background: linear-gradient(135deg, #ffe080, #f5b91d); }
  .club-top3-medal.is-silver{ background: linear-gradient(135deg, #f8fafc, #cbd5e1); }
  .club-top3-medal.is-bronze{ background: linear-gradient(135deg, #efc09a, #b96d2e); }
  .club-top3-medal span{ position: relative; z-index: 1; }

  @media (max-width: 1450px) {
    .club-roster-kpis{ grid-template-columns: repeat(4, minmax(0, 1fr)); }
  }
  @media (max-width: 1180px) {
    .club-overview-identity{
      grid-template-columns: 1fr;
    }
    .club-manager-card,
.club-stadium-card{
      min-height: 0;
    }
    .club-stadium-card{
      grid-template-columns: minmax(170px, .95fr) minmax(0, 1.05fr);
    }
    .club-roster-split{
      grid-template-columns: 1fr;
    }
    .club-top3-secondary{
      grid-template-columns: repeat(2, minmax(0, 1fr));
    }
  }
  @media (max-width: 820px) {
    .club-stadium-card__media,
.club-stadium-card__photo{
      min-height: 190px;
      height: 190px;
    }
    .club-top3-card--primary{
      grid-template-columns: auto 84px minmax(0, 1fr);
      min-height: 120px;
    }
    .club-top3-card__face .top3-face--primary{
      width: 76px;
      height: 76px;
      border-radius: 18px;
    }
  }
  @media (max-width: 620px) {
    .club-roster-kpis{
      grid-template-columns: repeat(2, minmax(0, 1fr));
      gap: 8px;
    }
    .club-roster-kpi{
      min-height: 84px;
      padding: 10px 9px;
    }
    .club-stadium-card{
      grid-template-columns: 1fr;
    }
    .club-stadium-card__media,
.club-stadium-card__photo{
      min-height: 150px;
      height: 150px;
    }
    .club-top3-secondary{
      grid-template-columns: 1fr;
    }
    .club-top3-card,
.club-top3-card--primary{
      grid-template-columns: auto 72px minmax(0, 1fr);
      min-height: 0;
      padding: 12px;
    }
    .club-top3-card__face .top3-face,
.club-top3-card__face .top3-face--primary{
      width: 62px;
      height: 62px;
      border-radius: 16px;
    }
    .club-top3-card__name,
.club-top3-card--primary .club-top3-card__name{
      font-size: 16px;
    }
    .club-top3-card__value,
.club-top3-card--primary .club-top3-card__value{
      font-size: 24px;
    }
  }

  .club-overview-identity{
    display: grid;
    grid-template-columns: minmax(190px, 1fr) minmax(350px, 2fr) minmax(190px, 1fr) minmax(350px, 2fr);
    gap: 12px;
    align-items: stretch;
    margin-bottom: 14px;
  }
  .club-overview-identity > div{ min-width: 0; }
  .club-overview-card,
.club-overview-identity .club-top3-panel{
    height: 100%;
    min-height: 258px;
    max-height: 258px;
  }

  .club-overview-card__title{
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: var(--muted);
    font-size: 9px;
    font-weight: 900;
    line-height: 1;
    letter-spacing: .085em;
    text-transform: uppercase;
  }
  .club-overview-svg{
    width: 24px;
    height: 24px;
    flex: 0 0 24px;
    display: inline-grid;
    place-items: center;
    border-radius: 8px;
    background: rgba(37, 99, 235, .09);
    color: #2563eb;
  }
  .club-overview-svg svg{
    width: 16px;
    height: 16px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
  }

  .club-overview-identity__manager .club-manager-card{
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 12px;
    padding: 16px;
    overflow: hidden;
    border: 1px solid #173153;
    background:
      radial-gradient(circle at 0 0, rgba(225, 29, 72, .30), transparent 34%),
      linear-gradient(145deg, #08182d 0 70%, #102743 70% 100%);
  }
  .club-overview-identity__manager .club-overview-card__title{ color: #d5e1f2; }
  .club-overview-identity__manager .club-overview-svg{
    background: rgba(255,255,255,.10);
    color: #fff;
  }
  .club-overview-identity__manager .club-manager-card__identity{
    align-items: center;
    gap: 10px;
  }
  .club-overview-identity__manager .club-manager-avatar{
    width: 50px;
    height: 50px;
    flex-basis: 50px;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,.20);
    background: linear-gradient(145deg, rgba(244,63,94,.42), rgba(37,99,235,.28));
    color: #fff;
  }
  .club-overview-identity__manager .club-manager-card__identity strong{
    color: #fff;
    font-size: 22px;
    line-height: 1;
  }
  .club-overview-identity__manager .club-manager-card__identity small{
    margin-top: 4px;
    color: #c5d3e7;
    font-size: 9px;
    font-weight: 800;
    text-transform: uppercase;
  }
  .club-overview-identity__manager .club-manager-card__meta{
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0;
    overflow: visible;
    border-top: 1px solid rgba(255,255,255,.14);
    padding-top: 10px;
  }
  .club-overview-identity__manager .club-manager-card__meta > div{
    padding: 6px 7px;
    border-left: 0;
  }
  .club-overview-identity__manager .club-manager-card__meta dt{ color: #8fa7c6; }
  .club-overview-identity__manager .club-manager-card__meta dd{ color: #fff; font-size: 10px; }
  .club-overview-identity__manager .club-manager-contact.is-telegram{ color: #5eb5ff; }

  .club-overview-identity__stadium .club-stadium-card{
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: minmax(0, 1fr) auto;
    padding: 0;
    overflow: hidden;
    border: 1px solid #173153;
    background: #091b31;
  }
  .club-overview-identity__stadium .club-stadium-card__media{
    min-height: 0;
    height: auto;
  }
  .club-overview-identity__stadium .club-stadium-card__photo{
    width: 100%;
    height: 178px;
    min-height: 178px;
    object-fit: cover;
  }
  .club-overview-identity__stadium .club-stadium-card__content{
    display: grid;
    grid-template-columns: minmax(145px, .9fr) minmax(0, 1.5fr);
    gap: 0;
    padding: 0;
    min-height: 78px;
    background: #0a1d35;
  }
  .club-overview-identity__stadium .club-stadium-card__heading{
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    margin: 0;
    padding: 12px 28px 12px 16px;
    background: #e30613;
  }
  .club-overview-identity__stadium .club-stadium-card__heading::after{
    content: "";
    position: absolute;
    top: 0;
    right: -28px;
    width: 56px;
    height: 100%;
    background: #e30613;
    transform: skewX(-26deg);
    transform-origin: bottom;
  }
  .club-overview-identity__stadium .club-stadium-card__heading > *{ position: relative; z-index: 1; }
  .club-overview-identity__stadium .club-overview-card__title{ color: #fff; }
  .club-overview-identity__stadium .club-overview-svg{
    width: 22px;
    height: 22px;
    flex-basis: 22px;
    background: rgba(255,255,255,.15);
    color: #fff;
  }
  .club-overview-identity__stadium .club-stadium-card__heading strong{
    color: #fff;
    font-size: 19px;
  }
  .club-overview-identity__stadium .club-stadium-card__meta{
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: center;
    gap: 0;
    margin: 0;
    padding: 10px 12px 10px 38px;
  }
  .club-overview-identity__stadium .club-stadium-card__meta > div{
    padding-left: 10px;
    border-left: 1px solid rgba(255,255,255,.12);
  }
  .club-overview-identity__stadium .club-stadium-card__meta dt{ color: #92a8c5; }
  .club-overview-identity__stadium .club-stadium-card__meta dd{ color: #fff; }

  .club-info-rosa-card{
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 15px;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: var(--surface);
    box-shadow: 0 10px 28px rgba(31,49,79,.05);
  }
  .club-info-rosa-card__rows{
    display: grid;
    grid-template-rows: repeat(4, minmax(0, 1fr));
    gap: 6px;
    min-height: 0;
    flex: 1;
  }
  .club-info-rosa-item{
    display: grid;
    grid-template-columns: 28px minmax(0, 1fr) auto;
    align-items: center;
    gap: 7px;
    min-width: 0;
    padding: 7px 0;
    border-top: 1px solid var(--line);
  }
  .club-info-rosa-item:first-child{ border-top: 0; }
  .club-info-rosa-item .club-overview-svg{
    width: 26px;
    height: 26px;
    flex-basis: 26px;
  }
  .club-info-rosa-item > span:not(.club-overview-svg){
    min-width: 0;
    color: var(--muted);
    font-size: 8px;
    font-weight: 900;
    line-height: 1.08;
    letter-spacing: .045em;
    text-transform: uppercase;
  }
  .club-info-rosa-item > strong{
    color: var(--text);
    font-size: 13px;
    font-weight: 900;
    white-space: nowrap;
  }

  .club-overview-identity__top3 .club-top3-panel{
    min-height: 258px;
    max-height: 258px;
  }
  .club-overview-identity__top3 .club-top3-panel .section-heading{
    padding: 12px 14px 8px;
  }
  .club-overview-identity__top3 .club-top3-board{
    gap: 8px;
    padding: 9px 10px 10px;
  }
  .club-overview-identity__top3 .club-top3-card--primary{
    min-height: 110px;
    grid-template-columns: auto 78px minmax(0,1fr);
    padding: 10px 12px;
  }
  .club-overview-identity__top3 .club-top3-card__face .top3-face--primary{
    width: 72px;
    height: 72px;
    border-radius: 17px;
  }
  .club-overview-identity__top3 .club-top3-card{
    padding: 9px;
    grid-template-columns: auto 44px minmax(0,1fr);
    gap: 7px;
  }
  .club-overview-identity__top3 .club-top3-card__face .top3-face{
    width: 42px;
    height: 42px;
    border-radius: 12px;
  }
  .club-overview-identity__top3 .club-top3-card__name,
.club-overview-identity__top3 .club-top3-card--primary .club-top3-card__name{
    font-family: inherit;
    font-size: 14px;
    font-weight: 900;
  }
  .club-overview-identity__top3 .club-top3-card--primary .club-top3-card__name{ font-size: 17px; }
  .club-overview-identity__top3 .club-top3-card__value{ font-size: 19px; }
  .club-overview-identity__top3 .club-top3-card--primary .club-top3-card__value{ font-size: 27px; }

  .club-roster-split{
    grid-template-columns: minmax(0, 2fr) minmax(300px, 1fr);
  }

  @media (max-width: 1450px) {
    .club-overview-identity{
      grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .club-overview-card,
.club-overview-identity .club-top3-panel{
      min-height: 250px;
      max-height: none;
    }
  }

  @media (max-width: 900px) {
    .club-overview-identity{
      grid-template-columns: 1fr;
    }
    .club-overview-card,
.club-overview-identity .club-top3-panel{
      min-height: 0;
      max-height: none;
    }
    .club-overview-identity__manager .club-manager-card__meta{
      grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .club-roster-split{ grid-template-columns: 1fr; }
  }

  @media (max-width: 620px) {
    .club-overview-identity__stadium .club-stadium-card__photo{
      height: 150px;
      min-height: 150px;
    }
    .club-overview-identity__stadium .club-stadium-card__content{
      grid-template-columns: 1fr;
    }
    .club-overview-identity__stadium .club-stadium-card__heading::after{ display: none; }
    .club-overview-identity__stadium .club-stadium-card__meta{
      padding: 10px 12px;
    }
    .club-info-rosa-item > strong{ font-size: 14px; }
  }

  .club-command-overview{
    display: grid;
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    gap: 14px;
    margin-bottom: 14px;
    align-items: stretch;
  }

  .club-kpi-domain{
    min-width: 0;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: var(--surface);
    box-shadow: 0 10px 28px rgba(31,49,79,.045);
  }

  .club-kpi-domain--roster{
    background:
      linear-gradient(180deg, rgba(37,99,235,.035), transparent 34%),
      var(--surface);
  }

  .club-kpi-domain--finance{
    background:
      linear-gradient(180deg, rgba(15,118,110,.035), transparent 34%),
      var(--surface);
  }

  .club-kpi-domain__heading{
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 12px;
    padding: 0 2px;
  }

  .club-kpi-domain__heading .eyebrow{
    margin: 0 0 3px;
    font-size: 8px;
    line-height: 1;
    letter-spacing: .11em;
  }

  .club-kpi-domain__heading h2{
    margin: 0;
    color: var(--text);
    font-size: 18px;
    line-height: 1.1;
  }

  .club-kpi-domain__heading > span{
    color: var(--muted);
    font-size: 9px;
    font-weight: 800;
    letter-spacing: .04em;
    text-align: right;
    text-transform: uppercase;
  }

  .club-domain-primary{
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 9px;
  }

  .club-command-overview .club-roster-kpi{
    min-width: 0;
    min-height: 0;
    border-radius: 14px;
    box-shadow: none;
  }

  .club-command-overview .club-roster-kpi.is-primary{
    min-height: 104px;
    padding: 13px 12px;
    justify-content: flex-start;
    gap: 5px;
  }

  .club-command-overview .club-roster-kpi.is-primary > span{
    font-size: 9px;
    letter-spacing: .075em;
  }

  .club-command-overview .club-roster-kpi.is-primary > strong{
    margin-top: 4px;
    font-size: 25px;
    line-height: 1;
  }

  .club-command-overview .club-roster-kpi.is-primary > small{
    margin-top: auto;
    font-size: 8px;
  }

  .club-command-overview .club-domain-primary--roster .club-roster-kpi.is-squad{
    border-color: rgba(37,99,235,.34);
    background: linear-gradient(145deg, rgba(37,99,235,.07), rgba(37,99,235,.015));
  }

  .club-command-overview .club-domain-primary--finance .club-roster-kpi.is-wages{
    border-color: rgba(15,118,110,.22);
    background: linear-gradient(145deg, rgba(15,118,110,.065), rgba(15,118,110,.01));
  }

  .club-command-overview .club-roster-kpi.is-delta.is-positive > strong{ color: #15803d; }
  .club-command-overview .club-roster-kpi.is-delta.is-negative > strong{ color: #dc2626; }
  .club-command-overview .club-roster-kpi.is-delta.is-neutral > strong{ color: var(--text); }

  .club-market-moves{
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 9px;
    margin-top: 9px;
  }

  .club-move-group{
    min-width: 0;
    padding: 9px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: color-mix(in srgb, var(--surface) 94%, #315fbe 6%);
  }

  .club-move-group > summary{
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    min-height: 22px;
    padding: 0 2px 7px;
    color: var(--muted);
    cursor: default;
    list-style: none;
    font-size: 8px;
    font-weight: 900;
    letter-spacing: .09em;
    text-transform: uppercase;
  }

  .club-move-group > summary::-webkit-details-marker{ display: none; }

  .club-move-group > summary b{
    display: inline-grid;
    min-width: 22px;
    height: 22px;
    place-items: center;
    border-radius: 999px;
    background: rgba(49,95,190,.10);
    color: #315fbe;
    font-size: 10px;
  }

  .club-move-grid{
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
  }

  .club-command-overview .club-roster-kpi.is-micro{
    min-height: 70px;
    padding: 9px 8px;
    border-radius: 11px;
    background: var(--surface);
  }

  .club-command-overview .club-roster-kpi.is-micro > span{
    font-size: 7px;
    line-height: 1.15;
  }

  .club-command-overview .club-roster-kpi.is-micro > strong{
    margin-top: 4px;
    font-size: 17px;
    line-height: 1;
  }

  .club-finance-secondary{
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 9px;
    margin-top: 9px;
  }

  .club-command-overview .club-roster-kpi.is-secondary{
    min-height: 84px;
    padding: 11px 10px;
  }

  .club-command-overview .club-roster-kpi.is-secondary > span{
    font-size: 8px;
  }

  .club-command-overview .club-roster-kpi.is-secondary > strong{
    margin-top: 5px;
    font-size: 19px;
    line-height: 1.05;
  }

  @media (max-width: 1180px) {
    .club-command-overview{
      grid-template-columns: minmax(0, 1fr);
    }

    .club-market-moves{
      grid-template-columns: repeat(2, minmax(0, 1fr));
    }
  }

  @media (max-width: 720px) {
    .club-command-overview{
      gap: 10px;
      margin-bottom: 10px;
    }

    .club-kpi-domain{
      padding: 11px;
      border-radius: 16px;
    }

    .club-kpi-domain__heading{
      align-items: flex-start;
      margin-bottom: 10px;
    }

    .club-kpi-domain__heading h2{
      font-size: 17px;
    }

    .club-kpi-domain__heading > span{
      max-width: 105px;
      font-size: 7px;
      line-height: 1.25;
    }

    .club-domain-primary{
      grid-template-columns: repeat(2, minmax(0, 1fr));
      gap: 7px;
    }

    .club-domain-primary--roster .club-roster-kpi:nth-child(3),
.club-domain-primary--finance .club-roster-kpi:nth-child(3){
      grid-column: 1 / -1;
    }

    .club-command-overview .club-roster-kpi.is-primary{
      min-height: 88px;
      padding: 10px 9px;
    }

    .club-command-overview .club-roster-kpi.is-primary > strong{
      font-size: 21px;
    }

    .club-market-moves{
      grid-template-columns: 1fr;
      gap: 7px;
    }

    .club-move-group{
      padding: 8px;
    }

    .club-move-group > summary{
      cursor: pointer;
      padding-bottom: 5px;
      font-size: 8px;
    }

    .club-move-group > summary::after{
      content: "⌄";
      margin-left: 2px;
      color: var(--muted);
      font-size: 13px;
      transform: rotate(0deg);
      transition: transform .16s ease;
    }

    .club-move-group[open] > summary::after{
      transform: rotate(180deg);
    }

    .club-move-group > summary b{
      margin-left: auto;
    }

    .club-move-grid{
      grid-template-columns: repeat(3, minmax(0, 1fr));
      gap: 5px;
      padding-top: 3px;
    }

    .club-command-overview .club-roster-kpi.is-micro{
      min-height: 63px;
      padding: 8px 6px;
    }

    .club-command-overview .club-roster-kpi.is-micro > span{
      font-size: 6.5px;
    }

    .club-command-overview .club-roster-kpi.is-micro > strong{
      font-size: 16px;
    }

    .club-finance-secondary{
      gap: 7px;
    }

    .club-command-overview .club-roster-kpi.is-secondary{
      min-height: 76px;
      padding: 9px 8px;
    }

    .club-command-overview .club-roster-kpi.is-secondary > strong{
      font-size: 17px;
    }
  }

  @media (max-width: 430px) {
    .club-move-grid{
      grid-template-columns: 1fr;
    }

    .club-command-overview .club-roster-kpi.is-micro{
      min-height: 54px;
      display: grid;
      grid-template-columns: minmax(0, 1fr) auto;
      align-items: center;
      gap: 8px;
    }

    .club-command-overview .club-roster-kpi.is-micro > strong{
      margin-top: 0;
      text-align: right;
    }

    .club-finance-secondary{
      grid-template-columns: 1fr 1fr;
    }
  }


  .club-overview-identity__manager .club-manager-card{
    border-color: color-mix(in srgb, var(--club-primary) 72%, #0b1728 28%);
    background:
      radial-gradient(circle at 7% 3%, color-mix(in srgb, var(--club-secondary) 72%, transparent), transparent 38%),
      linear-gradient(145deg, var(--club-primary) 0 76%, var(--club-secondary) 76% 100%);
    color: var(--club-on-primary);
  }
  .club-overview-identity__manager .club-overview-card__title,
.club-overview-identity__manager .club-manager-card__identity strong,
.club-overview-identity__manager .club-manager-card__meta dd{
    color: var(--club-on-primary);
  }
  .club-overview-identity__manager .club-manager-card__identity small,
.club-overview-identity__manager .club-manager-card__meta dt{
    color: color-mix(in srgb, var(--club-on-primary) 76%, transparent);
  }
  .club-overview-identity__manager .club-overview-svg{
    color: var(--club-on-primary);
    background: color-mix(in srgb, var(--club-on-primary) 13%, transparent);
  }
  .club-overview-identity__manager .club-manager-avatar{
    color: var(--club-on-primary);
    background: color-mix(in srgb, var(--club-secondary) 42%, var(--club-primary));
    border-color: color-mix(in srgb, var(--club-on-primary) 28%, transparent);
  }
  .club-overview-identity__manager .club-manager-card__meta{
    border-top-color: color-mix(in srgb, var(--club-on-primary) 20%, transparent);
  }
  .club-overview-identity__manager .club-manager-contact.is-telegram{
    color: var(--club-on-primary);
    text-decoration-color: color-mix(in srgb, var(--club-on-primary) 55%, transparent);
  }

  .club-overview-identity__stadium .club-stadium-card{
    border-color: color-mix(in srgb, var(--club-secondary) 56%, #d7e0ec 44%);
    background: var(--club-secondary);
  }
  .club-overview-identity__stadium .club-stadium-card__content{
    background: var(--club-secondary);
  }
  .club-overview-identity__stadium .club-stadium-card__heading,
.club-overview-identity__stadium .club-stadium-card__heading::after{
    background: var(--club-primary);
  }
  .club-overview-identity__stadium .club-stadium-card__heading strong,
.club-overview-identity__stadium .club-overview-card__title{
    color: var(--club-on-primary);
  }
  .club-overview-identity__stadium .club-overview-svg{
    color: var(--club-on-primary);
    background: color-mix(in srgb, var(--club-on-primary) 14%, transparent);
  }
  .club-overview-identity__stadium .club-stadium-card__meta dt{
    color: color-mix(in srgb, var(--club-on-secondary) 72%, transparent);
  }
  .club-overview-identity__stadium .club-stadium-card__meta dd{
    color: var(--club-on-secondary);
  }
  .club-overview-identity__stadium .club-stadium-card__meta > div{
    border-left-color: color-mix(in srgb, var(--club-on-secondary) 20%, transparent);
  }

  .club-info-rosa-card > .club-overview-card__title{
    align-self: flex-start;
    min-height: 31px;
    padding: 4px 9px 4px 5px;
    border: 1px solid color-mix(in srgb, var(--club-primary) 22%, var(--line));
    border-radius: 10px;
    background: color-mix(in srgb, var(--club-primary) 8%, var(--surface));
    color: var(--text);
  }
  .club-info-rosa-card > .club-overview-card__title .club-overview-svg{
    background: var(--club-primary);
    color: var(--club-on-primary);
  }

  .club-overview-identity__top3 .club-top3-panel{
    color: var(--text);
    border-color: color-mix(in srgb, var(--club-primary) 18%, var(--line));
    background:
      linear-gradient(180deg, color-mix(in srgb, var(--club-primary) 4%, var(--surface)), var(--surface) 44%);
    box-shadow: 0 10px 28px rgba(31,49,79,.05);
  }
  .club-overview-identity__top3 .club-top3-panel .section-heading{
    border-bottom: 1px solid var(--line);
    background: transparent;
  }
  .club-overview-identity__top3 .club-top3-panel .section-heading h2{
    color: var(--text);
  }
  .club-overview-identity__top3 .club-top3-card{
    border-color: var(--line);
    background: var(--surface);
    color: #0b1e36;
    box-shadow: none;
  }
  .club-overview-identity__top3 .club-top3-card--primary{
    border-color: color-mix(in srgb, var(--club-primary) 38%, #d7e0ec);
    background: linear-gradient(145deg, color-mix(in srgb, var(--club-primary) 7%, #fff), #fff 72%);
  }
  .club-overview-identity__top3 .club-top3-card__name{ color: #0b1e36; }
  .club-overview-identity__top3 .club-top3-card__label{ color: #607089; }
  .club-overview-identity__top3 .club-top3-card__value{ color: #b77900; }

  .club-kpi-domain__heading h2,
.club-command-overview .club-roster-kpi > strong,
.club-move-group > summary{
    font-family: var(--font-condensed);
  }
  .club-kpi-domain__heading h2{
    font-size: 21px;
    font-weight: 700;
    letter-spacing: .005em;
  }
  .club-command-overview .club-roster-kpi > strong{
    font-weight: 700;
    letter-spacing: .01em;
  }

  .club-kpi-domain{
    display: flex;
    flex-direction: column;
  }
  .club-kpi-domain--roster .club-market-moves,
.club-kpi-domain--finance .club-finance-secondary{
    flex: 1 1 auto;
  }
  .club-market-moves{ align-items: stretch; }
  .club-move-group{
    display: flex;
    flex-direction: column;
  }
  .club-move-grid{
    flex: 1 1 auto;
    align-items: stretch;
  }
  .club-command-overview .club-roster-kpi.is-micro,
.club-command-overview .club-roster-kpi.is-secondary{
    height: 100%;
    justify-content: center;
  }
  .club-finance-secondary{ grid-auto-rows: minmax(84px, 1fr); }

  #playersView .player-search-panel--compact{
    display: flex;
    align-items: flex-end;
    gap: 9px;
    width: 100%;
    padding: 13px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: var(--surface);
    box-shadow: 0 8px 24px rgba(31,49,79,.035);
  }
  #playersView .player-search-panel--compact .player-query{
    flex: 1 1 420px;
    min-width: 260px;
  }
  #playersView .player-search-panel--compact .presence-filter{
    flex: 0 0 160px;
    min-width: 0;
  }
  #playersView .player-search-panel--compact .team-filter:not([hidden]){
    flex-basis: 205px;
  }
  #playersView .player-search-panel--compact .secondary-button,
#playersView .player-search-panel--compact .primary-button{
    flex: 0 0 auto;
    width: auto;
    min-width: 108px;
    min-height: 42px;
    height: 42px;
    padding: 0 14px;
  }
  #playersView .player-search-panel--compact .primary-button{
    border-color: #102a4c;
    background: #102a4c;
    color: #fff;
    box-shadow: 0 6px 14px rgba(16,42,76,.16);
  }
  #playersView .player-search-panel--compact .primary-button:hover{
    border-color: #173a68;
    background: #173a68;
  }
  #playersView .player-search-panel--compact .secondary-button{
    color: #102a4c;
    background: transparent;
    border-color: #c8d3e1;
  }
  .player-search-context{
    margin-left: auto;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 6px;
    min-width: 210px;
    padding-bottom: 2px;
  }
  .player-search-context > span{
    display: inline-flex;
    align-items: center;
    gap: 4px;
    min-height: 28px;
    padding: 0 8px;
    border: 1px solid #d7e0eb;
    border-radius: 999px;
    background: #f7f9fc;
    color: #627086;
    font-size: 9px;
    font-weight: 700;
    white-space: nowrap;
  }
  .player-search-context > span b{ color: #102a4c; }

  @media (max-width: 1180px) {
    #playersView .player-search-panel--compact{ flex-wrap: wrap; }
    #playersView .player-search-panel--compact .player-query{ flex-basis: calc(100% - 340px); }
    .player-search-context{ width: 100%; min-width: 0; justify-content: flex-start; margin-left: 0; }
  }
  @media (max-width: 720px) {
    #playersView .player-search-panel--compact{
      display: grid;
      grid-template-columns: repeat(2, minmax(0, 1fr));
      gap: 8px;
      padding: 10px;
    }
    #playersView .player-search-panel--compact .player-query,
#playersView .player-search-panel--compact .presence-filter,
#playersView .player-search-panel--compact .team-filter:not([hidden]),
.player-search-context{
      grid-column: 1 / -1;
      width: 100%;
      min-width: 0;
    }
    #playersView .player-search-panel--compact .secondary-button,
#playersView .player-search-panel--compact .primary-button{
      width: 100%;
      min-width: 0;
    }
    .player-search-context{ justify-content: flex-start; }
  }

.management-table-heading--modern{
  margin-bottom: 14px;
}
.management-table-heading--modern h2{
  font-size: clamp(25px, 2vw, 32px);
  letter-spacing: -0.03em;
}
.management-toolbar{
  display: flex;
  align-items: end;
  gap: 10px;
  flex-wrap: wrap;
  padding: 12px;
  margin-bottom: 14px;
  background: linear-gradient(180deg, #ffffff 0%, #f7f9fd 100%);
  border: 1px solid #dbe3ef;
  border-radius: 16px;
  box-shadow: 0 8px 24px rgba(15, 39, 71, 0.05);
}
.management-search{
  min-width: min(420px, 100%);
  flex: 1 1 320px;
  height: 44px;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 0 13px;
  border: 1px solid #cfd9e7;
  border-radius: 12px;
  background: var(--surface);
  color: #66758c;
}
.management-search--wide{ flex-basis: 520px; }
.management-search input{
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  color: #0d2442;
  font: inherit;
}
.management-search:focus-within{
  border-color: #17385f;
  box-shadow: 0 0 0 3px rgba(23, 56, 95, 0.10);
}
.management-select{
  display: grid;
  gap: 4px;
  color: #64748b;
  font-size: 9px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .08em;
}
.management-select select{
  height: 44px;
  min-width: 150px;
  padding: 0 34px 0 12px;
  border: 1px solid #cfd9e7;
  border-radius: 12px;
  background: var(--surface);
  color: #0d2442;
  font: inherit;
  font-size: 12px;
  font-weight: 700;
}
.management-reset{
  height: 44px;
  padding: 0 16px;
  border: 1px solid #cfd9e7;
  border-radius: 12px;
  background: var(--surface);
  color: #17385f;
  font-weight: 800;
  cursor: pointer;
}
.management-reset:hover{ background: #f2f6fb; }

.managers-premium-scroll{
  max-height: 72vh;
  overflow-y: auto;
}
.managers-table--premium{
  min-width: 1040px;
  font-size: 14px;
  border-collapse: separate;
  border-spacing: 0;
}
.managers-table--premium thead th{
  background: #f5f8fc;
  padding: 7px 12px;
  position: sticky;
  top: 0;
  z-index: 5;
  box-shadow: 0 1px 0 var(--line);
}
.managers-table--premium tbody td{
  padding: 6px 12px;
  background: var(--surface);
}
.managers-table--premium .data-team-cell{ gap: 7px; }
.managers-table--premium .data-team-logo{ width: 22px; height: 22px; flex: 0 0 22px; }
.managers-table--premium tbody tr:nth-child(even) td{
  background: #fbfcfe;
}
.managers-table--premium tbody tr:hover td{
  background: #f3f7fb;
}
.manager-name-cell{
  color: #0d2442;
  font-size: 14px;
}
.manager-chip{
  display: inline-flex;
  align-items: center;
  min-height: 21px;
  padding: 2px 8px;
  border-radius: 999px;
  background: #f1f5f9;
  color: #334155;
  font-size: 12px;
  font-weight: 800;
}
.manager-chip--telegram{
  background: #eef6ff;
  color: #0b5fad;
  text-decoration: none;
}
.manager-chip--forum{ background: #f7f5ff; color: #51408f; }
.manager-date-badge{
  display: inline-flex;
  padding: 2px 7px;
  border-radius: 7px;
  background: #f4f6f9;
  color: #334155;
  font-size: 12px;
  font-weight: 700;
}
.manager-date-badge--change{
  background: #fff4e6;
  color: #8a4b00;
}
.manager-mobile-cards{ display: none; }

/* ===== Sezione STAFF (accordion richiudibile, sopra il divisore dell'Esci) ===== */
.nav-acc--staff{
  margin-top: 10px;
  padding-top: 8px;
  border-top: 1px solid var(--fmto-sidebar-border, #e2e8f0);
}
.nav-acc--staff .nav-acc-head{ color: #ea7a2c; }
.nav-acc--staff .nav-acc-head:hover{ color: #c2560f; background: rgba(249,115,22,.08); }
.nav-acc--staff .nav-acc-head .nav-label{
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.nav-acc--staff .nav-icon{ color: #ea7a2c; }
.nav-acc--staff.open .nav-acc-head,
.nav-acc--staff.has-active .nav-acc-head{ color: #c2560f; box-shadow: inset 3px 0 0 #f97316; background: rgba(249,115,22,.10); }
.nav-acc--staff.open .nav-acc-body{ border-left-color: #f6c79b; }
.nav-acc--staff .nav-acc-body .nav-item .nav-icon{ color: #ea7a2c; }
.nav-acc--staff .nav-acc-body .nav-item.active{ background: rgba(249,115,22,.12); }
.nav-acc--staff .nav-acc-body .nav-item.active .nav-label,
.nav-acc--staff .nav-acc-body .nav-item.active .nav-icon{ color: #c2560f; }

.finance-table--grouped{
  min-width: 2050px;
  border-collapse: separate;
  border-spacing: 0;
}
.finance-table--grouped thead th{
  position: sticky;
  top: 0;
  z-index: 6;
}
.finance-grouped-scroll{
  max-height: 72vh;
  overflow-y: auto;
}
.finance-table--collapsed [data-fin-group="collapsible"]{
  display: none !important;
}
.finance-table.finance-table--collapsed{
  min-width: 1200px !important;
  width: 100%;
}
.finance-collapse-toggle{
  white-space: nowrap;
}
.finance-table thead tr.finance-group-row .finance-group--club{
  position: sticky;
  left: 0;
  z-index: 8;
}
.finance-table thead tr.finance-column-row th:nth-child(1){
  position: sticky;
  left: 0;
  z-index: 7;
}
.finance-table thead tr.finance-column-row th:nth-child(2){
  position: sticky;
  left: 190px;
  z-index: 7;
}
.finance-table tbody td.finance-sticky-manager{
  position: sticky;
  left: 0;
  z-index: 2;
  background: var(--surface);
}
.finance-table tbody td.finance-sticky-team{
  position: sticky;
  left: 190px;
  z-index: 2;
  background: var(--surface);
  border-right: 1px solid var(--line);
}
.finance-table--grouped .finance-group-row th{
  height: 34px;
  padding: 8px 10px;
  text-align: center;
  border-right: 2px solid #fff;
  border-bottom: 1px solid rgba(15, 39, 71, .08);
  color: #17324f;
  font-size: 9px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .10em;
}
.finance-table--grouped .finance-column-row th{
  top: 34px;
  padding: 9px 8px;
  background: #f8fafc;
}
.finance-group--club{ background: #eef3f8 !important; }
.finance-group--roster{ background: #edf4ff !important; }
.finance-group--in{ background: #eaf8f2 !important; color: #17634b !important; }
.finance-group--out{ background: #fff0f1 !important; color: #8b3740 !important; }
.finance-group--wages{ background: #eaf5f4 !important; color: #075e59 !important; }
.finance-group--credits{ background: #fff8e7 !important; color: #765b12 !important; }

.finance-subhead--roster{ background: #f6f9ff !important; }
.finance-subhead--in{ background: #f5fbf8 !important; }
.finance-subhead--out{ background: #fff8f8 !important; }
.finance-subhead--wages{ background: #f4fbfa !important; }
.finance-subhead--credits{ background: #fffdf6 !important; }

.finance-table--grouped tbody td{
  padding: 10px 9px;
  white-space: nowrap;
}
.finance-cell--roster{ background: #fcfdff; }
.finance-cell--in{ background: #fbfefc; }
.finance-cell--out{ background: #fffdfd; }
.finance-cell--wages{ background: #fbfefd; }
.finance-cell--credits{ background: #fffefa; }
.finance-table--grouped tbody tr:hover td{
  filter: brightness(.985);
}
.finance-flow--in{ color: #047857; font-weight: 800; }
.finance-flow--out{ color: #b42335; font-weight: 800; }
.finance-flow-sep{ margin: 0 2px; color: #94a3b8; }

.finance-mobile-cards{ display: none; }

@media (max-width: 760px) {
  .management-toolbar{
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: stretch;
    gap: 8px;
    padding: 10px;
  }
  .management-search,
.management-search--wide{
    grid-column: 1 / -1;
    min-width: 0;
    width: 100%;
    flex: none;
  }
  .management-select{ min-width: 0; }
  .management-select select{
    width: 100%;
    min-width: 0;
  }
  .management-reset{ align-self: end; }

  .managers-premium-scroll,
.finance-grouped-scroll{ display: none; }

  .manager-mobile-cards,
.finance-mobile-cards{
    display: grid;
    gap: 10px;
  }

  .manager-mobile-card{
    padding: 14px;
    border: 1px solid #dbe3ef;
    border-radius: 16px;
    background: var(--surface);
    box-shadow: 0 8px 22px rgba(15,39,71,.05);
  }
  .manager-mobile-card header{
    display: flex;
    align-items: center;
    gap: 11px;
    padding-bottom: 12px;
    border-bottom: 1px solid #e7edf5;
  }
  .manager-mobile-logo{
    width: 38px;
    height: 38px;
    object-fit: contain;
    flex: 0 0 auto;
  }
  .manager-mobile-card header div{
    display: grid;
    gap: 2px;
  }
  .manager-mobile-club{
    color: #64748b;
    font-size: 9px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: .08em;
  }
  .manager-mobile-card header strong{
    color: #0d2442;
    font-size: 17px;
  }
  .manager-mobile-grid{
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px 10px;
    padding-top: 12px;
  }
  .manager-mobile-grid div,
.finance-mobile-metric{
    display: grid;
    gap: 3px;
    min-width: 0;
  }
  .manager-mobile-grid span,
.finance-mobile-metric span{
    color: #718096;
    font-size: 8px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: .07em;
  }
  .manager-mobile-grid strong,
.manager-mobile-grid a{
    color: #17385f;
    font-size: 11px;
    font-weight: 800;
    overflow-wrap: anywhere;
  }

  .finance-mobile-card{
    overflow: hidden;
    border: 1px solid #dbe3ef;
    border-radius: 17px;
    background: #fff;
    box-shadow: 0 8px 22px rgba(15,39,71,.05);
  }
  .finance-mobile-card__head{
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 14px;
    background: #f8fafc;
    border-bottom: 1px solid #e6edf5;
  }
  .finance-mobile-logo{
    width: 38px;
    height: 38px;
    object-fit: contain;
  }
  .finance-mobile-card__head div{ display: grid; gap: 2px; }
  .finance-mobile-card__head strong{ color: #0d2442; font-size: 16px; }
  .finance-mobile-card__head span{ color: #64748b; font-size: 9px; font-weight: 700; }

  .finance-mobile-group{
    padding: 12px 14px;
    border-bottom: 1px solid #edf1f6;
  }
  .finance-mobile-group h3,
.finance-mobile-details summary{
    margin: 0 0 9px;
    color: #17385f;
    font-size: 10px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: .08em;
  }
  .finance-mobile-grid{
    display: grid;
    grid-template-columns: repeat(3, minmax(0,1fr));
    gap: 8px;
  }
  .finance-mobile-grid--credits{ grid-template-columns: repeat(2, minmax(0,1fr)); }
  .finance-mobile-metric{
    padding: 9px;
    border-radius: 10px;
    background: #f8fafc;
  }
  .finance-mobile-metric strong{ color: #0d2442; font-size: 12px; }
  .finance-mobile-metric.is-positive strong{ color: #047857; }
  .finance-mobile-metric.is-negative strong{ color: #b42335; }

  .finance-mobile-details{
    padding: 12px 14px;
    border-bottom: 1px solid #edf1f6;
  }
  .finance-mobile-details summary{
    cursor: pointer;
    margin-bottom: 0;
    list-style: none;
  }
  .finance-mobile-details[open] summary{ margin-bottom: 10px; }
  .finance-mobile-split{
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 9px;
  }
  .finance-mobile-split > div{
    padding: 10px;
    border-radius: 12px;
    background: #f8fafc;
  }
  .finance-mobile-split h4{
    margin: 0 0 7px;
    color: #64748b;
    font-size: 8px;
    letter-spacing: .09em;
  }
  .finance-mobile-split .finance-mobile-metric{
    padding: 6px 0;
    background: transparent;
  }
}

@media (max-width: 480px) {
  .management-toolbar{ grid-template-columns: 1fr; }
  .management-search,
.management-search--wide{ grid-column: 1; }
  .manager-mobile-grid{ grid-template-columns: 1fr 1fr; }
  .finance-mobile-grid{ grid-template-columns: repeat(3, minmax(0,1fr)); }
}

.club-overview-identity__manager .club-manager-card,
.club-overview-identity__manager .club-overview-card__title,
.club-overview-identity__manager .club-overview-card__title > span,
.club-overview-identity__manager .club-manager-card__identity strong,
.club-overview-identity__manager .club-manager-card__identity small,
.club-overview-identity__manager .club-manager-card__meta dt,
.club-overview-identity__manager .club-manager-card__meta dd,
.club-overview-identity__manager .club-manager-contact,
.club-overview-identity__manager .club-manager-contact strong{
  color: var(--club-on-primary) !important;
}
.club-overview-identity__manager .club-manager-card__identity small,
.club-overview-identity__manager .club-manager-card__meta dt{
  opacity: .82;
}
.club-overview-identity__manager .club-overview-svg{
  color: var(--club-on-primary) !important;
  background: color-mix(in srgb, var(--club-on-primary) 16%, transparent) !important;
}

.club-overview-identity__stadium .club-stadium-card__heading,
.club-overview-identity__stadium .club-stadium-card__heading::after{
  background: var(--club-primary) !important;
}
.club-overview-identity__stadium .club-stadium-card__heading,
.club-overview-identity__stadium .club-stadium-card__heading > span,
.club-overview-identity__stadium .club-stadium-card__heading strong,
.club-overview-identity__stadium .club-overview-card__title,
.club-overview-identity__stadium .club-overview-card__title > span{
  color: var(--club-on-primary) !important;
}
.club-overview-identity__stadium .club-overview-svg{
  color: var(--club-on-primary) !important;
  background: color-mix(in srgb, var(--club-on-primary) 16%, transparent) !important;
}
.club-overview-identity__stadium .club-stadium-card__content{
  background: var(--club-secondary) !important;
}
.club-overview-identity__stadium .club-stadium-card__meta dt,
.club-overview-identity__stadium .club-stadium-card__meta dd{
  color: var(--club-on-secondary) !important;
}
.club-overview-identity__stadium .club-stadium-card__meta dt{ opacity: .78; }
.club-overview-identity__stadium .club-stadium-card__meta > div{
  border-left-color: color-mix(in srgb, var(--club-on-secondary) 28%, transparent) !important;
}

.finance-group--club{ background: #dbe5f0 !important; color: #18324e !important; }
.finance-group--wages{ background: #bfe5df !important; color: #07584f !important; }
.finance-group--credits{ background: #f6dfa0 !important; color: #664d08 !important; }
.finance-group--roster{ background: #cbdcff !important; color: #183d79 !important; }
.finance-group--in{ background: #c9ead9 !important; color: #145b43 !important; }
.finance-group--out{ background: #f3c9ce !important; color: #80323a !important; }

.finance-subhead--club{ background: #eef3f8 !important; }
.finance-subhead--wages{ background: #e4f4f1 !important; }
.finance-subhead--credits{ background: #fcf3d4 !important; }
.finance-subhead--roster{ background: #e9f0ff !important; }
.finance-subhead--in{ background: #e7f6ee !important; }
.finance-subhead--out{ background: #fae9eb !important; }

.finance-cell--wages{ background: #f0f9f7 !important; }
.finance-cell--credits{ background: #fff9e8 !important; }
.finance-cell--roster{ background: #f3f7ff !important; }
.finance-cell--in{ background: #f1faf5 !important; }
.finance-cell--out{ background: #fff3f4 !important; }

.finance-table--grouped .finance-group-row th{
  border-bottom-color: rgba(15,39,71,.14);
  box-shadow: inset 0 -1px 0 rgba(15,39,71,.06);
}
.finance-table--grouped .finance-column-row th{
  border-bottom-color: rgba(15,39,71,.13);
}

@media (max-width: 720px){
  .sidebar,
  .sidebar.sidebar--collapsed {
    position: fixed !important;
    inset: 0 0 auto 0 !important;
    top: 0 !important;
    z-index: 220 !important;
    width: 100% !important;
    height: calc(56px + env(safe-area-inset-top, 0px)) !important;
    min-height: calc(56px + env(safe-area-inset-top, 0px)) !important;
    padding: calc(6px + env(safe-area-inset-top, 0px)) 8px 6px !important;
    box-shadow: 0 5px 18px rgba(15,23,42,.14) !important;
  }

  .main,
  body.fmto-sidebar-collapsed .main {
    padding-top: calc(68px + env(safe-area-inset-top, 0px)) !important;
  }

  body.fmto-club-view-active .main,
  body.fmto-club-view-active.fmto-sidebar-collapsed .main {
    padding-top: calc(126px + env(safe-area-inset-top, 0px)) !important;
  }

  #clubHubHeader.fmto-club-header {
    position: relative !important;
    top: auto !important;
    z-index: auto !important;
  }

  #clubHubHeader .fmto-club-mobile-nav,
  .fmto-club-mobile-nav {
    position: fixed !important;
    top: calc(56px + env(safe-area-inset-top, 0px)) !important;
    left: 0 !important;
    right: 0 !important;
    z-index: 210 !important;
    width: 100% !important;
    min-height: 58px !important;
    background: color-mix(in srgb, var(--surface) 97%, var(--surface-2)) !important;
    border-top: 0 !important;
    border-bottom: 1px solid var(--club-header-border, var(--line)) !important;
    box-shadow: 0 5px 14px rgba(15,23,42,.09) !important;
  }

  #clubOverviewIdentityAnchor,
  #clubRosterOverviewAnchor,
  #clubTransferSummary,
  #clubHonoursSection {
    scroll-margin-top: calc(126px + env(safe-area-inset-top, 0px)) !important;
  }
}

:root { color-scheme: light; }
html, body { background: var(--bg); color: var(--text); }

.fmto-club-mobile-nav,
#clubHubHeader .fmto-club-mobile-nav {
  background: var(--surface) !important;
  opacity: 1 !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

.club-overview-identity__manager .club-manager-card {
  position: relative;
  isolation: isolate;
  border: 1px solid color-mix(in srgb, var(--club-primary) 38%, #d6e0ec 62%) !important;
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%) !important;
  color: #10243f !important;
  box-shadow: 0 10px 28px rgba(31,49,79,.07) !important;
}
.club-overview-identity__manager .club-manager-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 6px;
  z-index: -1;
  background: linear-gradient(90deg, var(--club-primary) 0 64%, var(--club-secondary) 64% 100%);
}
.club-overview-identity__manager .club-manager-card::after {
  content: "";
  position: absolute;
  width: 110px;
  height: 110px;
  right: -46px;
  bottom: -54px;
  z-index: -1;
  border-radius: 50%;
  background: color-mix(in srgb, var(--club-secondary) 12%, transparent);
}
.club-overview-identity__manager .club-overview-card__title,
.club-overview-identity__manager .club-overview-card__title > span,
.club-overview-identity__manager .club-manager-card__identity strong,
.club-overview-identity__manager .club-manager-card__identity small,
.club-overview-identity__manager .club-manager-card__meta dt,
.club-overview-identity__manager .club-manager-card__meta dd,
.club-overview-identity__manager .club-manager-contact,
.club-overview-identity__manager .club-manager-contact strong {
  color: #10243f !important;
  opacity: 1 !important;
}
.club-overview-identity__manager .club-manager-card__identity small,
.club-overview-identity__manager .club-manager-card__meta dt { color: #6d7f96 !important; }
.club-overview-identity__manager .club-overview-svg {
  color: #10243f !important;
  background: color-mix(in srgb, var(--club-primary) 10%, #ffffff) !important;
  border: 1px solid color-mix(in srgb, var(--club-primary) 24%, #dce5ef) !important;
}
.club-overview-identity__manager .club-manager-avatar {
  color: #10243f !important;
  background: color-mix(in srgb, var(--club-primary) 10%, #ffffff) !important;
  border: 2px solid color-mix(in srgb, var(--club-primary) 48%, #dce5ef) !important;
}
.club-overview-identity__manager .club-manager-card__meta {
  border-top-color: var(--line) !important;
}
.club-overview-identity__manager .club-manager-contact.is-telegram {
  color: #173b82 !important;
  text-decoration-color: #8ea5c3 !important;
}

.club-overview-identity__stadium .club-stadium-card {
  position: relative;
  border: 1px solid #d6e0ec !important;
  background: var(--surface) !important;
  box-shadow: 0 10px 28px rgba(31,49,79,.07) !important;
}
.club-overview-identity__stadium .club-stadium-card__content {
  position: relative;
  background: var(--surface) !important;
  color: #10243f !important;
}
.club-overview-identity__stadium .club-stadium-card__content::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 6px;
  background: linear-gradient(180deg, var(--club-primary) 0 64%, var(--club-secondary) 64% 100%);
}
.club-overview-identity__stadium .club-stadium-card__heading,
.club-overview-identity__stadium .club-stadium-card__heading::after {
  background: #f6f8fb !important;
}
.club-overview-identity__stadium .club-stadium-card__heading::after {
  border-right: 1px solid #e1e7ef;
}
.club-overview-identity__stadium .club-stadium-card__heading,
.club-overview-identity__stadium .club-stadium-card__heading > span,
.club-overview-identity__stadium .club-stadium-card__heading strong,
.club-overview-identity__stadium .club-overview-card__title,
.club-overview-identity__stadium .club-overview-card__title > span,
.club-overview-identity__stadium .club-stadium-card__meta dd {
  color: #10243f !important;
}
.club-overview-identity__stadium .club-stadium-card__meta dt {
  color: #6d7f96 !important;
  opacity: 1 !important;
}
.club-overview-identity__stadium .club-overview-svg {
  color: #10243f !important;
  background: color-mix(in srgb, var(--club-primary) 10%, #ffffff) !important;
  border: 1px solid color-mix(in srgb, var(--club-primary) 24%, #dce5ef) !important;
}
.club-overview-identity__stadium .club-stadium-card__meta > div {
  border-left-color: var(--line) !important;
}

@media (max-width: 720px) {
  #clubHubHeader .fmto-club-mobile-nav,
  .fmto-club-mobile-nav {
    background: var(--surface) !important;
    border-bottom: 1px solid #dce4ee !important;
    box-shadow: 0 6px 18px rgba(15,23,42,.12) !important;
  }
}

.overview-home{
  margin-top: 18px;
  display: grid;
  gap: 16px;
}
.overview-home__hero{
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  min-height: 154px;
  padding: 26px 28px;
  border: 1px solid #dce5ef;
  border-radius: 22px;
  background:
    radial-gradient(circle at 88% 18%, rgba(37,99,235,.10), transparent 29%),
    linear-gradient(135deg, #ffffff 0%, #f5f8fc 68%, #eef4fb 100%);
  box-shadow: 0 14px 36px rgba(31,49,79,.07);
}
.overview-home__hero::after{
  content:"";
  position:absolute;
  right:-55px;
  bottom:-88px;
  width:220px;
  height:220px;
  border:1px solid rgba(37,99,235,.12);
  border-radius:50%;
}
.overview-home__hero > div:first-child{
  position:relative;
  z-index:1;
  max-width:720px;
}
.overview-home__greeting{
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}
.overview-home__greeting-crest{
  display: block;
}
.overview-home__greeting-crest .team-logo,
.overview-home__greeting-crest .logo-fallback{
  width: 40px;
  height: 40px;
}
.overview-home__greeting-text{
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.overview-home__greeting-text strong{
  color: #0d2442;
  font-size: 19px;
  font-weight: 800;
  letter-spacing: -0.01em;
}
.overview-home__greeting-text small{
  color: #64748b;
  font-size: 12.5px;
  text-transform: capitalize;
}
.overview-magazine-hero{
  position: relative;
  overflow: hidden;
  padding: 30px 32px;
  border-radius: 22px;
  background:
    radial-gradient(circle at 88% 10%, rgba(198,154,44,.16), transparent 34%),
    linear-gradient(125deg, #121a2b, #1c2740 62%, #2a2110);
  color: #fff;
  box-shadow: 0 16px 40px rgba(15,23,42,.16);
}
.overview-magazine-hero__top{
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}
.overview-magazine-hero .eyebrow.light{
  color: #d9c98f;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .12em;
  margin: 0 0 8px;
}
.overview-magazine-hero h2{
  margin: 0;
  color: #fff;
  font-size: clamp(26px, 3.4vw, 40px);
  letter-spacing: -.03em;
}
.overview-hero-manager-btn{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 18px;
  padding: 12px 20px;
  border: none;
  border-radius: 999px;
  background: #d9c98f;
  color: #1c2740;
  font-weight: 800;
  font-size: 14px;
  letter-spacing: -.01em;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
  box-shadow: 0 10px 24px rgba(217,201,143,.28);
}
.overview-hero-manager-btn:hover{
  background: #e8daa4;
  transform: translateY(-1px);
  box-shadow: 0 14px 28px rgba(217,201,143,.34);
}
.overview-hero-manager-btn span{
  font-size: 15px;
}
@media (max-width: 720px){
  .overview-hero-manager-btn{
    width: 100%;
    justify-content: center;
    margin-top: 16px;
  }
}
.overview-magazine-hero__badge{
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 999px;
  background: rgba(255,255,255,.08);
  white-space: nowrap;
}
.overview-magazine-hero__badge strong{
  color: #fff;
  font-size: 14px;
}
.overview-magazine-hero__badge span{
  color: #cbd5e1;
  font-size: 11px;
}
.overview-home__greeting--dark .overview-home__greeting-text strong{
  color: #fff;
}
.overview-home__greeting--dark .overview-home__greeting-text small{
  color: #cbd5e1;
}
.overview-featured-grid{
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
  gap: 14px;
  margin: 14px 0 4px;
}
.overview-featured-card{
  padding: 20px 22px;
  border-radius: 18px;
  background: linear-gradient(150deg, #fdf6e3 0%, #f8ecc4 100%);
  border: 1px solid #e6d59a;
  box-shadow: 0 10px 26px rgba(120, 92, 12, .08);
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.overview-featured-card__kicker{
  margin: 0 0 12px;
  color: #8a6a10;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .1em;
}
.overview-featured-card__body{
  display: flex;
  align-items: center;
  gap: 16px;
}
.overview-featured-card .club-hero-logo,
.overview-featured-card .logo-fallback{
  width: 56px;
  height: 56px;
}
.overview-featured-card__copy{
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.overview-featured-card__copy strong{
  font-size: 21px;
  color: #3a2c05;
  letter-spacing: -.01em;
}
.overview-featured-card__copy span{
  color: #8a6a10;
  font-size: 13px;
}
.overview-side-feed{
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface);
}
.overview-side-feed__title{
  margin: 0 0 10px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .08em;
}
.overview-side-feed__row{
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 0;
  border-bottom: 1px solid var(--line);
}
.overview-side-feed__row:last-child{
  border-bottom: 0;
}
.overview-side-feed__row .team-logo,
.overview-side-feed__row .logo-fallback{
  width: 24px;
  height: 24px;
}
.overview-side-feed__row-copy{
  display: flex;
  flex-direction: column;
  gap: 1px;
  min-width: 0;
}
.overview-side-feed__row-copy strong{
  font-size: 13px;
  color: var(--text);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.overview-side-feed__row-copy small{
  color: var(--muted);
  font-size: 11px;
}
.overview-widget__empty{
  margin: 0;
  color: var(--muted);
  font-size: 12.5px;
}
.overview-widget__empty--light{
  color: #8a6a10;
}
@media (max-width: 860px){
  .overview-featured-grid{
    grid-template-columns: 1fr;
  }
}
@media (max-width: 720px){
  .overview-magazine-hero{
    padding: 22px 20px;
  }
  .overview-magazine-hero__top{
    flex-direction: column;
    gap: 10px;
  }
}
.overview-home__hero h2{
  margin:0;
  color:#0d2442;
  font-size:clamp(28px,3vw,42px);
  letter-spacing:-.04em;
}
.overview-home__hero p:last-child{
  max-width:650px;
  margin:10px 0 0;
  color:#64748b;
  font-size:15.5px;
  line-height:1.55;
}
.overview-home__season{
  position:relative;
  z-index:1;
  min-width:150px;
  display:grid;
  gap:3px;
  padding:15px 17px;
  border:1px solid #d8e3ef;
  border-radius:16px;
  background:rgba(255,255,255,.86);
  box-shadow:0 8px 24px rgba(31,49,79,.05);
}
.overview-home__season span{
  color:#718096;
  font-size:9px;
  font-weight:900;
  text-transform:uppercase;
  letter-spacing:.1em;
}
.overview-home__season strong{
  color:#0d2442;
  font-size:24px;
}
.overview-home__season small{
  color:#64748b;
  font-size:11.5px;
  font-weight:700;
}

.overview-nav-grid{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:12px;
}
.overview-nav-card{
  --overview-accent:#315fbe;
  position:relative;
  overflow:hidden;
  min-height:178px;
  display:flex;
  align-items:flex-start;
  gap:14px;
  padding:18px;
  border:1px solid #dce5ef;
  border-radius:18px;
  background:var(--surface);
  color:#0d2442;
  text-align:left;
  cursor:pointer;
  box-shadow:0 8px 24px rgba(31,49,79,.045);
  transition:transform .16s ease,border-color .16s ease,box-shadow .16s ease;
}
.overview-nav-card::before{
  content:"";
  position:absolute;
  inset:0 auto 0 0;
  width:4px;
  background:var(--overview-accent);
}
.overview-nav-card:hover{
  transform:translateY(-2px);
  border-color:color-mix(in srgb,var(--overview-accent) 34%,#dce5ef);
  box-shadow:0 14px 30px rgba(31,49,79,.08);
}
.overview-nav-card--featured{
  grid-column:span 2;
  min-height:198px;
  padding:22px;
  background:
    radial-gradient(circle at 88% 12%, color-mix(in srgb,var(--overview-accent) 12%,transparent), transparent 35%),
    #fff;
}
.overview-nav-card__icon{
  flex:0 0 auto;
  width:42px;
  height:42px;
  display:grid;
  place-items:center;
  border-radius:13px;
  background:color-mix(in srgb,var(--overview-accent) 10%,#fff);
  color:var(--overview-accent);
}
.overview-nav-card--featured .overview-nav-card__icon{
  width:50px;
  height:50px;
  border-radius:15px;
}
.overview-nav-card__icon svg{
  width:23px;
  height:23px;
  fill:none;
  stroke:currentColor;
  stroke-width:1.8;
  stroke-linecap:round;
  stroke-linejoin:round;
}
.overview-nav-card__content{
  min-width:0;
  height:100%;
  display:flex;
  flex-direction:column;
  align-items:flex-start;
}
.overview-nav-card__kicker{
  color:var(--overview-accent);
  font-size:10.5px;
  font-weight:900;
  text-transform:uppercase;
  letter-spacing:.1em;
}
.overview-nav-card strong{
  margin-top:5px;
  color:#0b1e36;
  font-size:21px;
  letter-spacing:-.025em;
}
.overview-nav-card--featured strong{
  font-size:26px;
}
.overview-nav-card__text{
  margin-top:7px;
  color:var(--muted);
  font-size:13px;
  line-height:1.5;
}
.overview-nav-card__meta{
  width:100%;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:8px;
  margin-top:auto;
  padding-top:15px;
  color:#334155;
  font-size:12px;
  font-weight:800;
}
.overview-nav-card__meta > span{
  color:var(--overview-accent);
  font-size:17px;
}
.overview-nav-card--managerArea{ --overview-accent:#1e8e5a; }
.overview-nav-card--competitions{ --overview-accent:#c2414b; }
.overview-nav-card--clubs{ --overview-accent:#17385f; }
.overview-nav-card--transfers{ --overview-accent:#a45c15; }
.overview-nav-card--players{ --overview-accent:#315fbe; }
.overview-nav-card--compare{ --overview-accent:#6d4fb3; }
.overview-nav-card--finance{ --overview-accent:#0f766e; }
.overview-nav-card--managers{ --overview-accent:#64748b; }
.overview-nav-card--palmares{ --overview-accent:#a8790a; }

.competitions-directory-heading{
  margin-bottom:16px;
}
.section-meta{
  color:#64748b;
  font-size:11px;
  font-weight:800;
}
.competition-grid--directory{
  grid-template-columns:repeat(3,minmax(0,1fr));
}
.competition-grid--directory .competition-card{
  min-height:158px;
}

.club-top3-card__face > .player-face,
.club-top3-card__face > .player-face.fallback{
  margin:0;
}
.top3-neutral-fallback{
  display:grid;
  place-items:center;
  width:100%;
  height:100%;
  color:#94a3b8;
  font-size:20px;
  line-height:1;
}

.drawer-backdrop{ z-index:1000; }
.detail-drawer{ z-index:1001; }

@media (max-width:1100px){
  .overview-nav-grid{
    grid-template-columns:repeat(2,minmax(0,1fr));
  }
  .overview-nav-card--featured{
    grid-column:span 1;
  }
  .competition-grid--directory{
    grid-template-columns:repeat(2,minmax(0,1fr));
  }
}
@media (max-width:720px){
  .overview-metrics{
    grid-template-columns:repeat(2,minmax(0,1fr));
  }
  .overview-home__hero{
    min-height:0;
    align-items:stretch;
    flex-direction:column;
    gap:16px;
    padding:20px;
  }
  .overview-home__season{
    min-width:0;
    width:100%;
  }
  .overview-nav-grid,
  .competition-grid--directory{
    grid-template-columns:1fr;
  }
  .overview-nav-card,
  .overview-nav-card--featured{
    grid-column:auto;
    min-height:150px;
    padding:17px;
  }
  .overview-nav-card--featured strong{
    font-size:22px;
  }
}

.overview-nav-card__text--mobile{ display:none; }

@media (max-width:720px){

  .sidebar .nav-item,
  .sidebar.sidebar--collapsed .nav-item{
    align-items:center !important;
    align-content:center !important;
    justify-content:center !important;
    place-items:center !important;
    padding:0 !important;
  }
  .sidebar .nav-icon,
  .sidebar.sidebar--collapsed .nav-icon{
    margin:0 !important;
    align-self:center !important;
    justify-self:center !important;
  }

  #overviewView{
    display:flex;
    flex-direction:column;
    gap:12px;
  }
  #overviewView .overview-home{
    display:contents;
  }
  #overviewView .overview-home__hero{
    order:1;
    min-height:0;
    padding:14px 16px 10px;
    border:0;
    border-radius:0;
    background:transparent;
    box-shadow:none;
  }
  #overviewView .overview-home__hero::after{
    display:none;
  }
  #overviewView .overview-home__hero > div:first-child{
    max-width:none;
  }
  #overviewView .overview-home__hero .eyebrow,
  #overviewView .overview-home__hero > div:first-child > p:last-child,
  #overviewView .overview-home__season{
    display:none !important;
  }
  #overviewView .overview-home__hero h2{
    margin:0;
    font-size:29px;
    line-height:1.12;
    letter-spacing:-.035em;
  }
  #overviewView .overview-metrics{
    order:2;
    margin:0;
    padding:0 0 2px;
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:10px;
  }
  #overviewView .overview-metrics .metric{
    min-height:102px;
    padding:15px 16px;
    border-radius:16px;
  }
  #overviewView .overview-nav-grid{
    order:3;
    gap:10px;
  }

  .overview-nav-card__text--desktop{ display:none !important; }
  .overview-nav-card__text--mobile{ display:block; }

  .overview-nav-card,
  .overview-nav-card--featured{
    min-height:138px;
    padding:15px 16px;
    gap:12px;
  }
  .overview-nav-card__icon,
  .overview-nav-card--featured .overview-nav-card__icon{
    width:44px;
    height:44px;
    border-radius:13px;
  }
  .overview-nav-card strong,
  .overview-nav-card--featured strong{
    font-size:21px;
  }
  .overview-nav-card__text{
    margin-top:5px;
    font-size:10px;
    line-height:1.42;
  }
  .overview-nav-card__meta{
    padding-top:10px;
  }

  #competitionsView .competitions-directory-heading{
    display:none !important;
  }

  #competitionsView .competition-grid--directory{
    gap:10px;
    padding-top:2px;
  }
  #competitionsView .competition-grid--directory .competition-card{
    min-height:116px !important;
    padding:14px 16px !important;
    border-radius:16px;
    gap:13px;
  }
  #competitionsView .competition-grid--directory .competition-logo{
    width:54px;
    height:54px;
    min-width:54px;
    padding:7px;
    border-radius:12px;
  }
  #competitionsView .competition-grid--directory .competition-card strong{
    font-size:20px;
    line-height:1.1;
  }
  #competitionsView .competition-grid--directory .competition-card small{
    margin-top:5px;
    font-size:10px;
  }
  #competitionsView .competition-grid--directory .competition-tag{
    margin-bottom:5px;
    font-size:8px;
  }
}

@media (max-width:720px){

  .sidebar,
  .sidebar.sidebar--collapsed{
    z-index:700 !important;
  }

  #clubHubHeader .fmto-club-mobile-nav,
  .fmto-club-mobile-nav{
    z-index:650 !important;
    background:var(--surface) !important;
    opacity:1 !important;
    isolation:isolate !important;
  }

  #clubHubHeader.fmto-club-header{
    position:relative !important;
    top:auto !important;
    z-index:640 !important;
    isolation:isolate !important;
    overflow:visible !important;
  }

  #clubHubHeader .fmto-club-header__main,
  #clubHubHeader .fmto-club-switch,
  #clubDetail{
    overflow:visible !important;
  }

  #clubHubHeader .fmto-club-switch{
    position:relative !important;
    z-index:660 !important;
  }

  #clubHubHeader .fmto-club-switch__trigger{
    position:relative;
    z-index:661 !important;
    background:var(--surface) !important;
  }

  #clubHubHeader .fmto-club-switch__menu{
    z-index:680 !important;
    background:var(--surface) !important;
    opacity:1 !important;
    box-shadow:0 20px 44px rgba(15,23,42,.22) !important;
  }

  .sidebar .nav-icon,
  .sidebar.sidebar--collapsed .nav-icon{
    display:flex !important;
    align-items:center !important;
    justify-content:center !important;
    line-height:0 !important;
  }

  .sidebar .nav-icon svg,
  .sidebar.sidebar--collapsed .nav-icon svg{
    display:block !important;
    margin:0 !important;
    vertical-align:middle !important;
    transform-origin:center center;
  }

  .sidebar .nav-item[data-view="transfers"] .nav-icon svg,
  .sidebar.sidebar--collapsed .nav-item[data-view="transfers"] .nav-icon svg{
    transform:translateY(-1px) !important;
  }
}

.player-photo-empty{
  display:block;
  background:var(--surface-2, #eef3f9);
  border:1px solid var(--line);
}
.player-face.fallback.player-photo-empty.hidden{
  display:none;
}
.player-face-stack--no-photo .face-flag-overlay{
  display:grid !important;
  right:-4px;
  bottom:-4px;
}

.palmares-ranking .ranking-team__copy{
  min-width:0;
  display:grid;
  gap:4px;
}
.palmares-ranking .ranking-team__copy > strong{
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}
.palmares-ranking-mini{
  display:flex;
  align-items:center;
  flex-wrap:wrap;
  gap:4px;
  min-height:18px;
}
.palmares-ranking-mini-logo{
  width:18px;
  height:18px;
  display:grid;
  place-items:center;
  flex:0 0 18px;
}
.palmares-ranking-mini-logo__img,
.palmares-ranking-mini-logo .competition-fallback{
  width:18px !important;
  height:18px !important;
  min-width:18px !important;
  padding:1px !important;
  object-fit:contain !important;
  border-radius:5px !important;
  background:var(--surface) !important;
  border:1px solid var(--line);
}
.palmares-ranking-mini-more{
  display:inline-grid;
  place-items:center;
  min-width:20px;
  height:18px;
  padding:0 5px;
  border-radius:999px;
  background:var(--surface-2);
  color:var(--muted);
  font-size:10px;
  font-weight:800;
}

@media (max-width:720px){

  #clubHubHeader.fmto-club-header{
    position:relative !important;
    top:auto !important;
    z-index:640 !important;
    display:flex !important;
    flex-direction:column !important;
    overflow:visible !important;
    margin-bottom:12px !important;
    isolation:isolate !important;
  }
  #clubHubHeader .fmto-club-header__main{
    position:relative !important;
    z-index:3 !important;
    display:grid !important;
    grid-template-columns:1fr !important;
    grid-template-areas:none !important;
    min-height:0 !important;
    height:auto !important;
    padding:8px 10px 9px !important;
    gap:6px !important;
    overflow:visible !important;
    background:var(--surface) !important;
  }
  
  #clubHubHeader .fmto-club-header__menu-button,
  #clubHubHeader .fmto-club-header__identity,
  #clubHubHeader .fmto-club-header__actions{
    display:none !important;
  }
  #clubHubHeader .fmto-club-switch{
    grid-column:auto !important;
    grid-row:auto !important;
    width:100% !important;
    margin:0 !important;
    justify-self:stretch !important;
    position:relative !important;
    z-index:4 !important;
  }
  #clubHubHeader .fmto-club-switch__trigger{
    width:100% !important;
    min-height:42px !important;
    background:var(--surface) !important;
    position:relative !important;
    z-index:5 !important;
  }
  #clubHubHeader .fmto-club-switch__menu{
    position:absolute !important;
    z-index:20 !important;
    top:calc(100% + 6px) !important;
    left:0 !important;
    right:0 !important;
    width:100% !important;
    max-height:48vh !important;
    background:var(--surface) !important;
    opacity:1 !important;
  }
  #clubHubHeader .fmto-club-mobile-nav{
    position:relative !important;
    inset:auto !important;
    order:2 !important;
    z-index:2 !important;
    width:100% !important;
    min-height:52px !important;
    margin:0 !important;
    border-top:1px solid var(--club-header-border) !important;
    background:var(--surface) !important;
    opacity:1 !important;
  }
  #clubHubHeader .fmto-club-mobile-nav__item{
    min-height:52px !important;
    padding:5px 2px 6px !important;
  }

  .club-manager-card{
    display:grid !important;
    grid-template-columns:1fr !important;
    gap:8px !important;
    padding:11px 13px 12px !important;
    min-height:0 !important;
  }
  .club-manager-card__identity{
    justify-content:center !important;
    text-align:center !important;
    gap:0 !important;
    padding:0 0 8px !important;
    border-bottom:1px solid var(--line);
  }
  .club-manager-avatar{
    display:none !important;
  }
  .club-manager-card__identity > div{
    justify-items:center !important;
  }
  .club-manager-card__identity strong{
    font-size:21px !important;
    line-height:1.05 !important;
  }
  .club-manager-card__identity small{
    margin-top:3px !important;
    font-size:8px !important;
    font-weight:850 !important;
    text-transform:uppercase;
  }
  .club-manager-card__meta{
    grid-template-columns:repeat(4,minmax(0,1fr)) !important;
    gap:0 !important;
    overflow:visible !important;
    padding:0 !important;
  }
  .club-manager-card__meta > div,
  .club-manager-card__meta > div:nth-child(odd){
    padding:0 7px !important;
    border-left:1px solid var(--line) !important;
  }
  .club-manager-card__meta > div:first-child{
    border-left:0 !important;
    padding-left:0 !important;
  }
  .club-manager-card__meta > div:last-child{
    padding-right:0 !important;
  }
  .club-manager-card__meta dt{
    font-size:6.5px !important;
    line-height:1.15 !important;
    letter-spacing:.035em !important;
  }
  .club-manager-card__meta dd{
    margin-top:4px !important;
    font-size:8.5px !important;
    line-height:1.2 !important;
    overflow-wrap:anywhere !important;
  }
  .club-manager-contact{
    display:block !important;
    max-width:100% !important;
  }

  #playersView .player-results{
    gap:8px !important;
  }
  #playersView .player-result.player-result--with-stats{
    grid-template-columns:1fr !important;
    grid-template-areas:"identity" "actions" "stats" !important;
    gap:8px !important;
    min-height:0 !important;
    padding:11px 12px !important;
    border-radius:14px !important;
  }
  #playersView .player-result .player-main{
    grid-area:identity !important;
    display:grid !important;
    grid-template-columns:58px 38px minmax(0,1fr) !important;
    align-items:center !important;
    gap:8px !important;
    min-width:0 !important;
  }
  #playersView .player-result .player-face-stack{
    grid-column:1 !important;
    width:58px !important;
    height:58px !important;
  }
  #playersView .player-result .list-face,
  #playersView .player-result .player-photo-empty{
    width:58px !important;
    height:58px !important;
    min-width:58px !important;
    border-radius:13px !important;
    object-fit:cover !important;
  }
  #playersView .player-result .face-flag-overlay{
    width:20px !important;
    height:20px !important;
    right:-3px !important;
    bottom:-3px !important;
  }
  #playersView .player-result .player-list-identity{
    grid-column:2 !important;
    width:38px !important;
    min-width:38px !important;
    align-self:center !important;
  }
  #playersView .player-result .identity-team-logo,
  #playersView .player-result .player-team-fallback{
    width:36px !important;
    height:36px !important;
    min-width:36px !important;
    border-radius:10px !important;
  }
  #playersView .player-result .player-main > div:last-child{
    grid-column:3 !important;
    min-width:0 !important;
    display:grid !important;
    align-content:center !important;
    gap:2px !important;
  }
  #playersView .player-result .player-main strong{
    font-size:13px !important;
    line-height:1.15 !important;
    white-space:nowrap !important;
    overflow:hidden !important;
    text-overflow:ellipsis !important;
  }
  #playersView .player-result .player-main span{
    font-size:8.5px !important;
    line-height:1.25 !important;
  }
  #playersView .player-result .player-main small{
    font-size:7.5px !important;
    line-height:1.1 !important;
    color:var(--muted);
  }

  #playersView .player-result .player-actions{
    grid-area:actions !important;
    display:grid !important;
    grid-template-columns:minmax(0,1fr) auto !important;
    grid-template-areas:
      "market ca"
      "profile compare" !important;
    align-items:center !important;
    gap:6px 8px !important;
    width:100% !important;
    justify-self:stretch !important;
  }
  #playersView .player-result .roster-market-stack{
    grid-area:market !important;
    align-items:flex-start !important;
  }
  #playersView .player-result .ca-badge{
    grid-area:ca !important;
    justify-self:end !important;
  }
  #playersView .player-result .player-actions button[data-profile]{
    grid-area:profile !important;
  }
  #playersView .player-result .player-actions button[data-compare]{
    grid-area:compare !important;
  }
  #playersView .player-result .player-actions button[data-profile],
  #playersView .player-result .player-actions button[data-compare]{
    width:100% !important;
    min-width:0 !important;
    height:36px !important;
    min-height:36px !important;
    padding:0 10px !important;
  }
  #playersView .player-result .player-season-stats{
    grid-area:stats !important;
    width:100% !important;
    max-width:none !important;
    height:46px !important;
    padding-top:7px !important;
    border-top:1px solid var(--line) !important;
  }
  #playersView .player-result .player-season-stat{
    min-height:38px !important;
    height:38px !important;
    grid-template-rows:18px 7px 12px !important;
    padding:1px !important;
  }
  #playersView .player-result .player-season-stat__icon,
  #playersView .player-result .player-season-stat__icon svg{
    width:17px !important;
    height:17px !important;
  }
  #playersView .player-result .player-season-stat small{
    font-size:6px !important;
    line-height:7px !important;
    min-height:7px !important;
  }
  #playersView .player-result .player-season-stat strong{
    font-size:9px !important;
    line-height:11px !important;
  }

  #financeView .management-table-heading .eyebrow{
    display:none !important;
  }
  .finance-mobile-cards{
    gap:9px !important;
  }
  .finance-mobile-card{
    overflow:hidden !important;
    border-radius:15px !important;
    box-shadow:0 8px 22px rgba(15,23,42,.05) !important;
  }
  .finance-mobile-card__head{
    min-height:58px !important;
    padding:10px 13px !important;
    border-bottom:1px solid var(--line) !important;
    background:linear-gradient(90deg,#fff,#f8fafc) !important;
  }
  .finance-mobile-logo{
    width:34px !important;
    height:34px !important;
  }
  .finance-mobile-card__head strong{
    font-size:14px !important;
  }
  .finance-mobile-card__head span{
    font-size:8px !important;
  }
  .finance-mobile-group{
    position:relative;
    padding:10px 13px 11px !important;
    border-top:0 !important;
  }
  .finance-mobile-group::before,
  .finance-mobile-details::before{
    content:"";
    position:absolute;
    left:0;
    top:0;
    bottom:0;
    width:3px;
    border-radius:0 3px 3px 0;
  }
  .finance-mobile-group--roster{
    background:linear-gradient(90deg,rgba(49,95,190,.055),transparent 58%) !important;
  }
  .finance-mobile-group--roster::before{ background:#315fbe; }
  .finance-mobile-group--wages{
    background:linear-gradient(90deg,rgba(15,118,110,.055),transparent 58%) !important;
  }
  .finance-mobile-group--wages::before{ background:#0f766e; }
  .finance-mobile-group--credits{
    background:linear-gradient(90deg,rgba(168,121,10,.06),transparent 58%) !important;
  }
  .finance-mobile-group--credits::before{ background:#a8790a; }
  .finance-mobile-group h3,
  .finance-mobile-details summary{
    position:relative;
    display:flex;
    align-items:center;
    gap:6px;
    margin:0 0 8px !important;
    font-size:9px !important;
    letter-spacing:.08em !important;
  }
  .finance-mobile-group h3::before,
  .finance-mobile-details summary::before{
    content:"";
    width:7px;
    height:7px;
    border:2px solid currentColor;
    border-radius:2px;
    opacity:.75;
  }
  .finance-mobile-details{
    position:relative;
    padding:9px 13px !important;
    background:linear-gradient(90deg,rgba(164,92,21,.05),transparent 58%) !important;
  }
  .finance-mobile-details::before{ background:#a45c15; }
  .finance-mobile-grid{
    gap:6px !important;
  }
  .finance-mobile-metric{
    min-height:48px !important;
    padding:7px 8px !important;
    border-radius:9px !important;
  }
  .finance-mobile-metric span{
    font-size:6.5px !important;
  }
  .finance-mobile-metric strong{
    margin-top:2px !important;
    font-size:10px !important;
  }

  #managersView .management-table-heading .eyebrow{
    display:none !important;
  }

  .palmares-ranking li{
    grid-template-columns:24px minmax(0,1fr) auto !important;
    align-items:center !important;
    min-height:54px !important;
    padding:7px 0 !important;
  }
  .palmares-ranking .ranking-team{
    align-items:center !important;
    min-width:0 !important;
  }
  .palmares-ranking .ranking-team__copy{
    min-width:0;
    display:grid;
    gap:4px;
  }
  .palmares-ranking .ranking-team__copy > strong{
    white-space:nowrap;
    overflow:hidden;
    text-overflow:ellipsis;
  }
  .palmares-ranking-mini{
    display:flex !important;
    align-items:center;
    gap:4px;
    min-height:17px;
  }
  .palmares-ranking-mini-logo{
    width:17px;
    height:17px;
    display:grid;
    place-items:center;
    flex:0 0 17px;
  }
  .palmares-ranking-mini-logo__img,
  .palmares-ranking-mini-logo .competition-fallback{
    width:17px !important;
    height:17px !important;
    min-width:17px !important;
    padding:1px !important;
    object-fit:contain !important;
    border-radius:5px !important;
    background:var(--surface) !important;
    border:1px solid var(--line);
  }
  .palmares-ranking-mini-more{
    display:inline-grid;
    place-items:center;
    min-width:20px;
    height:17px;
    padding:0 4px;
    border-radius:999px;
    background:#edf2f7;
    color:#52647b;
    font-size:7px;
    font-weight:900;
  }

  .palmares-season-label{
    min-width:72px !important;
  }
  .palmares-season-label strong{
    white-space:nowrap !important;
    overflow:visible !important;
    text-overflow:clip !important;
    font-size:15px !important;
  }
}

@media (max-width:720px){
  
  #clubHubHeader .fmto-club-mobile-nav,
  .fmto-club-mobile-nav{
    position:fixed !important;
    top:calc(56px + env(safe-area-inset-top,0px)) !important;
    left:0 !important;
    right:0 !important;
    width:100% !important;
    height:54px !important;
    min-height:54px !important;
    z-index:680 !important;
    margin:0 !important;
    background:var(--surface) !important;
    border-bottom:1px solid #dce4ee !important;
    box-shadow:0 4px 12px rgba(15,23,42,.08) !important;
  }
  #clubHubHeader.fmto-club-header{
    position:relative !important;
    top:auto !important;
    z-index:30 !important;
    overflow:visible !important;
  }
  #clubHubHeader .fmto-club-header__main{
    margin-top:54px !important;
    position:relative !important;
    z-index:31 !important;
    overflow:visible !important;
  }
  #clubHubHeader .fmto-club-switch{ position:relative !important; z-index:32 !important; }
  #clubHubHeader .fmto-club-switch__menu{ z-index:40 !important; background:var(--surface) !important; }
  #clubOverviewIdentityAnchor,
  #clubRosterOverviewAnchor,
  #clubTransferSummary,
  #clubHonoursSection{ scroll-margin-top:calc(118px + env(safe-area-inset-top,0px)) !important; }

  .club-manager-card__identity{ border-bottom:0 !important; padding-bottom:2px !important; }
  .club-manager-card__meta{
    border-top:0 !important;
    grid-template-columns:repeat(4,minmax(0,1fr)) !important;
    gap:0 !important;
    padding:6px 0 0 !important;
  }
  .club-manager-card__meta > div,
  .club-manager-card__meta > div:nth-child(odd){
    display:grid !important;
    justify-items:center !important;
    align-content:start !important;
    text-align:center !important;
    min-width:0 !important;
    padding:0 5px !important;
    border-left:1px solid rgba(148,163,184,.20) !important;
  }
  .club-manager-card__meta > div:first-child{ border-left:0 !important; }
  .club-manager-card__meta dt,
  .club-manager-card__meta dd{ width:100% !important; text-align:center !important; }
  .club-manager-card__meta dd{ overflow-wrap:anywhere !important; }

  .player-face-stack--no-photo{
    position:relative !important;
    width:58px !important;
    height:58px !important;
    display:inline-grid !important;
  }
  .player-face-stack--no-photo > .player-photo-empty{
    display:block !important;
    width:58px !important;
    height:58px !important;
    min-width:58px !important;
    border-radius:13px !important;
    background:#fff !important;
    border:1px solid #dce5ef !important;
  }
  .player-face-stack--no-photo > .face-flag-overlay{
    display:grid !important;
    right:-3px !important;
    bottom:-3px !important;
  }

  #transfersView .transfer-operations{ gap:9px !important; }
  #transfersView .transfer-operation{ border-radius:15px !important; }
  #transfersView .transfer-operation > header{ padding:9px 12px !important; }
  #transfersView .transfer-operation-kicker{ font-size:8px !important; }
  #transfersView .transfer-operation h3{ margin:1px 0 0 !important; font-size:14px !important; }
  #transfersView .transfer-operation-count{ font-size:9px !important; }
  #transfersView .transfer-movement.transfer-movement--aligned{
    display:grid !important;
    grid-template-columns:minmax(0,1fr) auto !important;
    grid-template-areas:"player value" "seller buyer" !important;
    gap:8px 9px !important;
    padding:10px 12px !important;
    align-items:center !important;
  }
  #transfersView .transfer-col--player{ grid-area:player !important; }
  #transfersView .transfer-col--value{ grid-area:value !important; }
  #transfersView .transfer-col--seller{ grid-area:seller !important; position:relative !important; }
  #transfersView .transfer-col--buyer{ grid-area:buyer !important; }
  #transfersView .transfer-player.transfer-player--aligned{ gap:8px !important; padding:0 !important; }
  #transfersView .transfer-player-face{ width:38px !important; height:38px !important; min-width:38px !important; border-radius:10px !important; }
  #transfersView .transfer-player-copy strong{ font-size:12px !important; }
  #transfersView .transfer-player-copy small{ font-size:9px !important; margin-top:1px !important; }
  #transfersView .transfer-value{ min-width:52px !important; padding:0 !important; border:0 !important; text-align:right !important; }
  #transfersView .transfer-value strong{ font-size:13px !important; }
  #transfersView .transfer-value small{ display:none !important; }
  #transfersView .transfer-col--seller,
  #transfersView .transfer-col--buyer{
    display:grid !important;
    grid-template-columns:28px minmax(0,1fr) !important;
    align-items:center !important;
    gap:6px !important;
    min-width:0 !important;
    padding:7px 8px !important;
    border-radius:10px !important;
    background:#f7f9fc !important;
  }
  #transfersView .transfer-col--seller::after{
    content:"→";
    position:absolute;
    right:-9px;
    top:50%;
    transform:translateY(-50%);
    color:#94a3b8;
    font-weight:900;
  }
  #transfersView .transfer-team-logo,
  #transfersView .transfer-team-fallback{ width:28px !important; height:28px !important; min-width:28px !important; border-radius:8px !important; }
  #transfersView .transfer-col__copy strong{ font-size:9px !important; white-space:nowrap !important; overflow:hidden !important; text-overflow:ellipsis !important; }
  #transfersView .transfer-col__copy small{ font-size:7px !important; }
  #transfersView .transfer-clause-row{ grid-column:1/-1 !important; margin-top:0 !important; }

  #compareView .section-heading .eyebrow{ display:none !important; }
  #compareView .compare-table-wrap{ width:100% !important; max-width:100% !important; overflow-x:hidden !important; }
  #compareView .compare-table{ width:100% !important; min-width:100% !important; table-layout:fixed !important; }
  #compareView .compare-table th:first-child{ width:30% !important; min-width:0 !important; }
  #compareView .compare-table th:not(:first-child),
  #compareView .compare-table td:not(:first-child){ width:35% !important; min-width:0 !important; }
  #compareView .compare-sticky-label span{ padding:8px 4px !important; font-size:8px !important; }
  #compareView .compare-summary-card{ min-height:92px !important; padding:8px 25px 8px 7px !important; }
  #compareView .compare-summary-head{ gap:4px !important; }
  #compareView .compare-summary-head strong{ font-size:11px !important; line-height:1.1 !important; }
  #compareView .compare-face{ width:34px !important; height:34px !important; min-width:34px !important; border-radius:9px !important; }
  #compareView .remove-compare{ width:22px !important; height:22px !important; top:5px !important; right:5px !important; }
  #compareView .compare-table th,
  #compareView .compare-table td{ padding:7px 4px !important; font-size:9px !important; }
  #compareView .compare-table td{ text-align:center !important; }
}

.compare-mobile-shell{ display:none; }
@media (max-width:720px){
  #compareView .section-heading .eyebrow{ display:none !important; }
  .compare-mobile-shell{ display:grid; gap:10px; width:100%; min-width:0; }
  .compare-mobile-players{
    display:grid;
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:8px;
  }
  .compare-mobile-player{
    position:relative;
    min-width:0;
    display:grid;
    gap:7px;
    padding:10px;
    border:1px solid #dce5ef;
    border-top:3px solid #315fbe;
    border-radius:14px;
    background:var(--surface);
    box-shadow:0 7px 18px rgba(15,23,42,.045);
  }
  .compare-mobile-player.best-ca{ border-top-color:#16a36a; }
  .compare-mobile-player .remove-compare{
    position:absolute;
    top:6px;
    right:6px;
    width:24px;
    height:24px;
    z-index:2;
  }
  .compare-mobile-player__top{
    min-width:0;
    display:grid;
    grid-template-columns:auto auto minmax(0,1fr);
    align-items:center;
    gap:6px;
    padding-right:23px;
  }
  .compare-mobile-player__face:empty{ display:none; }
  .compare-mobile-player__face .compare-face{
    width:42px !important;
    height:42px !important;
    min-width:42px !important;
    border-radius:10px !important;
  }
  
  .compare-mobile-player .player-face-stack--no-photo{ display:none !important; }
  .compare-mobile-identity{
    min-width:30px;
    display:flex;
    align-items:center;
    justify-content:center;
  }
  .compare-mobile-identity .identity-team-logo,
  .compare-mobile-identity .player-team-fallback{
    width:30px !important;
    height:30px !important;
    min-width:30px !important;
    border-radius:8px !important;
  }
  .compare-mobile-player__copy{
    min-width:0;
    display:grid;
    gap:1px;
  }
  .compare-mobile-player__copy strong{
    min-width:0;
    font-size:11px;
    line-height:1.12;
    white-space:nowrap;
    overflow:hidden;
    text-overflow:ellipsis;
  }
  .compare-mobile-player__copy span,
  .compare-mobile-player__copy small{
    font-size:7px;
    line-height:1.2;
    color:#64748b;
  }
  .compare-mobile-player__bottom{
    display:grid;
    grid-template-columns:minmax(0,1fr) auto;
    align-items:end;
    gap:6px;
    padding-top:6px;
    border-top:1px solid #edf1f5;
  }
  .compare-mobile-player__bottom>span{
    min-width:0;
    font-size:7.5px;
    line-height:1.3;
    color:#52647b;
    overflow-wrap:anywhere;
  }
  .compare-mobile-player__bottom>strong{
    display:flex;
    align-items:baseline;
    gap:3px;
    font-family:var(--font-condensed);
    font-size:25px;
    line-height:1;
    color:#0d2442;
  }
  .compare-mobile-player__bottom>strong small{
    font-family:inherit;
    font-size:8px;
    color:#64748b;
  }
  .compare-mobile-legend{
    display:grid;
    grid-template-columns:1fr minmax(92px,1.15fr) 1fr;
    gap:4px;
    align-items:center;
    padding:7px 8px;
    border-radius:10px;
    background:#14243a;
    color:#fff;
    text-align:center;
  }
  .compare-mobile-legend span{
    min-width:0;
    font-size:7px;
    font-weight:800;
    white-space:nowrap;
    overflow:hidden;
    text-overflow:ellipsis;
  }
  .compare-mobile-legend strong{
    font-size:7px;
    letter-spacing:.08em;
  }
  .compare-mobile-groups{ display:grid; gap:10px; }
  .compare-mobile-group{
    overflow:hidden;
    border:1px solid #dce5ef;
    border-radius:13px;
    background:var(--surface);
  }
  .compare-mobile-group h3{
    margin:0;
    padding:8px 10px;
    background:var(--surface-2);
    color:#17385f;
    font-size:10px;
    text-transform:uppercase;
    letter-spacing:.045em;
  }
  .compare-mobile-row{
    display:grid;
    grid-template-columns:1fr minmax(110px,1.35fr) 1fr;
    align-items:center;
    min-height:37px;
    border-top:1px solid #edf1f5;
  }
  .compare-mobile-row:first-of-type{ border-top:0; }
  .compare-mobile-label{
    align-self:stretch;
    display:grid;
    place-items:center;
    padding:5px 6px;
    border-left:1px solid #edf1f5;
    border-right:1px solid #edf1f5;
    color:#334155;
    font-size:7.5px;
    font-weight:800;
    text-align:center;
    line-height:1.15;
  }
  .compare-mobile-value{
    display:grid;
    place-items:center;
    min-width:0;
    padding:5px 4px;
    font-size:12px;
    color:#334155;
  }
  .compare-mobile-value.is-best{
    color:#087452 !important;
    font-weight:950;
    background:linear-gradient(180deg,transparent 68%,rgba(16,185,129,.16) 68%);
  }
  .compare-mobile-value.is-missing{ color:#94a3b8 !important; }
  .compare-mobile-value small{ font-size:6px; color:#64748b; }
  
  #compareView .compare-table-section{ display:none !important; }
}

.nav-scroll-hint{
  display:none;
}

@media (max-width:720px){

  .sidebar,
  .sidebar.sidebar--collapsed{
    position:fixed !important;
    isolation:isolate;
  }

  .nav-scroll-hint{
    position:absolute;
    top:5px;
    bottom:5px;
    z-index:950;
    width:30px;
    display:grid;
    place-items:center;
    opacity:0;
    visibility:hidden;
    pointer-events:none;
    transition:opacity .16s ease, visibility .16s ease;
  }

  .nav-scroll-hint--right{
    right:0;
    background:linear-gradient(
      90deg,
      rgba(255,255,255,0) 0%,
      rgba(255,255,255,.86) 48%,
      #fff 78%
    );
  }

  .nav-scroll-hint--left{
    left:48px;
    background:linear-gradient(
      270deg,
      rgba(255,255,255,0) 0%,
      rgba(255,255,255,.86) 48%,
      #fff 78%
    );
  }

  .sidebar.has-nav-scroll-right .nav-scroll-hint--right,
  .sidebar.has-nav-scroll-left .nav-scroll-hint--left{
    opacity:1;
    visibility:visible;
  }

  .nav-scroll-hint__chevron{
    width:19px;
    height:28px;
    display:grid;
    place-items:center;
    border:1px solid rgba(49,95,190,.18);
    border-radius:999px;
    background:rgba(255,255,255,.94);
    color:#315fbe;
    font-size:18px;
    font-weight:900;
    line-height:1;
    box-shadow:0 3px 10px rgba(15,23,42,.10);
  }

  .sidebar.has-nav-scroll-right .nav-scroll-hint--right .nav-scroll-hint__chevron{
    animation:fmto-nav-nudge-right 1.35s ease-in-out infinite;
  }

  .sidebar.has-nav-scroll-left .nav-scroll-hint--left .nav-scroll-hint__chevron{
    animation:fmto-nav-nudge-left 1.35s ease-in-out infinite;
  }

  .sidebar .nav-list,
  .sidebar.sidebar--collapsed .nav-list{
    padding-right:12px !important;
  }

  #compareView .compare-pick-result .player-face-stack--no-photo{
    display:none !important;
  }

  #compareView .compare-pick-result .player-main{
    min-width:0;
  }

  #compareView .compare-pick-result .compare-picker-identity{
    flex:0 0 auto;
  }

  #compareView .compare-pick-result .player-main > span:last-child{
    min-width:0;
  }

  #compareView .compare-pick-result .player-main > span:last-child strong{
    display:block;
    white-space:nowrap;
    overflow:hidden;
    text-overflow:ellipsis;
  }
}

@keyframes fmto-nav-nudge-right{
  0%,100%{ transform:translateX(0); }
  50%{ transform:translateX(3px); }
}

@keyframes fmto-nav-nudge-left{
  0%,100%{ transform:translateX(0); }
  50%{ transform:translateX(-3px); }
}

@media (prefers-reduced-motion: reduce){
  .nav-scroll-hint__chevron{
    animation:none !important;
  }
}

@media (max-width:720px){
  .nav-scroll-hint{
    top:7px !important;
    bottom:7px !important;
    width:40px !important;
    z-index:1500 !important;
  }

  .nav-scroll-hint--left{
    left:54px !important;
    background:linear-gradient(
      270deg,
      rgba(255,255,255,0) 0%,
      rgba(255,255,255,.78) 34%,
      #fff 82%
    ) !important;
  }

  .nav-scroll-hint--right{
    right:6px !important;
    background:linear-gradient(
      90deg,
      rgba(255,255,255,0) 0%,
      rgba(255,255,255,.78) 34%,
      #fff 82%
    ) !important;
  }

  .nav-scroll-hint__chevron{
    width:24px !important;
    height:34px !important;
    border:1px solid rgba(37,99,235,.34) !important;
    background:var(--surface) !important;
    color:#2563eb !important;
    font-size:22px !important;
    box-shadow:0 4px 14px rgba(15,23,42,.18) !important;
  }

  .sidebar.has-nav-scroll-right .nav-list{
    -webkit-mask-image:linear-gradient(90deg,#000 0%,#000 calc(100% - 34px),rgba(0,0,0,.18) 100%);
    mask-image:linear-gradient(90deg,#000 0%,#000 calc(100% - 34px),rgba(0,0,0,.18) 100%);
  }

  .sidebar.has-nav-scroll-left .nav-list{
    -webkit-mask-image:linear-gradient(90deg,rgba(0,0,0,.18) 0%,#000 34px,#000 100%);
    mask-image:linear-gradient(90deg,rgba(0,0,0,.18) 0%,#000 34px,#000 100%);
  }

  .sidebar.has-nav-scroll-left.has-nav-scroll-right .nav-list{
    -webkit-mask-image:linear-gradient(
      90deg,
      rgba(0,0,0,.18) 0%,
      #000 34px,
      #000 calc(100% - 34px),
      rgba(0,0,0,.18) 100%
    );
    mask-image:linear-gradient(
      90deg,
      rgba(0,0,0,.18) 0%,
      #000 34px,
      #000 calc(100% - 34px),
      rgba(0,0,0,.18) 100%
    );
  }
}

@media (max-width:720px){

  .compare-mobile-legend{ display:none !important; }

  .compare-mobile-group h3{
    display:block !important;
    width:100% !important;
    text-align:center !important;
    padding-left:10px !important;
    padding-right:10px !important;
  }

  .compare-mobile-player{
    min-height:146px !important;
    padding:9px 7px 8px !important;
    gap:6px !important;
  }

  .compare-mobile-player .remove-compare{
    top:6px !important;
    right:6px !important;
    width:24px !important;
    height:24px !important;
    z-index:3 !important;
  }

  .compare-mobile-player__top{
    display:grid !important;
    grid-template-columns:46px minmax(0,1fr) !important;
    align-items:center !important;
    column-gap:5px !important;
    min-height:99px !important;
    padding-right:22px !important;
  }

  .compare-mobile-player__media-stack{
    width:46px !important;
    min-width:46px !important;
    display:flex !important;
    flex-direction:column !important;
    align-items:flex-start !important;
    justify-content:center !important;
    gap:4px !important;
    margin:0 !important;
    padding:0 !important;
  }

  .compare-mobile-player__face,
  .compare-mobile-player__club-logo{
    position:static !important;
    display:block !important;
    width:46px !important;
    height:46px !important;
    min-width:46px !important;
    max-width:46px !important;
    flex:0 0 46px !important;
    margin:0 !important;
    padding:0 !important;
    inset:auto !important;
    box-sizing:border-box !important;
  }

  .compare-mobile-face-image{
    position:static !important;
    display:block !important;
    width:46px !important;
    height:46px !important;
    min-width:46px !important;
    max-width:46px !important;
    margin:0 !important;
    padding:0 !important;
    inset:auto !important;
    object-fit:cover !important;
    border-radius:10px !important;
    border:1px solid #dce5ef !important;
    box-sizing:border-box !important;
    background:#fff !important;
  }

  .compare-mobile-player__club-logo{
    display:grid !important;
    place-items:center !important;
    border:1px solid #dce5ef !important;
    border-radius:10px !important;
    background:var(--surface) !important;
    overflow:hidden !important;
  }

  .compare-mobile-player__club-logo > .compare-mobile-club-logo-image,
  .compare-mobile-player__club-logo > .player-team-fallback{
    position:static !important;
    display:block !important;
    width:46px !important;
    height:46px !important;
    min-width:46px !important;
    max-width:46px !important;
    margin:0 !important;
    padding:4px !important;
    inset:auto !important;
    object-fit:contain !important;
    border:0 !important;
    border-radius:9px !important;
    box-sizing:border-box !important;
    background:var(--surface) !important;
  }

  .compare-mobile-player__face--empty,
  .compare-mobile-player__club-logo--empty{
    background:var(--surface) !important;
    border:1px solid #dce5ef !important;
    border-radius:10px !important;
  }

  .compare-mobile-player .flag-icon,
  .compare-mobile-player .flag-placeholder,
  .compare-mobile-player .face-flag-overlay,
  .compare-mobile-player .player-identity-icons{
    display:none !important;
  }

  .compare-mobile-player__copy{
    min-width:0 !important;
    height:100% !important;
    display:flex !important;
    flex-direction:column !important;
    justify-content:center !important;
    align-items:flex-start !important;
    gap:2px !important;
    margin:0 !important;
    padding:0 !important;
    text-align:left !important;
  }

  .compare-mobile-player__copy > *{
    width:100% !important;
    margin-left:0 !important;
    padding-left:0 !important;
    text-align:left !important;
  }

  .compare-mobile-player__surname,
  .compare-mobile-player__given-name{
    display:block !important;
    white-space:normal !important;
    overflow:visible !important;
    text-overflow:clip !important;
    -webkit-line-clamp:unset !important;
    color:#0b1e36 !important;
    font-size:12px !important;
    line-height:1.02 !important;
  }

  .compare-mobile-player__surname{ font-weight:900 !important; }
  .compare-mobile-player__given-name{ font-weight:750 !important; }

  .compare-mobile-player__copy span{
    margin-top:3px !important;
    color:#64748b !important;
    font-size:7.5px !important;
    line-height:1.15 !important;
  }

  .compare-mobile-player__copy small{
    color:#7b8798 !important;
    font-size:7px !important;
    line-height:1.15 !important;
  }

  .compare-mobile-player__bottom{
    min-height:33px !important;
    display:grid !important;
    grid-template-columns:minmax(0,1fr) auto !important;
    align-items:end !important;
    gap:5px !important;
    padding-top:7px !important;
    border-top:1px solid #e7edf4 !important;
  }

  .compare-mobile-player__bottom > span{
    min-width:0 !important;
    color:#52647b !important;
    font-size:7.5px !important;
    line-height:1.25 !important;
  }

  .compare-mobile-player__bottom > strong{
    display:flex !important;
    align-items:baseline !important;
    gap:3px !important;
    white-space:nowrap !important;
    color:#0b1e36 !important;
    font-size:28px !important;
    line-height:.9 !important;
  }

  .compare-mobile-player__bottom > strong small{
    color:#64748b !important;
    font-size:8px !important;
  }
}

.fmto-club-header__logo-stack{
  position:relative;
  display:inline-grid;
  width:max-content;
  flex:0 0 auto;
  overflow:visible;
}

.club-team-flag-badge{
  position:absolute;
  left:-6px;
  bottom:-6px;
  display:grid;
  place-items:center;
  width:24px;
  height:24px;
  border:2px solid #fff;
  border-radius:999px;
  overflow:hidden;
  background:var(--surface);
  box-shadow:0 4px 12px rgba(15,23,42,.18);
  z-index:3;
  pointer-events:none;
}

.club-team-flag-badge__img{
  display:block;
  width:100% !important;
  height:100% !important;
  min-width:100%;
  object-fit:cover;
}

.club-stadium-card__meta--compact{
  grid-template-columns:repeat(2,minmax(0,1fr)) !important;
}

.fmto-club-mobile-summary{
  display:none;
}

@media (max-width:720px){

  #clubHubHeader .fmto-club-header__main{
    margin-top:0 !important;
    padding-top:7px !important;
    padding-bottom:6px !important;
  }

  #clubHubHeader .fmto-club-switch{
    margin-top:0 !important;
  }

  #clubHubHeader .fmto-club-mobile-summary{
    display:flex !important;
    align-items:center;
    justify-content:space-between;
    gap:8px;
    padding:5px 11px 7px !important;
    border-top:1px solid var(--club-header-border);
    background:var(--surface);
  }

  #clubHubHeader .fmto-club-mobile-summary__team{
    display:flex;
    align-items:center;
    gap:9px;
    min-width:0;
    flex:1 1 auto;
  }

  #clubHubHeader .fmto-club-mobile-summary__team .fmto-club-header__logo{
    width:42px !important;
    height:42px !important;
  }

  #clubHubHeader .fmto-club-mobile-summary__copy{
    display:grid;
    gap:2px;
    min-width:0;
  }

  #clubHubHeader .fmto-club-mobile-summary__copy strong{
    color:#0f2341;
    font-size:15px;
    line-height:1;
    font-weight:900;
    white-space:nowrap;
    overflow:hidden;
    text-overflow:ellipsis;
  }

  #clubHubHeader .fmto-club-mobile-summary__copy span{
    color:#64748b;
    font-size:9px;
    line-height:1.1;
    font-weight:700;
  }

  #clubHubHeader .fmto-club-mobile-summary__competitions{
    display:flex;
    align-items:center;
    justify-content:flex-end;
    gap:5px;
    flex:0 0 auto;
    max-width:55%;
    overflow-x:auto;
    overscroll-behavior-inline:contain;
    scrollbar-width:none;
  }

  #clubHubHeader .fmto-club-mobile-summary__competitions::-webkit-scrollbar{
    display:none;
  }

  #clubHubHeader .fmto-club-mobile-summary__competitions .competition-link{
    min-height:32px !important;
    padding:4px 7px !important;
    border-radius:11px !important;
    white-space:nowrap;
  }

  #clubHubHeader .fmto-club-mobile-summary__competitions .competition-chip-logo{
    width:18px !important;
    height:18px !important;
  }

  .club-team-flag-badge{
    left:-4px;
    bottom:-4px;
    width:18px;
    height:18px;
    border-width:1.5px;
  }

  .club-overview-identity__stadium .club-stadium-card__heading strong{
    font-size:22px !important;
    line-height:1.05 !important;
  }

  .club-overview-identity__stadium .club-stadium-card__meta{
    grid-template-columns:repeat(2,minmax(0,1fr)) !important;
  }
}

.fmto-global-loader{
  position:fixed;
  inset:0;
  z-index:5000;
  display:grid;
  place-items:center;
  padding:24px;
  opacity:0;
  visibility:hidden;
  pointer-events:none;
  background:rgba(244,247,251,.86);
  backdrop-filter:blur(5px);
  transition:opacity .18s ease, visibility .18s ease;
}
.fmto-global-loader.is-active{
  opacity:1;
  visibility:visible;
  pointer-events:auto;
}
.fmto-global-loader__panel{
  display:grid;
  justify-items:center;
  gap:10px;
  min-width:min(340px,calc(100vw - 42px));
  padding:28px 34px;
  border:1px solid #dce5ef;
  border-radius:22px;
  background:rgba(255,255,255,.96);
  box-shadow:0 24px 70px rgba(15,35,65,.12);
  text-align:center;
}
.fmto-global-loader__panel>strong{
  color:#10233f;
  font-size:19px;
  line-height:1.15;
}
.fmto-global-loader__message{
  max-width:300px;
  color:#60718a;
  font-size:12px;
  line-height:1.4;
}
.fmto-global-loader__orbit,
.fmto-loader-orbit{
  position:relative;
  display:grid;
  place-items:center;
}
.fmto-global-loader__orbit{
  width:122px;
  height:122px;
  margin-bottom:3px;
}
.fmto-global-loader__logo{
  width:76px;
  height:76px;
  object-fit:contain;
  z-index:2;
  filter:drop-shadow(0 7px 14px rgba(15,35,65,.12));
}
.fmto-global-loader__ring,
.fmto-loader-orbit__ring{
  position:absolute;
  inset:0;
  border:3px solid rgba(37,99,235,.13);
  border-top-color:#2563eb;
  border-right-color:#5d78f3;
  border-radius:999px;
  animation:fmto-loader-spin .95s linear infinite;
}
.fmto-loader-dots{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:5px;
  min-height:9px;
}
.fmto-loader-dots i{
  width:6px;
  height:6px;
  border-radius:999px;
  background:#2563eb;
  animation:fmto-loader-dot 1s ease-in-out infinite;
}
.fmto-loader-dots i:nth-child(2){ animation-delay:.14s; }
.fmto-loader-dots i:nth-child(3){ animation-delay:.28s; }

.fmto-section-loader{
  display:grid;
  justify-items:center;
  gap:9px;
  width:100%;
  min-height:190px;
  padding:28px 20px 20px;
  border:1px solid #dce5ef;
  border-radius:18px;
  background:var(--surface);
  text-align:center;
}
.fmto-section-loader--compact{
  min-height:112px;
  padding:17px 14px;
  border:0;
  box-shadow:none;
  background:transparent;
}
.fmto-loader-orbit{
  width:78px;
  height:78px;
}
.fmto-section-loader--compact .fmto-loader-orbit{
  width:54px;
  height:54px;
}
.fmto-section-loader__logo{
  width:50px;
  height:50px;
  object-fit:contain;
  z-index:2;
}
.fmto-section-loader--compact .fmto-section-loader__logo{
  width:34px;
  height:34px;
}
.fmto-section-loader__copy{
  display:grid;
  justify-items:center;
  gap:5px;
}
.fmto-section-loader__copy strong{
  color:#10233f;
  font-size:15px;
  line-height:1.15;
}
.fmto-section-loader__copy>span:not(.fmto-loader-dots){
  color:#63738a;
  font-size:11px;
  line-height:1.35;
}

.fmto-skeleton{
  display:grid;
  gap:9px;
  width:100%;
  margin-top:10px;
}
.fmto-skeleton__row{
  display:grid;
  grid-template-columns:44px minmax(0,1fr) 72px;
  align-items:center;
  gap:11px;
  min-height:62px;
  padding:9px 11px;
  border:1px solid #e4eaf1;
  border-radius:14px;
  background:var(--surface);
  overflow:hidden;
}
.fmto-skeleton__avatar,
.fmto-skeleton__body i,
.fmto-skeleton__pill{
  position:relative;
  overflow:hidden;
  display:block;
  background:#e9eef4;
}
.fmto-skeleton__avatar{
  width:44px;
  height:44px;
  border-radius:11px;
}
.fmto-skeleton__body{
  display:grid;
  gap:7px;
}
.fmto-skeleton__body i{
  height:9px;
  border-radius:999px;
}
.fmto-skeleton__body i:first-child{ width:68%; }
.fmto-skeleton__body i:last-child{ width:43%; }
.fmto-skeleton__pill{
  justify-self:end;
  width:62px;
  height:22px;
  border-radius:999px;
}
.fmto-skeleton__avatar::after,
.fmto-skeleton__body i::after,
.fmto-skeleton__pill::after{
  content:"";
  position:absolute;
  inset:0;
  transform:translateX(-100%);
  background:linear-gradient(90deg,transparent,rgba(255,255,255,.78),transparent);
  animation:fmto-skeleton-shimmer 1.25s ease-in-out infinite;
}

@keyframes fmto-loader-spin{ to{ transform:rotate(360deg); } }
@keyframes fmto-loader-dot{
  0%,80%,100%{ opacity:.32; transform:scale(.78); }
  40%{ opacity:1; transform:scale(1); }
}
@keyframes fmto-skeleton-shimmer{
  100%{ transform:translateX(100%); }
}

@media (max-width:720px){
  .fmto-global-loader{
    padding:18px;
  }
  .fmto-global-loader__panel{
    min-width:0;
    width:min(300px,calc(100vw - 36px));
    padding:25px 20px;
    border-radius:20px;
  }
  .fmto-global-loader__orbit{
    width:104px;
    height:104px;
  }
  .fmto-global-loader__logo{
    width:66px;
    height:66px;
  }
  .fmto-section-loader{
    min-height:150px;
    padding:22px 14px 17px;
  }
  .fmto-loader-orbit{
    width:68px;
    height:68px;
  }
  .fmto-section-loader__logo{
    width:43px;
    height:43px;
  }
  .fmto-skeleton__row{
    grid-template-columns:38px minmax(0,1fr) 52px;
    min-height:55px;
    gap:8px;
    padding:8px 9px;
  }
  .fmto-skeleton__avatar{
    width:38px;
    height:38px;
    border-radius:10px;
  }
  .fmto-skeleton__pill{
    width:48px;
    height:20px;
  }

  #clubHubHeader .fmto-club-mobile-summary__team{
    min-width:88px;
  }
  #clubHubHeader .fmto-club-mobile-summary__copy strong{
    max-width:110px;
    font-size:14px;
  }
  #clubHubHeader .fmto-club-mobile-summary__competitions{
    max-width:58%;
  }
}

@media (prefers-reduced-motion:reduce){
  .fmto-global-loader__ring,
  .fmto-loader-orbit__ring,
  .fmto-loader-dots i,
  .fmto-skeleton__avatar::after,
  .fmto-skeleton__body i::after,
  .fmto-skeleton__pill::after{
    animation:none !important;
  }
}

  .player-profile .profile-membership{
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .player-profile .profile-membership-item.market{
    grid-column: auto;
  }
  .player-profile .attribute-subsection-title{
    margin: 10px 0 4px;
    padding-top: 8px;
    border-top: 1px solid #d3dcea;
    color: #5b6b85;
    font-size: 11px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: .04em;
  }
  @media (max-width: 860px) {
    .player-profile .profile-membership{
      grid-template-columns: repeat(3, minmax(0, 1fr));
    }
    .player-profile .profile-membership-item.market{
      grid-column: auto;
    }
  }
  @media (max-width: 560px) {
    .player-profile .profile-membership{
      grid-template-columns: 1fr;
    }
  }

.palmares-tabs{
  display: flex;
  gap: 8px;
  margin: 18px 0 4px;
}
.palmares-tab-btn{
  padding: 9px 20px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
  transition: background .15s ease, color .15s ease, border-color .15s ease;
}
.palmares-tab-btn.is-active{
  background: #173b82;
  border-color: #173b82;
  color: #fff;
}
.palmares-tab-btn:hover:not(.is-active){
  border-color: #2563eb;
  color: #2563eb;
}
.palmares-tab-pane[hidden]{ display: none; }
.palmares-mister-panel{
  margin-top: 16px;
}
.palmares-ranking--misters{
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--surface);
  box-shadow: 0 10px 28px rgba(31, 49, 79, 0.05);
}
.palmares-mister-podium{
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin: 14px 0 18px;
  align-items: end;
}
.palmares-mister-podium-card{
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 4px;
  padding: 20px 14px 18px;
  border-radius: 16px;
  background: var(--surface);
  border: 1px solid var(--line);
  align-self: end;
}
.palmares-mister-podium-rank{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  font-weight: 900;
  font-size: 14px;
  margin-bottom: 4px;
}
.palmares-mister-podium-row{
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  width: 100%;
  padding: 8px 0;
  border-top: 1px solid rgba(15, 23, 42, .08);
}
.palmares-mister-podium-row:first-of-type{
  border-top: 0;
  padding-top: 0;
}
.palmares-mister-podium-name{
  font-size: 15px;
  color: var(--text);
}
.palmares-mister-podium-teams{
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 5px;
}
.palmares-mister-podium-titles{
  margin-top: 6px;
  font-size: 12px;
  font-weight: 800;
  color: var(--muted);
}
.palmares-mister-podium-card--rank1{
  order: 2;
  padding-top: 28px;
  padding-bottom: 26px;
  border-color: #e6c25c;
  background: linear-gradient(180deg, #fffdf4 0%, #fbf1cf 100%);
  box-shadow: 0 12px 28px rgba(198, 154, 44, .16);
}
.palmares-mister-podium-card--rank1 .palmares-mister-podium-rank{
  background: #e6c25c;
  color: #4a3200;
  width: 36px;
  height: 36px;
  font-size: 16px;
}
.palmares-mister-podium-card--rank1 .palmares-mister-podium-name{
  font-size: 18px;
  font-weight: 800;
}
.palmares-mister-podium-card--rank2{
  order: 1;
  padding-top: 20px;
  padding-bottom: 18px;
  border-color: #c7ced8;
  background: linear-gradient(180deg, #fbfcfe 0%, #eef1f5 100%);
}
.palmares-mister-podium-card--rank2 .palmares-mister-podium-rank{
  background: #c7ced8;
  color: #33404f;
}
.palmares-mister-podium-card--rank3{
  order: 3;
  padding-top: 13px;
  padding-bottom: 11px;
  border-color: #d9a97b;
  background: linear-gradient(180deg, #fdf7f1 0%, #f5e5d5 100%);
}
.palmares-mister-podium-card--rank3 .palmares-mister-podium-rank{
  background: #d9a97b;
  color: #4a2c0f;
}
.palmares-mister-grid{
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: 10px;
}
.palmares-mister-card{
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
}
.palmares-mister-card-rank{
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
}
.palmares-mister-card-row{
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 6px 0;
  border-top: 1px solid var(--line);
}
.palmares-mister-card-row:first-of-type{
  border-top: 0;
  padding-top: 0;
}
.palmares-mister-card-name{
  font-size: 14px;
  color: var(--text);
}
.palmares-mister-card-titles{
  margin-top: 2px;
  color: #8a6a10;
  font-size: 12px;
  font-weight: 800;
}
.palmares-mister-teams{
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 5px;
}
.palmares-mister-list{
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 28px;
  margin-top: 14px;
}
.palmares-mister-row{
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}
.palmares-mister-row__rank{
  color: var(--muted);
  font-weight: 800;
  font-size: 13px;
}
.palmares-mister-row__body{
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}
.palmares-mister-row__body strong{
  font-size: 14px;
  color: var(--text);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.palmares-mister-row__titles{
  color: #8a6a10;
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}
@media (max-width: 720px){
  .palmares-mister-list{
    grid-template-columns: 1fr;
  }
}
@media (max-width: 720px){
  .palmares-mister-podium{
    grid-template-columns: 1fr;
  }
  .palmares-mister-podium-card--rank1,
  .palmares-mister-podium-card--rank2,
  .palmares-mister-podium-card--rank3{
    order: 0;
  }
}
.palmares-mister-team-logo{
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  flex: 0 0 24px;
}
.palmares-mister-team-logo img,
.palmares-mister-team-logo .logo-fallback{
  width: 24px !important;
  height: 24px !important;
  min-width: 24px !important;
  padding: 2px !important;
  object-fit: contain !important;
  border-radius: 7px !important;
  background: var(--surface) !important;
  border: 1px solid var(--line);
}
.palmares-mister-team-more{
  display: inline-grid;
  place-items: center;
  min-width: 24px;
  height: 24px;
  padding: 0 6px;
  border-radius: 999px;
  background: #edf2f7;
  color: #52647b;
  font-size: 10px;
  font-weight: 900;
}
.palmares-winner-card--final{
  border-top-color: #94a3b8;
  background: linear-gradient(145deg, #fff 0%, #f4f6f9 100%);
}
.palmares-winner-card--final::after{
  color: rgba(148, 163, 184, .45);
}
.palmares-winner-card--final .palmares-winner-kicker{
  color: #64748b;
}
.palmares-winner-mister{
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin-top: 10px;
  padding-top: 8px;
  border-top: 1px solid rgba(107, 75, 32, .18);
  color: var(--muted);
  font-size: 10px;
}
.palmares-winner-mister small{
  color: #9b7418;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.palmares-winner-mister strong{
  color: #2d2112;
  font-size: 13px;
  font-weight: 700;
}

.manager-view-toggle{
  white-space: nowrap;
}
.manager-desktop-cards{
  display: none;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: 4px;
}
.managers-view--cards .managers-premium-scroll{
  display: none;
}
.managers-view--cards .manager-desktop-cards{
  display: grid;
}
.manager-desktop-card{
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
  box-shadow: 0 6px 18px rgba(15, 23, 42, .04);
}
.manager-desktop-card__head{
  display: flex;
  align-items: center;
  gap: 10px;
}
.manager-desktop-card__logo{
  width: 34px;
  height: 34px;
  border-radius: 8px;
  object-fit: contain;
  background: var(--bg);
  border: 1px solid var(--line);
}
.manager-desktop-card__head div{
  display: flex;
  flex-direction: column;
  gap: 1px;
  min-width: 0;
}
.manager-desktop-card__head strong{
  font-size: 13.5px;
  color: var(--text);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.manager-desktop-card__head span{
  font-size: 11.5px;
  color: var(--muted);
}
.manager-desktop-card__chips{
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.manager-desktop-card__meta{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  padding-top: 8px;
  border-top: 1px solid var(--line);
}
.manager-desktop-card__meta small{
  display: block;
  color: var(--muted);
  font-size: 9.5px;
  text-transform: uppercase;
  letter-spacing: .05em;
}
.manager-desktop-card__meta strong{
  display: block;
  margin-top: 2px;
  font-size: 12px;
  color: var(--text);
}
@media (max-width: 1180px){
  .manager-desktop-cards{
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
@media (max-width: 860px){
  .manager-desktop-cards{
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 720px){
  .managers-view--cards .manager-desktop-cards{
    display: none;
  }
  .managers-view--cards .manager-mobile-cards{
    display: grid;
  }
  .manager-view-toggle{
    display: none;
  }
}

.calendar-desk{
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.calendar-content{
  display: flex;
  flex-direction: column;
  gap: 22px;
}
.calendar-month__title{
  position: sticky;
  top: 0;
  z-index: 3;
  margin: 0 0 10px;
  padding: 8px 0;
  background: var(--surface, #fff);
  color: var(--text);
  font-size: 15px;
  font-weight: 800;
  border-bottom: 1px solid var(--line);
}
.calendar-month__days{
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.calendar-day{
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
}
.calendar-day--weekend{
  background: #f7f9fc;
}
.calendar-day--today{
  border-color: #2563eb;
  box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.12);
}
.calendar-day__date{
  display: flex;
  flex-direction: column;
  align-items: center;
  line-height: 1.1;
}
.calendar-day__date strong{
  font-size: 18px;
  color: var(--text);
}
.calendar-day__date span{
  font-size: 10px;
  color: var(--muted);
  text-transform: uppercase;
}
.calendar-day--today .calendar-day__date strong{
  color: #2563eb;
}
.calendar-day__badges{
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.calendar-day__empty{
  color: var(--muted);
  font-size: 12px;
}
.calendar-badge{
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 999px;
  background: #f1f5f9;
  color: #334155;
  font-size: 11.5px;
  font-weight: 700;
}
.calendar-badge--comp{
  background: #eef2ff;
  color: #3730a3;
}
.calendar-badge--success{
  background: #ecfdf3;
  color: #027a48;
}
.calendar-badge--danger{
  background: #fef3f2;
  color: #b42318;
}
.calendar-badge--info{
  background: #eff8ff;
  color: #175cd3;
}
.calendar-badge--muted{
  background: #f4f6f9;
  color: #52647b;
}
.calendar-badge--save{
  background: #fdf4ff;
  color: #86198f;
}
@media (max-width: 720px){
  .calendar-day{
    grid-template-columns: 44px minmax(0, 1fr);
    padding: 9px 10px;
  }
  .calendar-day__date strong{
    font-size: 15px;
  }
  .calendar-badge{
    font-size: 10.5px;
    padding: 3px 8px;
  }
}

/* Ricerche salvate (Ricerca Avanzata) */
.player-adv-saved{ display:flex; align-items:center; gap:8px; flex-wrap:wrap; margin-top:10px; padding:10px 12px; background:#f8fafc; border:1px solid var(--line); border-radius:12px; font-size:13px; }
.player-adv-saved select{ min-width:200px; max-width:100%; padding:9px 10px; border:1px solid var(--line); border-radius:10px; background:var(--surface-2); color:var(--text); font-size:13px; font-family:inherit; }
.player-adv-saved .secondary-button{ font-size:13px; }
.player-adv-saved .secondary-button.small{ padding:10px 12px; font-size:13px; }
@media (max-width:560px){ .player-adv-saved{ flex-direction:column; align-items:stretch; } .player-adv-saved select{ min-width:0; width:100%; } }

.player-adv-panel{
  display: block;
  padding: 16px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: 0 8px 25px rgba(31, 49, 79, 0.05);
  margin-bottom: 14px;
}
.player-adv-layout{
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  align-items: start;
}

.player-adv-pitch{
  background: #12331f;
  border: 2px solid #0d2717;
  border-radius: 12px;
  padding: 18px 10px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 6px;
  height: var(--adv-pitch-h, 566px);
}
.player-adv-prow{
  display: flex;
  justify-content: space-around;
}
.pitch-dot{
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  border: none;
  background: transparent;
  padding: 0;
  cursor: pointer;
  font-size: 9.5px;
  font-weight: 700;
  color: #e8f2ec;
}
.pitch-dot i{
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--surface);
  border: 2px solid rgba(255, 255, 255, 0.85);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.35);
  transition: background 0.12s ease, box-shadow 0.12s ease, transform 0.1s ease;
}
.pitch-dot:hover i{
  transform: scale(1.1);
}
.pitch-dot.active i{
  background: #22e04b;
  border-color: #eafff0;
  box-shadow: 0 0 10px rgba(34, 224, 75, 0.75);
}

.player-adv-right{
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
}
.player-adv-fbar{
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: flex-end;
}
.player-adv-field{
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 12.5px;
  color: var(--muted);
  min-width: 92px;
}
.player-adv-field span{
  font-weight: 600;
  color: var(--text);
}
.player-adv-field input,
.player-adv-field select{
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface-2);
  color: var(--text);
  max-width: 130px;
}
.player-adv-field--nation{
  position: relative;
  min-width: 200px;
}
.player-adv-nation-results{
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  z-index: 20;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: var(--shadow);
  max-height: 260px;
  overflow-y: auto;
  padding: 6px;
}
.player-adv-nation-item{
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 7px 8px;
  border: none;
  background: transparent;
  border-radius: 8px;
  cursor: pointer;
  font-size: 13px;
  color: var(--text);
  text-align: left;
}
.player-adv-nation-item:hover{
  background: var(--surface-2);
}
.player-adv-nation-flag{
  width: 20px;
  height: 20px;
  border-radius: 4px;
  object-fit: cover;
  flex: 0 0 auto;
}
.player-adv-nation-empty{
  padding: 10px;
  font-size: 12.5px;
  color: var(--muted);
}
.player-adv-nation-chip{
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 10px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 13px;
  align-self: flex-end;
}
.player-adv-nation-chip button{
  border: none;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-size: 13px;
  line-height: 1;
}

.player-adv-attrs{
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface-2);
  padding: 4px 14px 4px;
  flex: 1;
}
.player-adv-attrs summary{
  cursor: pointer;
  padding: 12px 4px;
  font-weight: 600;
  font-size: 13.5px;
  color: var(--text);
  list-style: none;
}
.player-adv-attrs summary::-webkit-details-marker{
  display: none;
}
.player-adv-attrs summary::before{
  content: "\25b8 ";
  color: var(--brand);
}
.player-adv-attrs[open] summary::before{
  content: "\25be ";
}
.player-adv-attrs summary b{
  color: #e11d2e;
  font-weight: 700;
  margin-left: 6px;
}
.player-adv-attrs-grid{
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  padding: 4px 4px 16px;
}
.player-adv-attrs-col--gk{
  border-left: 1px solid var(--line);
  padding-left: 18px;
}
.player-adv-attr-altezza{
  margin-top: 8px;
  padding-top: 6px;
  border-top: 1px dashed var(--line);
}
.player-adv-attrs-col{
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.player-adv-attrs-col h4{
  margin: 0 0 4px;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted);
}
.player-adv-attrs-col-subhead{
  margin-top: 7px !important;
}
.player-adv-attrs-col label{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 12.5px;
  color: var(--text);
}
.player-adv-attrs-col label input{
  width: 52px;
  padding: 2px 6px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--text);
  text-align: center;
}

.player-adv-attrs-col label input.set{
  background: #e11d2e;
  border-color: #e11d2e;
  color: #fff;
  font-weight: 700;
}

.player-adv-results{
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
}
.adv-results-table{
  width: 100%;
  table-layout: fixed;
  border-collapse: separate;
  border-spacing: 0 8px;
  font-size: 13px;
}
.adv-results-table col,
.adv-results-table tbody td{
  overflow: hidden;
}
/* Le intestazioni sono centrate e corte: non le tagliamo, così "Anno"/"Ru."
   restano leggibili anche se sforano di un paio di px nella colonna vicina. */
.adv-results-table thead th{ overflow: visible; }
/* Compatta: riduce il padding orizzontale di default (10px 12px) e la dimensione
   dell'intestazione così nome e intestazioni entrano nel telefono. */
.adv-results-table thead th{ padding-left: 6px; padding-right: 6px; font-size: 10px; letter-spacing: 0; }
.adv-results-table tbody td{ padding-left: 6px; padding-right: 6px; }
.adv-results-table thead th{
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted);
  text-align: left;
  padding: 4px 12px;
  white-space: nowrap;
}
.adv-results-table thead th.adv-th-sort{
  cursor: pointer;
  user-select: none;
}
.adv-results-table thead th.adv-th-sort:hover{
  color: var(--brand);
}
.adv-results-table thead th.sorted{
  color: var(--brand);
}
.adv-th-center{
  text-align: center !important;
}
.adv-th-right{
  text-align: right !important;
}
.adv-results-table tbody tr{
  background: var(--surface);
}
.adv-results-table tbody td{
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 10px 12px;
  vertical-align: middle;
}
.adv-results-table tbody td:first-child{
  border-left: 1px solid var(--line);
  border-radius: 14px 0 0 14px;
}
.adv-results-table tbody td:last-child{
  border-right: 1px solid var(--line);
  border-radius: 0 14px 14px 0;
}
.adv-th-ar{
  font-size: 10px;
  opacity: 0.8;
}
/* Larghezze colonne via <colgroup> (affidabile con table-layout: fixed) — la
   colonna Giocatore prende lo spazio residuo, le altre restano strette così
   tutto entra nel telefono senza scroll a destra. */
/* table-layout auto: queste sono preferenze, le colonne si adattano al contenuto */
.adv-col-name{ width: 34%; }
.adv-col-attr{ width: 58px; }
.adv-col-role{ width: 64px; }
.adv-col-year{ width: 56px; }
.adv-col-ca{ width: 50px; }
.adv-col-wage{ width: 78px; }
.adv-col-act{ width: 84px; }
.adv-td-attrcol{ text-align: center; font-weight: 700; }
.adv-th-attrcol{ white-space: nowrap; }
.player-adv-results{ overflow-x: auto; }

.adv-row{ cursor: pointer; }
.adv-row:hover td{ background: var(--surface-2, #f4f6fa); }
.adv-row:focus-visible{ outline: 2px solid var(--brand); outline-offset: -2px; }

.adv-player-cell{
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
}
.adv-player-cell > div{ flex: 1 1 auto; min-width: 0; }
.adv-player-cell .adv-face{
  width: 46px;
  height: 46px;
  flex: 0 0 46px;
  border-radius: 13px;
}
.adv-player-cell strong{
  display: block;
  font-size: 13px;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.adv-player-cell small{
  display: block;
  font-size: 10px;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
/* 09/11 — badge squadra nella cella Giocatore della Ricerca Avanzata (parità con la Rapida) */
.adv-player-cell .player-identity-icons.adv-identity{
  flex: 0 0 38px;
  width: 38px;
  min-width: 38px;
  height: 46px;
  margin-left: -14px;
}
.adv-player-cell .adv-identity .identity-team-logo{
  inset: 50% auto auto 0 !important;
  transform: translateY(-50%);
  width: 34px !important;
  height: 34px !important;
  min-width: 34px;
  padding: 3px;
  border-radius: 10px;
  box-shadow: 0 2px 7px rgba(15, 23, 42, 0.18);
}
@media (max-width: 560px){
  .adv-player-cell .player-identity-icons.adv-identity{
    flex: 0 0 32px; width: 32px; min-width: 32px; height: 40px; margin-left: -12px;
  }
  .adv-player-cell .adv-identity .identity-team-logo{
    width: 28px !important; height: 28px !important; min-width: 28px;
  }
}
.adv-td-role{
  text-align: center;
  font-size: 11px;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.adv-td-attr{
  text-align: center;
  font-weight: 700;
}
.adv-td-ca{
  text-align: right;
  white-space: nowrap;
  font-weight: 700;
}
.adv-td-wage{
  text-align: right;
  white-space: nowrap;
  font-size: 11.5px;
  color: var(--muted);
}
.adv-td-actions{
  text-align: right;
  white-space: nowrap;
  padding-left: 4px !important;
  padding-right: 8px !important;
}
.adv-mini{
  width: 24px;
  height: 24px;
  padding: 0;
  margin-left: 3px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--surface);
  color: var(--muted);
  font-size: 13px;
  line-height: 1;
  cursor: pointer;
  vertical-align: middle;
}
.adv-mini:hover{ color: var(--brand); border-color: var(--brand); }
.adv-mini.is-shortlisted .sl-ic{ color: #e8a33d; }

@media (max-width: 560px){
  .adv-results-table{ font-size: 12px; }
  .adv-results-table thead th,
  .adv-results-table tbody td{ padding-left: 7px; padding-right: 7px; }
  .adv-player-cell{ gap: 7px; }
  .adv-player-cell .adv-face{ width: 40px; height: 40px; flex: 0 0 40px; }
  .adv-mini{ width: 22px; height: 22px; margin-left: 2px; }
}

@media (max-width: 1100px){
  .player-adv-attrs-grid{
    grid-template-columns: repeat(2, 1fr);
  }
  .player-adv-attrs-col--gk{
    border-left: none;
    padding-left: 0;
    border-top: 1px solid var(--line);
    padding-top: 12px;
  }
}
@media (max-width: 860px){
  .player-adv-layout{
    grid-template-columns: 1fr;
  }
  .player-adv-pitch{
    max-width: 300px;
    margin: 0 auto;
    min-height: 300px;
    height: auto;
    width: 100%;
  }
  .player-adv-attrs-grid{
    grid-template-columns: 1fr;
  }
}

.player-mode-chooser{
  display: grid;
  grid-template-columns: repeat(2, minmax(280px, 480px));
  gap: 26px;
  justify-content: center;
  padding: 44px 0 16px;
}
.player-mode-card{
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  padding: 52px 34px 42px;
  min-height: 300px;
  border-radius: 22px;
  cursor: pointer;
  text-align: center;
  transition: transform 0.14s ease, box-shadow 0.14s ease, border-color 0.14s ease;
}
.player-mode-card:hover{
  transform: translateY(-4px);
}
.player-mode-card strong{
  font-size: 21px;
}
.player-mode-card__icon{
  width: 68px;
  height: 68px;
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.player-mode-card__icon svg{
  width: 34px;
  height: 34px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.player-mode-card__desc{
  font-size: 13.5px;
  line-height: 1.5;
  max-width: 330px;
}
.player-mode-card__cta{
  margin-top: auto;
  font-size: 13px;
  font-weight: 700;
  padding: 9px 18px;
  border-radius: 999px;
}

.player-mode-card--rapid{
  background: var(--surface);
  border: 1px solid var(--line);
  border-top: 4px solid var(--brand);
  box-shadow: 0 8px 25px rgba(31, 49, 79, 0.06);
  color: var(--text);
}
.player-mode-card--rapid:hover{
  border-color: var(--brand);
  box-shadow: 0 16px 40px rgba(37, 99, 235, 0.16);
}
.player-mode-card--rapid .player-mode-card__icon{
  background: rgba(37, 99, 235, 0.1);
  color: var(--brand);
}
.player-mode-card--rapid .player-mode-card__desc{
  color: var(--muted);
}
.player-mode-card--rapid .player-mode-card__cta{
  background: var(--brand);
  color: #fff;
}

.player-mode-card--adv{
  background: linear-gradient(160deg, #123a22 0%, #0d2717 100%);
  border: 1px solid #0d2717;
  border-top: 4px solid #22e04b;
  box-shadow: 0 8px 25px rgba(13, 39, 23, 0.35);
  color: #eafff0;
}
.player-mode-card--adv:hover{
  box-shadow: 0 18px 44px rgba(34, 224, 75, 0.22);
}
.player-mode-card--adv .player-mode-card__icon{
  background: rgba(255, 255, 255, 0.1);
  color: #22e04b;
}
.player-mode-card--adv .player-mode-card__desc{
  color: #b9d9c4;
}
.player-mode-card--adv .player-mode-card__cta{
  background: #22e04b;
  color: #0d2717;
}

.player-mode-switch{
  border: none;
  background: transparent;
  color: var(--brand);
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  padding: 0 0 10px;
}
.player-mode-switch:hover{
  text-decoration: underline;
}
/* 02/10/2026 — switch univoco Rapida/Avanzata: toggle segmentato con lo stato
   attivo evidenziato nel colore della modalita' (blu = Rapida, verde = Avanzata).
   Sostituisce il vecchio link "Cambia tipo di ricerca" (ambiguo, identico nelle
   due viste). Stessa resa su PC e smartphone. */
.search-type-toggle{
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin: 0 0 14px;
}
.search-type-toggle__cap{
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}
.search-type-toggle__track{
  display: inline-flex;
  gap: 4px;
  padding: 4px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 999px;
}
.stt-opt{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  border: none;
  background: transparent;
  cursor: pointer;
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  color: var(--muted);
  transition: background 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}
.stt-opt svg{
  width: 15px;
  height: 15px;
  flex: none;
}
.stt-opt--rapid svg{
  fill: currentColor;
}
.stt-opt--adv svg{
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.stt-opt:hover:not(.is-active){
  color: var(--text);
}
.stt-opt.is-active{
  cursor: default;
}
.stt-opt--rapid.is-active{
  background: var(--brand);
  color: #fff;
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.35);
}
.stt-opt--adv.is-active{
  background: #16a34a;
  color: #fff;
  box-shadow: 0 2px 8px rgba(22, 163, 74, 0.35);
}
@media (max-width: 620px){
  .search-type-toggle{
    gap: 7px;
  }
  .search-type-toggle__track{
    width: 100%;
  }
  .stt-opt{
    flex: 1 1 0;
    padding: 9px 10px;
  }
}
@media (max-width: 720px){
  .player-mode-chooser{
    grid-template-columns: 1fr;
    padding: 20px 0 10px;
  }
  .player-mode-card{
    min-height: 0;
    padding: 30px 22px 26px;
  }
}
.player-adv-field--query{
  min-width: 210px;
}
.player-adv-field--query input{
  max-width: none;
}
@media (max-width: 640px){
  .player-mode-chooser{
    grid-template-columns: 1fr;
  }
}

.mgr-hero{
  display: flex;
  align-items: center;
  gap: 14px;
  background: linear-gradient(120deg, var(--brand-dark), var(--brand));
  border-radius: 16px;
  color: #fff;
  padding: 18px 22px;
  margin-bottom: 16px;
}
.mgr-hero__logo{
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 17px;
  flex: 0 0 auto;
}
.mgr-hero small{
  opacity: 0.85;
  display: block;
  font-size: 11.5px;
}
.mgr-hero b{
  font-size: 19px;
}
.mgr-hero__forum{
  margin-left: auto;
  background: rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  padding: 6px 14px;
  font-size: 12.5px;
}
.mgr-modules{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.mgr-module{
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 20px 18px;
  min-height: 140px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  text-align: left;
  cursor: pointer;
  transition: transform 0.12s ease, box-shadow 0.12s ease, border-color 0.12s ease;
}
.mgr-module:hover:not(:disabled){
  transform: translateY(-3px);
  border-color: var(--brand);
  box-shadow: 0 12px 30px rgba(37, 99, 235, 0.14);
}
.mgr-module h4{
  margin: 0;
  font-size: 14.5px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.mgr-module p{
  margin: 0;
  font-size: 12px;
  color: var(--muted);
  flex: 1;
  line-height: 1.45;
}
.mgr-module__cta{
  font-size: 12.5px;
  font-weight: 700;
  color: var(--brand);
}
.mgr-module--disabled{
  opacity: 0.55;
  cursor: default;
}
.mgr-badge{
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 2px 9px;
  font-size: 10.5px;
  color: var(--muted);
  font-weight: 700;
}
.mgr-panel{
  animation: none;
}
.mgr-subtitle{
  font-size: 13px;
  margin: 18px 0 8px;
}
.mgr-warn{
  color: #b42318;
  font-weight: 600;
}

.mgr-shortlist{
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.mgr-shortlist-row{
  display: grid;
  grid-template-columns: minmax(160px, 1fr) 2fr auto auto;
  gap: 10px;
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 10px 14px;
  font-size: 13px;
}
.mgr-shortlist-row small{
  display: block;
  color: var(--muted);
  font-size: 10.5px;
}
.mgr-shortlist-row input{
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 7px 9px;
  background: var(--surface-2);
  font-size: 12.5px;
}

.mgr-showcase-status{
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px 16px;
  font-size: 13px;
  margin-bottom: 12px;
}
.mgr-showcase-form{
  display: flex;
  gap: 12px;
  align-items: flex-end;
  flex-wrap: wrap;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 14px;
  margin-bottom: 14px;
}
.mgr-showcase-form select,
.mgr-showcase-form input{
  max-width: none !important;
  width: 100%;
}
.mgr-showcase-list{
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.mgr-showcase-row{
  display: flex;
  align-items: center;
  gap: 11px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 8px 13px;
  font-size: 12.5px;
}
.mgr-showcase-row__body{
  display: flex;
  flex-direction: column;
  gap: 1px;
  min-width: 0;
}
.mgr-showcase-row__body small{
  color: var(--muted);
  font-size: 10.5px;
}
.mgr-showcase-row__when{
  margin-left: auto;
  color: var(--muted);
  font-size: 11px;
  flex: 0 0 auto;
}
.mgr-thumb{
  width: 42px;
  height: 42px;
  border-radius: 10px;
  border: 1px solid var(--line);
  overflow: hidden;
  padding: 0;
  cursor: pointer;
  flex: 0 0 auto;
  background: var(--surface-2);
  transition: transform 0.1s ease, box-shadow 0.1s ease;
}
.mgr-thumb:hover{
  transform: scale(1.06);
  box-shadow: 0 4px 12px rgba(31,49,79,.18);
}
.mgr-thumb img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.mgr-thumb-fallback{
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  font-weight: 700;
  color: var(--muted);
  font-size: 16px;
}

.mgr-lineup-wrap{
  display: grid;
  grid-template-columns: minmax(300px, 460px) 1fr;
  gap: 18px;
  align-items: start;
}
.mgr-lineup-pitch{
  background: #12331f;
  border: 2px solid #0d2717;
  border-radius: 14px;
  padding: 22px 10px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 14px;
  min-height: 480px;
}
.mgr-prow{
  display: flex;
  justify-content: space-evenly;
}
.mgr-slot{
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  border: none;
  background: transparent;
  cursor: pointer;
  color: #fff;
  font-size: 9px;
  font-weight: 700;
  padding: 0;
}
.mgr-slot i{
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--surface);
  border: 2.5px solid #22e04b;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #0d2717;
  font-size: 15px;
  font-weight: 800;
  font-style: normal;
  transition: transform 0.1s ease;
}
.mgr-slot:hover i{
  transform: scale(1.08);
}
.mgr-slot.empty i{
  background: rgba(255, 255, 255, 0.18);
  border-style: dashed;
  border-color: rgba(255, 255, 255, 0.55);
  color: #fff;
}
.mgr-slot em{
  font-style: normal;
  background: #0d2717;
  padding: 2px 8px;
  border-radius: 6px;
  font-size: 9px;
  max-width: 84px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.mgr-bench{
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(74px, 1fr));
  gap: 8px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px;
}
.mgr-slot--bench i{
  width: 36px;
  height: 36px;
  font-size: 12px;
  border-color: #f59e0b;
}
.mgr-slot--bench{
  color: var(--text);
}
.mgr-slot--bench em{
  background: transparent;
  color: var(--muted);
}
.formsel{
  display: flex;
  gap: 8px;
  margin: 10px 0 12px;
  flex-wrap: wrap;
}
.formsel button{
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: 9px;
  padding: 7px 13px;
  font-size: 12.5px;
  cursor: pointer;
}
.formsel button.on{
  background: var(--brand);
  color: #fff;
  border-color: var(--brand);
}

.mgr-picker{
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 500;
  padding: 20px;
}
.mgr-picker__card{
  background: var(--surface);
  border-radius: 16px;
  width: 100%;
  max-width: 460px;
  max-height: 70vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.35);
}
.mgr-picker__head{
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
}
.mgr-picker__list{
  overflow-y: auto;
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.mgr-picker__item{
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: 10px;
  padding: 10px 13px;
  cursor: pointer;
  font-size: 13px;
  text-align: left;
}
.mgr-picker__item:hover{
  border-color: var(--brand);
  background: var(--surface-2);
}
.mgr-picker__item span{
  color: var(--muted);
  font-size: 11px;
}
@media (max-width: 860px){
  .mgr-modules{
    grid-template-columns: 1fr;
  }
  .mgr-lineup-wrap{
    grid-template-columns: 1fr;
  }
  .mgr-shortlist-row{
    grid-template-columns: 1fr;
  }
}

.mgr-showcase-hint{
  font-size: 12.5px;
  color: var(--muted);
  margin: 4px 0 10px;
}
.mgr-showcase-picker{
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 8px;
  margin-bottom: 12px;
}
.mgr-showcase-opt{
  display: flex;
  align-items: center;
  gap: 9px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 11px;
  padding: 10px 12px;
  cursor: pointer;
  font-size: 12.5px;
}
.mgr-showcase-opt.on{
  border-color: var(--brand);
  background: rgba(37, 99, 235, 0.06);
}
.mgr-showcase-opt input{
  width: 17px;
  height: 17px;
  flex: 0 0 auto;
}
.mgr-showcase-opt small{
  display: block;
  color: var(--muted);
  font-size: 10.5px;
}

.mgr-png-preview{
  display: flex;
  justify-content: center;
  padding: 10px 0;
  overflow: auto;
}
.mgr-png-preview canvas{
  width: 100%;
  max-width: 360px;
  height: auto;
  border-radius: 14px;
  box-shadow: 0 12px 35px rgba(0,0,0,.18);
}

/* 02/10/2026 — Export PNG rosa (Opzione 4). Costruito come DOM e reso con
   html2canvas: eredita i font dell'app (Inter corpo, Space Grotesk titoli)
   e le bandiere reali. Ambito tutto sotto .fmto-roster-export per non
   collidere con le classi generiche dell'app. */
.fmto-club-png-btn{
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--brand);
  font-weight: 700;
  font-size: 12px;
  border-radius: 8px;
  padding: 6px 12px;
  cursor: pointer;
  white-space: nowrap;
}
.fmto-club-png-btn:hover{ background: var(--surface-2); }

/* 03/10/2026 — Tasto Esporta PNG spostato in una barra sopra la rosa. */
.fmto-club-toolbar{
  display: flex;
  justify-content: flex-end;
  margin: 0 0 12px;
}
.fmto-club-png-btn2{
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid var(--line);
  background: var(--brand);
  color: #fff;
  font-weight: 700;
  font-size: 13px;
  border-radius: 10px;
  padding: 9px 16px;
  cursor: pointer;
  white-space: nowrap;
  box-shadow: 0 6px 18px rgba(15, 39, 71, 0.18);
}
.fmto-club-png-btn2:hover{ filter: brightness(1.06); }

.fmto-roster-export-preview{
  width: 100%;
  display: flex;
  justify-content: center;
}
.fmto-roster-export{
  width: 1000px;
  box-sizing: border-box;
  background: #fff;
  color: #15233a;
  font-family: var(--font-body);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 12px 35px rgba(0,0,0,.18);
}
.fmto-roster-export *{ box-sizing: border-box; }
.fmto-roster-export .fre-hd{
  background: #0f2747;
  color: #fff;
  padding: 20px 26px;
  display: flex;
  align-items: center;
  gap: 16px;
}
.fmto-roster-export .fre-crest-wrap{
  width: 54px; height: 54px; flex: none;
  display: grid; place-items: center;
}
.fmto-roster-export .fre-crest{
  width: 54px; height: 54px; object-fit: contain;
  filter: drop-shadow(0 3px 8px rgba(0,0,0,.35));
}
.fmto-roster-export h1{
  font-family: var(--font-title);
  font-size: 25px; font-weight: 800; letter-spacing: .01em;
  line-height: 1.05; margin: 0; color: #fff;
}
.fmto-roster-export .fre-hd p{
  font-size: 12.5px; color: #9fb6d6; margin: 4px 0 0; font-weight: 600;
}
.fmto-roster-export .fre-body{ padding: 10px 20px 20px; }
.fmto-roster-export .fre-sec{ margin-top: 12px; }
.fmto-roster-export .fre-sec-h{
  font-family: var(--font-title);
  font-size: 12px; font-weight: 800; letter-spacing: .06em; color: #0f2747;
  border-left: 4px solid; padding-left: 10px; margin: 10px 4px 9px;
}
.fmto-roster-export .fre-sec-h b{ color: #94a3b8; margin-left: 6px; font-weight: 700; }
.fmto-roster-export .fre-grid{
  display: grid; grid-template-columns: 1fr 1fr; gap: 7px 14px;
}
.fmto-roster-export .fre-cell{
  display: grid; grid-template-columns: 8px 24px 1fr auto auto;
  align-items: center; gap: 9px;
  padding: 9px 13px; border: 1px solid #edf1f6; border-radius: 10px; background: #fff;
}
.fmto-roster-export .fre-out{ background: #fafbfc; }
.fmto-roster-export .fre-dot{ width: 8px; height: 8px; border-radius: 50%; }
.fmto-roster-export .fre-flag{ width: 24px; text-align: center; line-height: 0; }
.fmto-roster-export .fre-flag .flag-icon{
  width: 22px; height: 16px; object-fit: cover; border-radius: 3px;
  vertical-align: middle; box-shadow: 0 0 0 1px rgba(15,23,42,.08);
}
.fmto-roster-export .fre-flag .flag-placeholder{ color: #cbd5e1; }
.fmto-roster-export .fre-nm{ min-width: 0; }
.fmto-roster-export .fre-nmline{ font-weight: 700; color: #15233a; font-size: 13.5px; }
.fmto-roster-export .fre-nm small{
  display: block; color: #64748b; font-weight: 600; font-size: 10.5px; margin-top: 2px;
}
.fmto-roster-export .fre-bdg{
  display: inline-block; font-size: 8.5px; font-weight: 800; border-radius: 4px;
  padding: 1px 5px; letter-spacing: .02em; vertical-align: middle; margin-left: 5px;
  text-transform: uppercase;
}
.fmto-roster-export .fre-under{ color: #dc2626; background: #fee2e2; }
.fmto-roster-export .fre-t{ color: #b45309; background: #fef3c7; }
.fmto-roster-export .fre-buste{ color: #1d4ed8; background: #dbeafe; }
.fmto-roster-export .fre-blk{ color: #334155; background: #e2e8f0; }
.fmto-roster-export .fre-loan{ color: #7c3aed; background: #ede9fe; }
.fmto-roster-export .fre-ca{
  font-weight: 800; color: #0f2747; font-size: 14px;
  font-variant-numeric: tabular-nums; min-width: 30px; text-align: right;
}
.fmto-roster-export .fre-ing{
  font-weight: 700; color: #475569; font-size: 12px;
  font-variant-numeric: tabular-nums; min-width: 52px; text-align: right;
}
.fmto-roster-export .fre-out .fre-nmline,
.fmto-roster-export .fre-out .fre-ca,
.fmto-roster-export .fre-out .fre-ing{ color: #9aa7b8; }
.fmto-roster-export .fre-ft{
  padding: 12px 26px; color: #94a3b8; font-size: 11px; font-weight: 600;
  text-align: center; border-top: 1px solid #eef2f7;
}

/* 02/10/2026 — Dossier club in un'unica immagine PNG (.fmto-club-export).
   HTML dedicato con CSS pulita (niente color-mix) popolato dai dati veri del
   club e reso off-screen con html2canvas. Due colonne: sinistra = pannello
   anagrafico/stats, destra = liste giocatori. Font app (Inter/Space Grotesk). */
.fmto-club-export{
  width: 1480px;
  box-sizing: border-box;
  background: #fff;
  color: #15233a;
  font-family: var(--font-body);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(15,23,42,.14);
  display: grid;
  grid-template-columns: 470px 1fr;
}
.fmto-club-export *{ box-sizing: border-box; }
.fmto-club-export .ce-left{
  padding: 22px;
  background: #f7f9fc;
  border-right: 1px solid #e6ebf2;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.fmto-club-export .ce-right{ padding: 18px 20px; }
.fmto-club-export .ce-card{
  background: #fff;
  border: 1px solid #e9eef5;
  border-radius: 14px;
  padding: 14px 16px;
}
.fmto-club-export .ce-hd{ display: flex; align-items: center; gap: 14px; }
.fmto-club-export .ce-crest{
  width: 72px; height: 72px; flex: none;
  border-radius: 14px; object-fit: contain;
  background: #fff; border: 1px solid #eef2f7;
  display: grid; place-items: center;
}
.fmto-club-export .ce-crest--ph{
  font-family: var(--font-title);
  font-weight: 800; font-size: 24px; color: #0f2747;
}
.fmto-club-export .ce-hd h1{
  font-family: var(--font-title);
  font-size: 26px; font-weight: 800; color: #0f2747;
  letter-spacing: .01em; line-height: 1.05; margin: 0;
}
.fmto-club-export .ce-hd p{
  font-size: 12.5px; color: #64748b; font-weight: 600; margin: 3px 0 0;
}
.fmto-club-export .ce-sect{
  font-family: var(--font-title);
  font-size: 11px; font-weight: 800; letter-spacing: .08em;
  color: #9aa6b6; text-transform: uppercase; margin-bottom: 8px;
}
.fmto-club-export .ce-chart svg{ display: block; width: 100%; height: auto; }
.fmto-club-export .ce-pyr svg{ display: block; width: 100%; height: auto; }
.fmto-club-export .ce-pm{ display: flex; flex-direction: column; gap: 2px; }
.fmto-club-export .ce-pm-row{
  display: flex; align-items: center; gap: 10px;
  padding: 7px 0; border-bottom: 1px solid #f0f3f8;
}
.fmto-club-export .ce-pm-row:last-child{ border-bottom: none; }
.fmto-club-export .ce-pm-logo,
.fmto-club-export .ce-pm-ini{
  width: 28px; height: 28px; flex: none; object-fit: contain;
}
.fmto-club-export .ce-pm-ini{
  display: inline-grid; place-items: center;
  background: #fdf3d6; color: #8c6715; border-radius: 7px;
  font-weight: 800; font-size: 10px;
}
.fmto-club-export .ce-pm-tx{ min-width: 0; line-height: 1.25; }
.fmto-club-export .ce-pm-tx b{ display: block; font-size: 12.5px; font-weight: 800; color: #15233a; }
.fmto-club-export .ce-pm-tx small{ display: block; font-size: 10px; color: #94a3b8; font-weight: 600; }
.fmto-club-export .ce-pm-empty{ font-size: 12px; color: #94a3b8; font-weight: 600; }
.fmto-club-export .ce-mister{
  display: grid; grid-template-columns: 1fr auto; gap: 6px 10px; font-size: 12.5px;
}
.fmto-club-export .ce-mister .k{ color: #64748b; font-weight: 600; }
.fmto-club-export .ce-mister .v{ font-weight: 700; color: #15233a; text-align: right; }
.fmto-club-export .ce-comps{ display: flex; flex-wrap: wrap; gap: 8px; }
.fmto-club-export .ce-comp{
  flex: 1 1 auto; min-width: 0;
  display: flex; align-items: center; justify-content: center; gap: 7px;
  border: 1px solid #e9eef5; border-radius: 10px; padding: 8px 10px;
  text-align: center; font-weight: 800; font-size: 12px; color: #0f2747;
}
.fmto-club-export .ce-comp-logo{
  width: 20px; height: 20px; flex: none; object-fit: contain;
}
.fmto-club-export .ce-tp{
  display: flex; align-items: center; gap: 10px;
  padding: 7px 0; border-bottom: 1px solid #f0f3f8;
}
.fmto-club-export .ce-tp:last-child{ border-bottom: none; }
.fmto-club-export .ce-tp-rank{
  width: 22px; flex: none; text-align: center;
  font-weight: 800; font-size: 12px; color: #c1121f;
}
.fmto-club-export .ce-tp-face,
.fmto-club-export .ce-tp-ini{
  width: 32px; height: 32px; flex: none; border-radius: 50%;
  object-fit: cover;
}
.fmto-club-export .ce-tp-ini{
  display: inline-grid; place-items: center;
  background: #e8edf4; color: #0f2747;
  font-weight: 800; font-size: 11px;
}
.fmto-club-export .ce-tp > div{ flex: 1 1 auto; min-width: 0; line-height: 1.2; }
.fmto-club-export .ce-tp b{ display: block; font-size: 13px; color: #15233a; }
.fmto-club-export .ce-tp small{ display: block; font-size: 10px; color: #94a3b8; font-weight: 600; }
.fmto-club-export .ce-tp-gn{ color: #64748b; font-weight: 600; }
.fmto-club-export .ce-tp-ca{
  flex: none; font-weight: 800; font-size: 17px; color: #0f2747;
  font-variant-numeric: tabular-nums;
}
/* Top 3 su una riga sola sopra la Lista schierabili (colonna destra). */
.fmto-club-export .ce-t3head{
  font-family: var(--font-title);
  font-size: 11px; font-weight: 800; letter-spacing: .06em;
  color: #9aa6b6; text-transform: uppercase; margin: 0 2px 8px;
}
.fmto-club-export .ce-t3strip{
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 16px;
}
.fmto-club-export .ce-t3strip .ce-tp{
  border: 1px solid #e9eef5; border-radius: 12px; padding: 9px 11px; background: #fff;
}
.fmto-club-export .ce-t3strip .ce-tp-ca{ font-size: 18px; }
/* Fasce stagione (PNG con corrente + futura). */
.fmto-club-export .ce-season-band{
  display: flex; align-items: center; gap: 10px;
  font-family: var(--font-title); font-weight: 800; font-size: 15px;
  letter-spacing: .03em; color: #fff; text-transform: uppercase;
  padding: 12px 16px; border-radius: 12px; margin: 0 0 14px;
}
.fmto-club-export .ce-season-band small{ font-weight: 700; font-size: 12px; opacity: .9; text-transform: none; letter-spacing: 0; }
.fmto-club-export .ce-season-band--cur{ background: #0f2747; }
.fmto-club-export .ce-season-band--fut{ background: #0e7490; margin-top: 20px; }
/* Rosa futura: sezione a tutta larghezza, liste su 3 colonne. */
.fmto-club-export .ce-future{ grid-column: 1 / -1; padding: 4px 20px 2px; }
/* Dalla fascia "Rosa futura" in giù: barre in varie tonalità di rosso scarlatto. */
.fmto-club-export .ce-season-band--fut{ background: #b00610; }
.fmto-club-export .ce-future .ce-lst-h{ background: #d7263d; }
.fmto-club-export .ce-future .ce-lst-h.ce-schier{ background: #c1121f; }
.fmto-club-export .ce-future .ce-lst-h.ce-usr{ background: #e5383b; }
.fmto-club-export .ce-future .ce-lst-h.ce-und{ background: #d7263d; }
.fmto-club-export .ce-future .ce-lst-h.ce-loan{ background: #a4161a; }
.fmto-club-export .ce-future .ce-lst-h.ce-rep{ background: #8d0801; }
.fmto-club-export .ce-future .ce-lst-h.ce-cr{ background: #6a040f; }
.fmto-club-export .ce-future .ce-fvinc{ color: #a4161a; }
.fmto-club-export .ce-fcols{ column-count: 3; column-gap: 22px; margin-bottom: 4px; }
.fmto-club-export .ce-frow{
  display: flex; align-items: center; gap: 7px;
  padding: 4px 10px; border-bottom: 1px solid #eef2f6; font-size: 12px;
  break-inside: avoid; -webkit-column-break-inside: avoid;
}
.fmto-club-export .ce-fn{ width: 16px; flex: none; color: #9aa6b6; font-weight: 700; font-size: 10px; text-align: right; }
.fmto-club-export .ce-fflag{ flex: none; line-height: 0; }
.fmto-club-export .ce-fflag .flag-icon{ width: 18px; height: 13px; object-fit: cover; border-radius: 2px; vertical-align: middle; box-shadow: 0 0 0 1px rgba(15,23,42,.08); }
.fmto-club-export .ce-fflag .flag-placeholder{ color: #cbd5e1; }
.fmto-club-export .ce-fname{ flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fmto-club-export .ce-fname b{ color: #15233a; font-weight: 800; }
.fmto-club-export .ce-frole{ flex: none; color: #64748b; font-weight: 600; font-size: 10.5px; white-space: nowrap; margin: 0 2px 0 4px; }
.fmto-club-export .ce-fyear{ flex: none; width: 32px; text-align: right; color: #94a3b8; font-variant-numeric: tabular-nums; }
.fmto-club-export .ce-fvinc{ color: #7c3aed; font-weight: 700; font-size: 10px; margin-left: 4px; }
/* Rosa futura compatta: righe più strette, foto/font ridotti. */
.fmto-club-export .ce-lst--compact thead th{ padding: 5px 8px; font-size: 9px; }
.fmto-club-export .ce-lst--compact tbody td{ padding: 2px 8px; }
.fmto-club-export .ce-lst--compact .ce-face,
.fmto-club-export .ce-lst--compact .ce-ini{ width: 20px; height: 20px; }
.fmto-club-export .ce-lst--compact .ce-ini{ font-size: 8.5px; }
.fmto-club-export .ce-lst--compact .ce-name{ gap: 6px; }
.fmto-club-export .ce-lst--compact .ce-nm b{ font-size: 11.5px; }
.fmto-club-export .ce-lst--compact .ce-bdg{ font-size: 8px; padding: 0 4px; margin-left: 4px; }
.fmto-club-export .ce-st{
  display: grid; grid-template-columns: 24px 1fr auto;
  align-items: center; gap: 9px; padding: 7px 0;
  border-bottom: 1px solid #f0f3f8; font-size: 12.5px;
}
.fmto-club-export .ce-st:last-child{ border-bottom: none; }
.fmto-club-export .ce-st-ic{
  width: 24px; height: 24px; flex: none;
  display: inline-grid; place-items: center;
  background: #eef2f8; border-radius: 7px; font-size: 13px; line-height: 1;
}
.fmto-club-export .ce-st-l{ color: #64748b; font-weight: 600; }
.fmto-club-export .ce-st-v{ font-weight: 800; color: #15233a; font-variant-numeric: tabular-nums; text-align: right; }
.fmto-club-export .ce-lst-h{
  font-family: var(--font-title);
  color: #fff; font-weight: 800; font-size: 12px; letter-spacing: .06em;
  padding: 8px 12px; border-radius: 9px 9px 0 0; margin-top: 14px;
}
.fmto-club-export .ce-right > .ce-lst-h:first-child{ margin-top: 0; }
.fmto-club-export .ce-lst-h.ce-schier{ background: #0f2747; }
.fmto-club-export .ce-lst-h.ce-usr{ background: #e07b1a; }
.fmto-club-export .ce-lst-h.ce-und{ background: #64748b; }
.fmto-club-export .ce-lst-h.ce-loan{ background: #7c3aed; }
.fmto-club-export .ce-lst-h.ce-rep{ background: #0e7490; }
.fmto-club-export .ce-lst-h.ce-cr{ background: #b91c1c; }
.fmto-club-export .ce-lst{ width: 100%; border-collapse: collapse; font-size: 12px; }
.fmto-club-export .ce-lst thead th{
  background: #1f3a60; color: #cdddf2; text-align: left;
  font-size: 9.5px; letter-spacing: .04em; text-transform: uppercase;
  padding: 7px 8px; font-weight: 700; white-space: nowrap;
}
.fmto-club-export .ce-lst thead th.r{ text-align: right; }
.fmto-club-export .ce-lst tbody td{
  padding: 5px 8px; border-bottom: 1px solid #eef2f6;
  color: #1f2a3a; white-space: nowrap;
}
.fmto-club-export .ce-lst tbody tr:nth-child(even){ background: #f8fafc; }
.fmto-club-export .ce-lst tbody tr.ce-out td{ color: #9aa7b8; background: #fbfcfd; }
.fmto-club-export .ce-n{ color: #9aa6b6; font-weight: 700; text-align: center; width: 24px; font-variant-numeric: tabular-nums; }
.fmto-club-export .ce-tt{ text-align: center; width: 22px; color: #b45309; }
.fmto-club-export .ce-name{ font-weight: 800; }
.fmto-club-export .ce-name{ display: flex; align-items: center; gap: 8px; }
.fmto-club-export .ce-face,
.fmto-club-export .ce-ini{
  width: 26px; height: 26px; flex: none; border-radius: 50%; object-fit: cover;
}
.fmto-club-export .ce-ini{
  display: inline-grid; place-items: center;
  background: #e8edf4; color: #0f2747; font-weight: 800; font-size: 10px;
}
.fmto-club-export .ce-nm{ min-width: 0; }
.fmto-club-export .ce-nm b{ font-weight: 800; color: #15233a; }
.fmto-club-export .ce-gn{ color: #64748b; font-weight: 600; }
.fmto-club-export .ce-out .ce-nm b{ color: #9aa7b8; }
.fmto-club-export .ce-bdg{
  display: inline-block; font-size: 8.5px; font-weight: 800; line-height: 1.4;
  border-radius: 4px; padding: 0 5px; margin-left: 5px;
  letter-spacing: .02em; text-transform: uppercase; vertical-align: middle;
}
.fmto-club-export .ce-b-und{ color: #dc2626; background: #fee2e2; }
.fmto-club-export .ce-b-usr{ color: #c2410c; background: #ffedd5; }
.fmto-club-export .ce-b-t{ color: #b45309; background: #fef3c7; }
.fmto-club-export .ce-b-blk{ color: #334155; background: #e2e8f0; }
.fmto-club-export .ce-b-buste{ color: #1d4ed8; background: #dbeafe; }
.fmto-club-export .ce-b-loan{ color: #7c3aed; background: #ede9fe; }
.fmto-club-export .ce-nat{
  display: inline-block; font-size: 10px; font-weight: 700; color: #94a3b8;
  letter-spacing: .01em; white-space: nowrap;
}
.fmto-club-export .ce-role{ color: #475569; font-weight: 600; }
.fmto-club-export .ce-mid{ text-align: center; color: #475569; }
.fmto-club-export .ce-mid2{ color: #475569; }
.fmto-club-export .ce-flag{ text-align: center; }
.fmto-club-export .ce-flag .flag-icon{
  width: 22px; height: 16px; object-fit: cover; border-radius: 3px;
  vertical-align: middle; box-shadow: 0 0 0 1px rgba(15,23,42,.08);
}
.fmto-club-export .ce-flag .flag-placeholder{ color: #cbd5e1; }
.fmto-club-export .ce-num{ text-align: right; font-variant-numeric: tabular-nums; font-weight: 700; }
.fmto-club-export .ce-vinc{ color: #475569; }
.fmto-club-export .ce-dash{ color: #cbd5e1; }
.fmto-club-export .ce-ft{
  grid-column: 1 / -1; padding: 12px 24px;
  background: #f7f9fc; border-top: 1px solid #e6ebf2;
  color: #94a3b8; font-size: 11px; font-weight: 600; text-align: center;
}

/* 04/10/2026 — Area Mercato Staff (Fase A, sola lettura). */
.mks-banner{
  background: #eef4ff; border: 1px solid #d7e3fb; border-radius: 12px;
  padding: 11px 14px; font-size: 13px; color: #1f3a60; margin-bottom: 14px;
}
.mks-banner .mks-soon{ color: #64748b; }
.mks-table-wrap{ overflow: auto; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.mks-table{ width: 100%; border-collapse: collapse; font-size: 13px; }
.mks-table thead th{
  position: sticky; top: 0; background: var(--brand-dark, #0f2747); color: #fff;
  text-align: left; padding: 10px 12px; font-size: 11px; text-transform: uppercase;
  letter-spacing: .03em; white-space: nowrap;
}
.mks-table tbody td{ padding: 8px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.mks-table tbody tr:nth-child(even){ background: var(--surface-2, #f8fafc); }
.mks-table .mks-op{ font-family: var(--font-condensed, monospace); color: #64748b; font-weight: 700; white-space: nowrap; }
.mks-table .mks-pl{ font-weight: 700; color: #15233a; }
.mks-table .mks-cr{ text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.mks-table .mks-note{ color: #64748b; max-width: 320px; }
.mks-table .mks-empty{ text-align: center; color: #94a3b8; padding: 22px; }
.mks-h3{ font-size: 14px; margin: 18px 0 8px; color: #15233a; }

/* ===== Mercato STAFF — form Nuova trattativa ===== */
.mkt-form{ border: 1px solid var(--line); border-radius: 14px; background: var(--surface); padding: 14px 16px; margin: 6px 0 18px; }
.mkt-form-head{ display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; margin-bottom: 10px; }
.mkt-form-head h3{ margin: 0; font-size: 15px; color: #15233a; }
.mkt-hint{ color: #64748b; font-size: 12px; }
.mkt-mov{ border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; margin-bottom: 10px; background: var(--surface-2, #f8fafc); }
.mkt-mov-head{ display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.mkt-mov-n{ font-weight: 700; color: #15233a; font-size: 13px; }
.mkt-mov-grid{ display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 10px; }
.mkt-fld{ display: flex; flex-direction: column; gap: 4px; font-size: 12px; color: #475569; font-weight: 600; }
.mkt-fld input, .mkt-fld select{ padding: 7px 9px; border: 1px solid var(--line); border-radius: 8px; font-size: 13px; background: var(--surface); font-weight: 500; }
.mkt-fld.mkt-chk{ flex-direction: row; align-items: center; gap: 6px; font-weight: 500; }
.mkt-fld.mkt-chk input{ width: auto; }
.mkt-fld.mkt-note, .mkt-fld.mkt-pl{ grid-column: 1 / -1; }
.mkt-lbl{ font-size: 12px; color: #475569; font-weight: 600; }
.mkt-cr input{ text-align: right; font-variant-numeric: tabular-nums; }
.mkt-search{ position: relative; }
.mkt-res{ position: relative; margin-top: 4px; }
.mkt-res-row{ display: block; width: 100%; text-align: left; padding: 7px 9px; border: 1px solid var(--line); border-top: none; background: var(--surface); cursor: pointer; font-size: 13px; }
.mkt-res-row:first-child{ border-top: 1px solid var(--line); border-radius: 8px 8px 0 0; }
.mkt-res-row:last-child{ border-radius: 0 0 8px 8px; }
.mkt-res-row:hover{ background: #eff6ff; }
.mkt-res-team{ color: #64748b; font-size: 11px; float: right; }
.mkt-ca{ color: #0ea5e9; font-size: 11px; font-weight: 700; }
.mkt-nodb{ color: #92400e; background: #fef3c7; border: 1px solid #fcd34d; border-radius: 4px; padding: 0 5px; font-size: 10px; font-weight: 700; letter-spacing: .02em; margin-left: 4px; }
.mkt-res-loading, .mkt-res-empty{ color: #94a3b8; font-size: 12px; padding: 6px 2px; }
.mkt-player-chip{ display: inline-flex; align-items: center; gap: 8px; padding: 6px 10px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); font-size: 13px; }
.mkt-player-chip .mkt-id{ color: #94a3b8; font-size: 11px; }
.mkt-id{ color: #94a3b8; font-size: 11px; font-weight: 500; }
.mkt-x{ border: none; background: none; color: #2563eb; cursor: pointer; font-size: 12px; text-decoration: underline; padding: 0; }
.mkt-del{ color: #dc2626; font-weight: 700; }
.mkt-actions{ display: flex; align-items: center; gap: 10px; margin-top: 4px; }
.mkt-spacer{ flex: 1; }
.mkt-out{ margin-top: 12px; }
.mkt-ok{ background: #ecfdf5; border: 1px solid #a7f3d0; color: #065f46; padding: 9px 12px; border-radius: 10px; font-size: 13px; margin-bottom: 10px; }
.mkt-err{ background: #fef2f2; border: 1px solid #fecaca; color: #991b1b; padding: 9px 12px; border-radius: 10px; font-size: 13px; }
.mkt-err ul{ margin: 6px 0 0; padding-left: 18px; }
.mkt-eff{ margin-top: 10px; }
.mkt-eff h4{ margin: 0 0 6px; font-size: 13px; color: #15233a; }

/* ===== Mercato STAFF — form tabellare (layout 4) ===== */
.mkt-tablewrap{ overflow-x: auto; border: 1px solid var(--line); border-radius: 10px; margin-bottom: 12px; }
.mkt-table{ border-collapse: collapse; width: 100%; min-width: 900px; font-size: 12px; }
.mkt-table thead th{ background: #0f2744; color: #fff; font-size: 11px; font-weight: 700; text-align: left; padding: 7px 8px; white-space: nowrap; }
.mkt-table tbody td{ border-bottom: 1px solid var(--line); padding: 6px 8px; vertical-align: middle; }
.mkt-table tbody tr:nth-child(even){ background: #f8fafc; }
.mkt-table input, .mkt-table select{ padding: 5px 6px; border: 1px solid #b7c2d4; border-radius: 7px; font-size: 12px; background: var(--surface); font-weight: 500; width: 100%; box-sizing: border-box; }
.mkt-table input:hover, .mkt-table select:hover{ border-color: #93a2bb; }
.mkt-table input:focus, .mkt-table select:focus{ outline: none; border-color: #2563eb; box-shadow: 0 0 0 2px rgba(37,99,235,.18); }
.mkt-table .num{ text-align: right; }
.mkt-sel{ min-width: 120px; }
.mkt-tinput{ min-width: 110px; }
.mkt-c-pl{ min-width: 150px; }
.mkt-c-st{ min-width: 150px; }
.mkt-c-chk{ text-align: center; width: 46px; }
.mkt-c-chk input{ width: auto; }
.mkt-c-x{ width: 32px; text-align: center; }
.mkt-c-cr{ min-width: 130px; }
.mkt-dash{ color: #cbd5e1; }
.mkt-chip{ display: inline-flex; align-items: center; gap: 6px; background: var(--surface-2,#eff6ff); border: 1px solid #bfdbfe; border-radius: 999px; padding: 3px 6px 3px 10px; font-size: 12px; font-weight: 700; color: #15233a; white-space: nowrap; }
.mkt-badge{ display: inline-flex; align-items: center; vertical-align: middle; line-height: 1.3; min-height: 20px; box-sizing: border-box; font-size: 10px; font-weight: 700; border-radius: 5px; padding: 2px 7px; margin: 2px 4px 2px 0; background: #f1f5f9; color: #475569; border: 1px solid var(--line); }
.mkt-badge.team{ background: #ecfdf5; color: #065f46; border-color: #a7f3d0; }
.mkt-badge.def{ background: #eef2ff; color: #3730a3; border-color: #c7d2fe; }
.mkt-badge.mini{ background: #fff7ed; color: #9a3412; border-color: #fed7aa; }
.mkt-c-cr{ display: table-cell; }
.mkt-mini{ display: inline-flex; flex-direction: column; gap: 2px; font-size: 9px; color: #94a3b8; font-weight: 700; text-transform: uppercase; letter-spacing: .02em; margin: 0 4px 2px 0; vertical-align: top; }
.mkt-mininput{ width: 64px !important; }
.mkt-sinput{ min-width: 130px; }
.mkt-table .mkt-search{ position: relative; }
.mkt-table .mkt-res{ position: absolute; z-index: 20; left: 0; right: 0; background: var(--surface); box-shadow: 0 6px 18px rgba(15,35,58,.14); border-radius: 8px; max-height: 240px; overflow-y: auto; min-width: 220px; }
.mkt-x{ border: none; background: none; color: var(--scarlet,#b00610); cursor: pointer; font-size: 12px; padding: 0 2px; line-height: 1; }
/* storico operazioni: testata, ricerca, azioni, audit */
.mks-ops-head{ display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin: 18px 0 8px; }
.mks-ops-head .mks-h3{ margin: 0; flex: 0 0 auto; }
.mkt-opsearch{ flex: 1; min-width: 180px; max-width: 360px; padding: 7px 10px; border: 1px solid var(--line); border-radius: 8px; font-size: 13px; }
.mkt-stbtn{ flex: 0 0 auto; }
.mkt-op-when{ font-size: 11px; color: #475569; white-space: nowrap; }
.mkt-op-when b{ color: #15233a; }
.mkt-when{ color: #94a3b8; }
.mkt-op-act{ white-space: nowrap; }
.mkt-mini-btn{ border: 1px solid var(--line); background: var(--surface); border-radius: 7px; padding: 4px 9px; font-size: 12px; font-weight: 600; cursor: pointer; margin: 0 4px 2px 0; color: #15233a; }
.mkt-mini-btn:hover{ background: #f1f5f9; }
.mkt-mini-btn.mkt-void{ color: #b00610; border-color: #fecaca; }
.mkt-mini-btn.mkt-void:hover{ background: #fef2f2; }
.mkt-editbanner{ background: #fff7ed; border: 1px solid #fed7aa; color: #9a3412; padding: 8px 12px; border-radius: 9px; font-size: 13px; margin-bottom: 10px; }
.mkt-insbanner{ background: #eef2ff; border-color: #c7d2fe; color: #3730a3; }
.mkt-insnote{ margin-top: 7px; padding-top: 7px; border-top: 1px solid rgba(99,102,241,.25); font-size: 12px; line-height: 1.45; color: #4338ca; }
.mkt-pos{ display: inline-flex; align-items: center; gap: 7px; margin-left: auto; font-size: 12px; font-weight: 700; color: #475569; }
.mkt-pos > span{ text-transform: uppercase; letter-spacing: .03em; font-size: 10.5px; color: #94a3b8; }
.mkt-pos-sel{ border: 1.5px solid var(--line); border-radius: 8px; padding: 5px 9px; font: inherit; font-size: 13px; font-weight: 600; background: var(--surface); color: #15233a; max-width: 260px; }
.mkt-mininput.mkt-locked{ background: #f1f5f9; color: #64748b; cursor: not-allowed; }
/* Loghi squadra nel Mercato */
.mkt-teamlogo{ width: 18px; height: 18px; object-fit: contain; border-radius: 3px; flex: 0 0 auto; vertical-align: middle; }
.mkt-teamlogo--ph{ display: inline-flex; align-items: center; justify-content: center; background: #e2e8f0; color: #64748b; font-size: 8.5px; font-weight: 800; }
.mkt-team{ display: inline-flex; align-items: center; gap: 7px; }
.mkt-team-nm{ line-height: 1.1; }
.mkt-badge.team{ display: inline-flex; align-items: center; gap: 5px; }
.mkt-badge-logo{ width: 15px; height: 15px; object-fit: contain; border-radius: 3px; flex: 0 0 auto; }
span.mkt-badge-logo.mkt-teamlogo--ph{ width: 15px; height: 15px; }
.mkt-teaminput{ display: flex; align-items: center; gap: 6px; }
.mkt-teaminput .mkt-tinput{ flex: 1 1 auto; min-width: 0; }
.mkt-tinput-logo{ width: 20px; height: 20px; object-fit: contain; border-radius: 3px; flex: 0 0 auto; }
span.mkt-tinput-logo.mkt-teamlogo--ph{ width: 20px; height: 20px; }
.mkt-warnbox{ margin-top: 8px; background: #fff7ed; border: 1px solid #fed7aa; color: #9a3412; border-radius: 9px; padding: 8px 12px; font-size: 12.5px; line-height: 1.5; }
.mkt-mini-btn.mkt-ins{ color: #1d4ed8; border-color: #bfdbfe; }
.mkt-mini-btn.mkt-ins:hover{ background: #eff6ff; }
.mkt-auditbox{ margin-top: 14px; }
.mkt-audit{ border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; background: var(--surface); }
.mkt-audit > b{ display: block; margin-bottom: 8px; font-size: 13px; color: #15233a; }

.calendar-toolbar{
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}
.viewtoggle{
  display: inline-flex;
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
  flex: 0 0 auto;
}
.viewtoggle button{
  border: none;
  background: var(--surface);
  padding: 8px 16px;
  font-size: 12.5px;
  cursor: pointer;
  color: var(--text);
}
.viewtoggle button.on{
  background: var(--brand);
  color: #fff;
}
.cal-table-wrap{
  max-height: 68vh;
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
}
.cal-table{
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}
.cal-table thead th{
  position: sticky;
  top: 0;
  z-index: 3;
  background: var(--brand-dark);
  color: #fff;
  text-align: left;
  padding: 11px 14px;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  white-space: nowrap;
}
.cal-table tbody td{
  padding: 9px 14px;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}
.cal-table tbody tr:nth-child(even){
  background: var(--surface-2);
}
.cal-row--weekend td{
  color: #334155;
}
.cal-sun{
  color: #b91c1c !important;
  font-weight: 600;
}
.cal-row--today td{
  background: #fef9c3 !important;
  font-weight: 600;
}
.cal-row--today td:first-child{
  box-shadow: inset 3px 0 0 var(--warning);
}
.cal-empty{
  color: #cbd5e1;
}

.overview-deadlines{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin: 4px 0 18px;
}
.odl-box{
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 16px 18px;
  box-shadow: 0 8px 25px rgba(31, 49, 79, 0.05);
}
.odl-box h4{
  margin: 0 0 12px;
  font-size: 14px;
  display: flex;
  align-items: baseline;
  gap: 8px;
}
.odl-box h4 small{
  color: var(--muted);
  font-weight: 500;
  font-size: 11.5px;
}
.odl-row{
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding: 9px 0;
  border-bottom: 1px solid var(--line);
  font-size: 13px;
}
.odl-row:last-child{
  border-bottom: none;
}
.odl-when{
  color: var(--brand);
  font-weight: 700;
  font-size: 12.5px;
  flex: 0 0 auto;
}
.odl-prov{
  color: var(--warning);
  font-style: normal;
  font-size: 11px;
}
.odl-empty{
  color: var(--muted);
  font-size: 12.5px;
  padding: 6px 0;
}
@media (max-width: 760px){
  .overview-deadlines{
    grid-template-columns: 1fr;
  }
}

.shortlist-star .sl-ic{
  color: #cbd5e1;
  font-size: 15px;
  line-height: 1;
}
.shortlist-star:hover .sl-ic{
  color: #f59e0b;
}
.shortlist-star.is-added{
  border-color: #16a34a;
  background: #ecfdf3;
}
.shortlist-star.is-added .sl-ic{
  color: #16a34a;
}

.mgr-shortlist-open{
  border: none;
  background: transparent;
  text-align: left;
  cursor: pointer;
  padding: 0;
  color: var(--text);
}
.mgr-shortlist-open:hover b{
  color: var(--brand);
  text-decoration: underline;
}
.mgr-shortlist-open b{
  display: block;
  font-size: 13.5px;
}
.mgr-shortlist-open small{
  display: block;
  color: var(--muted);
  font-size: 10.5px;
}

.player-profile-page{
  max-width: 1100px;
  margin: 0 auto;
}
.player-profile-page .player-profile{
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
}

.market-tabs{
  margin-bottom: 14px;
}
.market-board-heading{
  margin-bottom: 12px;
}
.showcase-board-scroll{
  max-height: 70vh;
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
}
.showcase-table{
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}
.showcase-table thead th{
  position: sticky;
  top: 0;
  z-index: 3;
  background: var(--brand-dark);
  color: #fff;
  text-align: left;
  padding: 11px 14px;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  white-space: nowrap;
}
.showcase-table tbody td{
  padding: 9px 14px;
  border-bottom: 1px solid var(--line);
  vertical-align: middle;
  white-space: nowrap;
}
.showcase-table tbody tr:nth-child(even){
  background: var(--surface-2);
}
.showcase-row-active td{
  background: #ecfdf3 !important;
}
.showcase-state{
  display: inline-block;
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.04em;
}
.showcase-state.on{
  background: #16a34a;
  color: #fff;
}
.showcase-state.off{
  background: #e2e8f0;
  color: #64748b;
}
.showcase-state.sold{
  background: #7c3aed;
  color: #fff;
}
.showcase-state.released{
  background: #dc2626;
  color: #fff;
}
/* 02/10/2026 — niente display:flex sul <td>: un td in flex esce dal modello
   di riga e lo sfondo (verde "IN VETRINA") si interrompe in questa colonna.
   Allineamento inline del logo cosi' la riga resta colorata per intero. */
.showcase-team{
  white-space: nowrap;
}
.showcase-team .transfer-team-logo,
.showcase-team .transfer-team-fallback{
  width: 24px;
  height: 24px;
  flex: none;
  display: inline-grid;
  place-items: center;
  vertical-align: middle;
  margin-right: 8px;
  border-radius: 7px;
}
.showcase-team > span{
  vertical-align: middle;
}
.showcase-player .link-button{
  border: none;
  background: transparent;
  padding: 0;
  cursor: pointer;
  color: var(--brand);
  font-weight: 700;
  font-size: 13px;
}
.showcase-player .link-button:hover{
  text-decoration: underline;
}
.showcase-player small{
  display: block;
  color: var(--muted);
  font-size: 10.5px;
}
.showcase-contact{
  color: var(--brand);
  font-weight: 600;
  text-decoration: none;
}
.showcase-contact:hover{
  text-decoration: underline;
}
.showcase-contact-missing{
  color: #cbd5e1;
}
/* 02/10/2026 — le note lunghe con white-space:normal + max-width sul <td>
   NON vanno a capo in table-layout:auto (il max-width sulla cella e' ignorato):
   la colonna si allargava, la tabella sforava in orizzontale e il verde della
   riga si interrompeva lasciando spazio bianco a destra. Il testo va in un
   blocco interno con larghezza min/max reale: cosi' va a capo, la colonna non
   collassa in verticale e la tabella rientra nel contenitore. */
.showcase-note{
  white-space: normal;
  font-size: 12px;
  color: var(--muted);
}
.showcase-note-in{
  display: block;
  min-width: 190px;
  max-width: 260px;
  white-space: normal;
}
.showcase-date{
  font-weight: 600;
}

.mgr-showcase-item{
  border-bottom: 1px solid var(--line);
}
.mgr-showcase-extra{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  padding: 4px 10px 12px 34px;
}
.mgr-showcase-extra label{
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 11px;
  color: var(--muted);
}
.mgr-showcase-extra select,
.mgr-showcase-extra input{
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 7px 9px;
  font-size: 12.5px;
  background: var(--surface);
  color: var(--text);
}
@media (max-width: 640px){
  .mgr-showcase-extra{
    grid-template-columns: 1fr;
    padding-left: 12px;
  }
}

.profile-actions{
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  padding: 12px 18px;
  border-bottom: 1px solid var(--line);
  background: var(--surface-2);
}
.profile-actions .profile-action-label{
  margin-left: 5px;
}
.profile-compare-panel{
  flex-basis: 100%;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.profile-compare-panel input{
  max-width: 420px;
}
.profile-compare-results{
  display: flex;
  flex-direction: column;
  gap: 6px;
  max-height: 260px;
  overflow: auto;
}
.profile-compare-result{
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  padding: 8px 12px;
  cursor: pointer;
  text-align: left;
}
.profile-compare-result:hover{
  border-color: var(--brand);
}
.profile-compare-result b{
  font-size: 13px;
}
.profile-compare-result small{
  color: var(--muted);
  font-size: 11px;
}

.compare-summary-card{
  position: relative;
}
.compare-star{
  position: absolute;
  top: 8px;
  right: 40px;
  padding: 4px 8px;
}
.compare-mobile-player .compare-star{
  right: 44px;
}
.roster-star{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  cursor: pointer;
  flex: 0 0 auto;
}
.roster-star:hover{
  border-color: #f59e0b;
}
.roster-star.is-added{
  border-color: #16a34a;
  background: #ecfdf3;
}

.mgr-showcase-extras{
  margin: 2px 0 14px;
}
.mgr-showcase-extras-title{
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted);
  margin-bottom: 8px;
}
.mgr-showcase-extra-row{
  display: grid;
  grid-template-columns: minmax(160px, 1fr) minmax(200px, 1fr) minmax(160px, 1fr);
  gap: 12px;
  align-items: end;
  background: var(--surface);
  border: 1px solid var(--brand);
  border-radius: 11px;
  padding: 10px 14px;
  margin-bottom: 8px;
}
.mgr-showcase-extra-row .mgr-showcase-extra-name b{
  display: block;
  font-size: 13px;
}
.mgr-showcase-extra-row .mgr-showcase-extra-name small{
  color: var(--muted);
  font-size: 10.5px;
}
.mgr-showcase-extra-row label{
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 11px;
  color: var(--muted);
}
.mgr-showcase-extra-row select,
.mgr-showcase-extra-row input{
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 8px 10px;
  font-size: 12.5px;
  background: var(--surface);
  color: var(--text);
  width: 100%;
  box-sizing: border-box;
}
@media (max-width: 700px){
  .mgr-showcase-extra-row{
    grid-template-columns: 1fr;
    align-items: stretch;
  }
}
/* 02/11/2026 — Nota giocatore a tutta riga nei dettagli offerta */
.mgr-showcase-extra-row .mgr-showcase-extra-note{ grid-column: 1 / -1; }

.showcase-table thead th.sortable{
  cursor: pointer;
  user-select: none;
}
.showcase-table thead th.sortable:hover{
  background: #1e3a8a;
}
.showcase-table thead th .sort-arrow{
  font-size: 9px;
  opacity: 0.9;
}
.showcase-table thead tr.showcase-filter-row th{
  top: 37px;
  padding: 6px 10px;
  background: var(--brand-dark);
}
.showcase-filter-row input,
.showcase-filter-row select{
  width: 100%;
  box-sizing: border-box;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.95);
  color: var(--text);
  font-size: 11.5px;
  padding: 5px 7px;
  font-weight: 500;
  text-transform: none;
  letter-spacing: normal;
}
/* 19/10/2026 — Vetrina Cedibili su MOBILE: ogni riga diventa una CARD leggibile
   (niente più scroll orizzontale). Le colonne usano le etichette (data-label);
   la riga filtri resta come barra che si impila. Da ≥761px resta la tabella. */
@media (max-width: 760px){
  .showcase-board-scroll{ max-height:none; overflow:visible; border:0; background:transparent; }
  .showcase-table{ display:block; font-size:13px; }
  .showcase-table thead{ display:block; }
  .showcase-table thead tr:not(.showcase-filter-row){ display:none; }
  .showcase-table thead tr.showcase-filter-row{ display:flex; flex-wrap:wrap; gap:8px; position:static;
    background:var(--brand-dark); border-radius:12px; padding:10px; margin-bottom:12px; }
  .showcase-table thead tr.showcase-filter-row th{ display:block; position:static; top:auto; padding:0;
    flex:1 1 140px; background:transparent; }
  .showcase-table thead tr.showcase-filter-row th:empty{ display:none; }
  .showcase-table .showcase-selcol{ display:none !important; }
  .showcase-table tbody{ display:none; }
  .showcase-cards{ display:block; }
  .showcase-table tbody tr{ display:block; background:var(--surface) !important; border:1px solid var(--line);
    border-radius:14px; padding:4px 13px; margin-bottom:10px; box-shadow:0 1px 4px rgba(16,36,70,.06); }
  .showcase-table tbody tr:nth-child(even){ background:var(--surface) !important; }
  .showcase-row-active td{ background:transparent !important; }
  .showcase-row-active{ border-color:#bbf7d0 !important; }
  .showcase-table tbody td{ display:flex; align-items:center; justify-content:space-between; gap:12px;
    padding:7px 0; border-bottom:1px dashed var(--line2,#eef2f7); white-space:normal; text-align:right; }
  .showcase-table tbody tr td:last-child{ border-bottom:0; }
  .showcase-table tbody td::before{ content:attr(data-label); font-weight:800; font-size:10.5px;
    text-transform:uppercase; letter-spacing:.03em; color:#64748b; text-align:left; flex:0 0 auto; }
  .showcase-table td.showcase-player{ flex-direction:column; align-items:flex-end; gap:2px; }
  .showcase-table td.showcase-player::before{ align-self:flex-start; }
  .showcase-table td.showcase-player small{ text-align:right; }
  .showcase-table td.showcase-note{ flex-direction:column; align-items:flex-start; text-align:left; }
  .showcase-table td.showcase-note::before{ margin-bottom:3px; }
  .showcase-table td.showcase-note .showcase-note-in{ text-align:left; white-space:normal; }
}

.finance-flag{
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  padding: 8px 12px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text);
  cursor: pointer;
  white-space: nowrap;
  user-select: none;
}
.finance-flag input{
  width: 15px;
  height: 15px;
  accent-color: var(--brand);
  cursor: pointer;
}
.finance-flag:has(input:not(:checked)){
  color: var(--muted);
  background: var(--surface-2);
}
.finance-table--hide-money .finance-group--wages,
.finance-table--hide-money .finance-group--credits,
.finance-table--hide-money .finance-subhead--wages,
.finance-table--hide-money .finance-subhead--credits,
.finance-table--hide-money .finance-cell--wages,
.finance-table--hide-money .finance-cell--credits{
  display: none;
}
.finance-table--hide-squad .finance-group--roster,
.finance-table--hide-squad .finance-group--in,
.finance-table--hide-squad .finance-group--out,
.finance-table--hide-squad .finance-subhead--roster,
.finance-table--hide-squad .finance-subhead--in,
.finance-table--hide-squad .finance-subhead--out,
.finance-table--hide-squad .finance-cell--roster,
.finance-table--hide-squad .finance-cell--in,
.finance-table--hide-squad .finance-cell--out{
  display: none;
}

.finance-table.finance-table--hide-money,
.finance-table.finance-table--hide-squad{
  min-width: 0 !important;
  width: 100%;
}

.transfer-note{
  margin-top: 6px;
  font-size: 11.5px;
  color: var(--muted);
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 5px 9px;
  display: inline-block;
}

.transfer-viewtoggle{
  margin-left: 4px;
}
.tr-lbl-mobile{ display: none; }
@media (max-width: 720px){
  .tr-lbl-desktop{ display: none; }
  .tr-lbl-mobile{ display: inline; }
}

.tr-op{
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  margin-bottom: 14px;
}
.tr-op__head{
  background: var(--brand-dark);
  color: #fff;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 6px 14px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.05em;
}
.tr-op__count{ opacity: 0.85; font-weight: 500; }
.tr-row{
  display: grid;
  grid-template-columns: 175px minmax(230px, 1fr) 34px 175px 100px minmax(150px, 1fr);
  align-items: center;
  gap: 12px;
  padding: 7px 14px;
  border-bottom: 1px solid var(--line);
}
.tr-row:nth-child(odd){ background: #f8fafc; }
.tr-row:last-child{ border-bottom: none; }
.tr-club{
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}
.tr-club em{
  font-style: normal;
  font-weight: 700;
  font-size: 12.5px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.tr-club .transfer-team-logo,
.tr-club .transfer-team-fallback{
  width: 32px;
  height: 32px;
  flex: 0 0 auto;
}
.tr-player{
  display: flex;
  align-items: center;
  gap: 9px;
  border: none;
  background: transparent;
  padding: 0;
  cursor: pointer;
  text-align: left;
  min-width: 0;
}
.tr-player .transfer-player-face{
  width: 36px;
  height: 36px;
  flex: 0 0 auto;
}
.tr-player__copy{ min-width: 0; }
.tr-player__copy b{
  display: block;
  font-size: 13.5px;
  line-height: 1.15;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.tr-player:hover .tr-player__copy b{ color: var(--brand); text-decoration: underline; }
.tr-player__copy small{
  display: block;
  color: var(--muted);
  font-size: 11px;
}
.tr-arrow{
  color: #16a34a;
  font-weight: 900;
  font-size: 17px;
  text-align: center;
}
.tr-cr{ text-align: right; white-space: nowrap; }
.tr-cr b{ font-size: 13.5px; }
.tr-cr small{
  display: block;
  color: var(--muted);
  font-size: 9.5px;
}
.tr-extra{
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  justify-content: flex-end;
  align-items: center;
}
.tr-note{
  display: inline-block;
  background: #fffbeb;
  border: 1px solid #fde68a;
  border-radius: 8px;
  padding: 2px 8px;
  font-size: 10.5px;
  color: #92400e;
}
.tr-extra .transfer-clause-row{ margin: 0; }

@media (max-width: 720px){
  .tr-op{ border-radius: 12px; }
  .tr-op__head{ font-size: 10px; padding: 5px 12px; }
  .tr-row{
    grid-template-columns: 52px minmax(0, 1fr) 26px 52px;
    grid-template-areas:
      "seller player arrow buyer"
      "extra  extra  extra cr";
    gap: 6px 8px;
    padding: 9px 10px;
  }
  .tr-club--seller{ grid-area: seller; }
  .tr-club--buyer{ grid-area: buyer; }
  .tr-player{ grid-area: player; }
  .tr-arrow{ grid-area: arrow; font-size: 15px; }
  .tr-cr{ grid-area: cr; align-self: center; }
  .tr-extra{ grid-area: extra; justify-content: flex-start; }
  .tr-club{
    flex-direction: column;
    gap: 3px;
    text-align: center;
  }
  .tr-club .transfer-team-logo,
  .tr-club .transfer-team-fallback{
    width: 40px;
    height: 40px;
  }
  .tr-club em{
    font-size: 8.5px;
    max-width: 52px;
    white-space: normal;
    line-height: 1.1;
  }
  .tr-player .transfer-player-face{ width: 40px; height: 40px; }
  .tr-player__copy b{
    white-space: normal;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    font-size: 13px;
  }
}

.tr-table-scroll{
  max-height: 72vh;
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
}
.tr-table{
  width: 100%;
  min-width: 860px;
  border-collapse: collapse;
  font-size: 12.5px;
}
.tr-table thead th{
  position: sticky;
  top: 0;
  z-index: 3;
  background: var(--brand-dark);
  color: #fff;
  text-align: left;
  padding: 10px 12px;
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  white-space: nowrap;
  cursor: pointer;
  user-select: none;
}
.tr-table thead th:hover{ background: #1e3a8a; }
.tr-table thead th .sort-arrow{ font-size: 8px; opacity: 0.9; }
.tr-table tbody td{
  padding: 7px 12px;
  border-bottom: 1px solid var(--line);
  vertical-align: middle;
  white-space: nowrap;
}
.tr-table tbody tr:nth-child(even){ background: var(--surface-2); }
.tr-td-club{
  display: flex;
  align-items: center;
  gap: 7px;
  font-weight: 700;
}
.tr-td-club .transfer-team-logo,
.tr-td-club .transfer-team-fallback{
  width: 26px;
  height: 26px;
  flex: 0 0 auto;
}
.tr-table .link-button{
  border: none;
  background: transparent;
  padding: 0;
  cursor: pointer;
  color: var(--brand);
  font-weight: 700;
  font-size: 12.5px;
}
.tr-table .link-button:hover{ text-decoration: underline; }
.tr-nocount{
  display: block;
  color: var(--muted);
  font-size: 9px;
}

#transfersView .transfer-operations{
  display: block !important;
}
#transfersView .tr-table-scroll{
  width: 100%;
}

.tr-row{
  grid-template-columns: 200px minmax(240px, 1.2fr) 34px 200px 110px minmax(150px, 1fr);
}
.tr-club em{
  white-space: normal;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  line-height: 1.15;
}
.tr-player__copy b{
  white-space: normal;
  overflow: hidden;
  text-overflow: clip;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}
.tr-cr{
  overflow: visible;
}

.tr-table tbody td{
  white-space: normal;
}
.tr-td-club span{
  line-height: 1.15;
}

#transfersView .transfer-toolbar{
  display: grid;
  grid-template-columns: minmax(180px, 1.5fr) minmax(130px, 1fr) minmax(150px, 1fr) minmax(130px, 1fr) auto auto;
  gap: 10px;
  align-items: center;
}
#transfersView .transfer-search{
  grid-column: auto;
  width: 100%;
}
#transfersView #transferReset{
  min-height: 44px;
  white-space: nowrap;
  padding: 0 16px;
}
#transfersView .transfer-viewtoggle{
  margin-left: 0;
  min-height: 44px;
  align-items: stretch;
}
#transfersView .transfer-viewtoggle button{
  padding: 0 14px;
}
@media (max-width: 1100px){
  #transfersView .transfer-toolbar{
    grid-template-columns: 1fr 1fr 1fr;
  }
  #transfersView .transfer-search{ grid-column: 1 / -1; }
}
@media (max-width: 640px){
  #transfersView .transfer-toolbar{
    grid-template-columns: 1fr 1fr;
  }
  #transfersView .transfer-search{ grid-column: 1 / -1; }
}

.tr-row{
  grid-template-columns: 200px minmax(240px, 1.2fr) 110px 34px 200px minmax(140px, 1fr);
}
.tr-cr{
  text-align: right;
}
.tr-cr-chip{
  display: inline-block;
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  color: var(--brand-dark);
  font-weight: 800;
  font-size: 12px;
  border-radius: 8px;
  padding: 3px 9px;
  white-space: nowrap;
}
@media (max-width: 720px){
  
  .tr-row{
    grid-template-columns: 52px minmax(0, 1fr) 26px 52px;
    grid-template-areas:
      "seller player arrow buyer"
      "extra  extra  extra cr";
  }
}

.tr-row{
  grid-template-columns: 200px minmax(240px, 1.2fr) 34px 240px minmax(140px, 1fr);
}
.tr-club__copy{
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.tr-cr-pay{
  display: inline-block;
  align-self: flex-start;
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  color: var(--brand-dark);
  font-weight: 800;
  font-size: 11px;
  border-radius: 8px;
  padding: 2px 8px;
  white-space: nowrap;
}
.tr-cr--mobile{ display: none; }
@media (max-width: 720px){
  .tr-row{
    grid-template-columns: 52px minmax(0, 1fr) 26px 52px;
    grid-template-areas:
      "seller player arrow buyer"
      "extra  extra  cr    cr";
  }
  
  .tr-club--buyer .tr-cr-pay{ display: none; }
  .tr-cr--mobile{
    display: flex;
    grid-area: cr;
    justify-content: flex-end;
  }
  .tr-club__copy{ align-items: center; }
}

.tr-club-id{ display: none; }

@media (max-width: 720px){
  .tr-op{ overflow: hidden; border-radius: 12px; }
  .tr-op__head{ font-size: 10px; padding: 5px 12px; }
  .tr-row{
    grid-template-columns: 56px minmax(0, 1fr) 22px 56px;
    grid-template-areas:
      "seller player arrow buyer"
      "extra  extra  cr    cr";
    column-gap: 8px;
    row-gap: 6px;
    padding: 9px 10px;
    align-items: center;
  }
  .tr-row > *{ min-width: 0; }
  .tr-club--seller{ grid-area: seller; }
  .tr-club--buyer{ grid-area: buyer; }
  .tr-player{ grid-area: player; }
  .tr-arrow{ grid-area: arrow; font-size: 15px; }
  .tr-extra{ grid-area: extra; justify-content: flex-start; }
  .tr-cr--mobile{ grid-area: cr; }

  .tr-club{
    flex-direction: column;
    gap: 3px;
    align-items: center;
    text-align: center;
  }
  .tr-club .transfer-team-logo,
  .tr-club .transfer-team-fallback{
    width: 42px;
    height: 42px;
  }
  .tr-club__copy{ align-items: center; }
  .tr-club em{ display: none; }
  .tr-club-id{
    display: block;
    font-style: normal;
    font-weight: 800;
    font-size: 9px;
    letter-spacing: 0.04em;
    color: var(--muted);
    text-transform: uppercase;
    max-width: 56px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .tr-player{ gap: 7px; }
  .tr-player .transfer-player-face{ width: 40px; height: 40px; }
  .tr-player__copy b{
    font-size: 13px;
    white-space: normal;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
  .tr-player__copy small{ font-size: 10px; }

  .tr-club--buyer .tr-cr-pay{ display: none; }
  .tr-cr--mobile{
    display: flex;
    justify-content: flex-end;
  }
}

.analysis-toolbar{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}
.analysis-grid{
  display: grid;
  grid-template-columns: 1fr 1.25fr;
  gap: 16px;
  align-items: start;
}
.analysis-panel{
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 18px;
}
.anls-row{
  display: grid;
  grid-template-columns: 24px 34px 1fr 56px 100px;
  gap: 9px;
  align-items: center;
  width: 100%;
  padding: 8px 6px;
  border: none;
  border-bottom: 1px solid var(--line);
  background: transparent;
  cursor: pointer;
  text-align: left;
}
.anls-row:hover{ background: var(--surface-2); }
.anls-row.on{ background: #eff6ff; }
.anls-row:last-child{ border-bottom: none; }
.anls-pos{ font-weight: 900; color: var(--muted); font-size: 13px; }
.anls-row .transfer-team-logo,
.anls-row .transfer-team-fallback{ width: 30px; height: 30px; }
.anls-copy b{ display: block; font-size: 13.5px; }
.anls-copy small{ color: var(--muted); font-size: 10.5px; }
.anls-idx{ font-weight: 900; font-size: 15px; text-align: right; }
.anls-bar{ height: 7px; border-radius: 99px; background: #e2e8f0; display: block; }
.anls-bar i{ display: block; height: 7px; border-radius: 99px; background: var(--brand); }
.anls-tag{
  border-radius: 999px;
  padding: 2px 8px;
  font-size: 9.5px;
  font-weight: 800;
  margin-left: 4px;
}
.anls-tag--t1{ background: #ecfdf3; color: #16a34a; }
.anls-tag--t2{ background: #eff6ff; color: var(--brand-dark); }
.anls-tag--t3{ background: #fff7ed; color: #d97706; }
.anls-pitch{
  background: linear-gradient(#15803d, #166534);
  border-radius: 14px;
  padding: 14px 8px;
  margin-bottom: 12px;
}
.anls-line{
  display: flex;
  justify-content: space-evenly;
  margin: 10px 0;
}
.anls-pl{ width: 86px; text-align: center; }
.anls-dot{
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--surface);
  margin: 0 auto 3px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 12px;
  color: var(--brand-dark);
  border: 3px solid #bbf7d0;
}
.anls-pl span:not(.anls-dot){
  display: block;
  color: #fff;
  font-size: 9.5px;
  font-weight: 800;
  text-shadow: 0 1px 2px rgba(0, 0, 0, .4);
  line-height: 1.15;
}
.anls-pl small{ color: #bbf7d0; font-size: 8.5px; font-weight: 700; }
.anls-kpis{
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin: 12px 0;
}
.anls-kpi{
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 11px;
  padding: 9px 11px;
}
.anls-kpi span{
  display: block;
  font-size: 9px;
  font-weight: 800;
  color: var(--muted);
  text-transform: uppercase;
}
.anls-kpi b{ font-size: 16px; }
.anls-benchtitle{
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: var(--muted);
  margin: 12px 0 8px;
}
.anls-bench{ display: flex; gap: 6px; flex-wrap: wrap; }
.anls-bch{
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 10.5px;
  font-weight: 700;
}
.anls-bch em{ font-style: normal; color: var(--muted); font-weight: 600; }
.anls-alert{
  background: #fffbeb;
  border: 1px solid #fde68a;
  border-radius: 10px;
  padding: 9px 12px;
  font-size: 12px;
  color: #92400e;
  margin-top: 12px;
}
@media (max-width: 900px){
  .analysis-grid{ grid-template-columns: 1fr; }
  .anls-row{ grid-template-columns: 20px 30px 1fr 46px 70px; }
  .anls-pl{ width: 64px; }
  .anls-kpis{ grid-template-columns: repeat(2, 1fr); }
}

.discipline-toolbar{
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}
.discipline-grid{
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 16px;
  align-items: start;
}
.disc-scroll{
  max-height: 68vh;
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 12px;
}
.disc-table{
  width: 100%;
  min-width: 640px;
  border-collapse: collapse;
  font-size: 12.5px;
}
.disc-table thead th{
  position: sticky;
  top: 0;
  z-index: 3;
  background: var(--brand-dark);
  color: #fff;
  text-align: left;
  padding: 9px 12px;
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: .04em;
  white-space: nowrap;
}
.disc-table tbody td{
  padding: 8px 12px;
  border-bottom: 1px solid var(--line);
  vertical-align: middle;
}
.disc-table tbody tr:nth-child(even){ background: var(--surface-2); }
.disc-ref{ font-weight: 700; color: var(--muted); white-space: nowrap; }
.disc-date{ font-weight: 700; color: var(--muted); white-space: nowrap; font-size: 12px; }
.disc-chip{
  display: inline-block;
  border-radius: 999px;
  padding: 3px 10px;
  font-size: 11px;
  font-weight: 800;
  white-space: nowrap;
}
.disc-chip--plus{ background: #ecfdf3; color: #16a34a; border: 1px solid #bbf7d0; }
.disc-chip--minus{ background: #fef2f2; color: #b91c1c; border: 1px solid #fecaca; }
.disc-chip--zero{ background: var(--surface-2); color: var(--muted); border: 1px solid var(--line); }
.disc-rule{
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding: 9px 0;
  border-bottom: 1px solid var(--line);
  font-size: 13px;
}
.disc-rule:last-child{ border-bottom: none; }
.disc-rule b{ display: block; font-size: 13px; }
.disc-rule small{ color: var(--muted); font-size: 10.5px; }
.overview-discipline{ margin: 0 0 18px; }
.odl-box--discipline .odl-row span{ min-width: 0; }
.disc-ctx{ color: var(--muted); }
.disc-all{
  margin-top: 10px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--brand);
  border-radius: 9px;
  padding: 7px 14px;
  font-weight: 800;
  cursor: pointer;
  font-size: 12px;
}
@media (max-width: 900px){
  .discipline-grid{ grid-template-columns: 1fr; }
  .disc-scroll{ overflow-x: auto; }
}

.finance-table--hide-squad th,
.finance-table--hide-squad td{
  padding-left: 9px !important;
  padding-right: 9px !important;
}
.finance-table--hide-squad{
  font-size: 12.5px;
}

.finance-table.finance-table--collapsed{
  min-width: 0 !important;
  width: 100%;
  font-size: 12px;
}
.finance-table--collapsed .finance-column-row th{
  padding-left: 5px !important;
  padding-right: 5px !important;
  font-size: 9.5px;
  letter-spacing: .02em;
}
.finance-table--collapsed tbody td{
  padding: 8px 5px;
}
.finance-table--collapsed tbody td.finance-sticky-manager{
  max-width: 148px;
  overflow: hidden;
  text-overflow: ellipsis;
}
.finance-table--collapsed tbody td.finance-sticky-team{
  max-width: 185px;
  overflow: hidden;
}
.finance-table--collapsed thead tr.finance-column-row th:nth-child(2),
.finance-table--collapsed tbody td.finance-sticky-team{
  left: 148px;
}
.finance-table--collapsed .data-table-sort{
  gap: 2px;
  min-height: 24px;
  padding: 0;
}
.finance-table--collapsed .data-table-sort span{
  white-space: normal;
  line-height: 1.1;
  text-align: left;
}
.finance-table--collapsed tbody td{
  font-size: 11.5px;
  padding: 7px 4px;
}
.finance-table--collapsed tbody td.finance-sticky-team strong{
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 150px;
  display: inline-block;
}
.finance-table--grouped.finance-table--collapsed thead th{
  min-width: 0 !important;
}
.finance-table--grouped.finance-table--collapsed thead tr.finance-column-row th:nth-child(1){
  min-width: 130px !important;
  max-width: 148px;
}

.fb-note{
  background:#fffbeb;border:1px solid #fde68a;border-radius:10px;
  padding:9px 13px;font-size:11.5px;color:#92400e;margin-bottom:14px;
}
.fb-gironi{ display:grid; grid-template-columns:repeat(auto-fit, minmax(320px, 1fr)); gap:16px; margin-bottom:24px; }
.fb-card{ background:var(--surface); border:1px solid var(--line); border-radius:16px; padding:16px 18px; }
.fb-card h3{ font-size:12px; text-transform:uppercase; letter-spacing:.06em; color:var(--muted); margin:0 0 10px; }
table.fb-cls{ width:100%; border-collapse:collapse; font-size:12.5px; }
table.fb-cls th{ text-align:left; color:var(--muted); font-size:10px; text-transform:uppercase; letter-spacing:.04em; padding:6px 4px; border-bottom:2px solid var(--line); }
table.fb-cls th.fb-num{ text-align:center; }
table.fb-cls td{ padding:7px 4px; border-bottom:1px solid var(--line); }
table.fb-cls td.fb-num{ text-align:center; color:var(--muted); }
table.fb-cls tr:last-child td{ border-bottom:none; }
table.fb-cls td.fb-pos{ font-weight:900; color:var(--brand-dark); width:20px; }
table.fb-cls td.fb-pt{ font-weight:900; color:var(--text); }

/* Penalizzazioni (21/10/2026): badge -X accanto alla squadra + nota sotto la classifica */
.fb-pen{ display:inline-block; background:#fdeef0; color:#b4232f; border-radius:5px; padding:0 5px; font-size:10.5px; font-weight:900; margin-left:5px; vertical-align:middle; cursor:help; }
.fb-pennote{ display:flex; flex-direction:column; gap:3px; margin-top:8px; font-size:11px; color:var(--muted); }
.fb-pennote span{ display:flex; align-items:center; gap:6px; }
.fb-pen-dot{ display:inline-block; min-width:22px; text-align:center; background:#fdeef0; color:#b4232f; border-radius:5px; padding:0 4px; font-size:10px; font-weight:900; font-style:normal; flex:none; }
@media (prefers-color-scheme: dark){ :root:not([data-theme="light"]) .fb-pen, :root:not([data-theme="light"]) .fb-pen-dot{ background:rgba(180,35,47,.22); color:#ff9ba3; } }
:root[data-theme="dark"] .fb-pen, :root[data-theme="dark"] .fb-pen-dot{ background:rgba(180,35,47,.22); color:#ff9ba3; }

.fb-elim{ display:grid; grid-template-columns:repeat(auto-fit, minmax(260px, 1fr)); gap:16px; align-items:start; }
.fb-elim-col h3{ font-size:11px; text-transform:uppercase; color:var(--muted); letter-spacing:.06em; margin:0 0 10px; display:flex; align-items:center; gap:8px; flex-wrap:wrap; }
.fb-badge{ background:var(--surface-2); border:1px solid var(--line); border-radius:999px; padding:2px 8px; font-size:9px; font-weight:800; color:var(--muted); text-transform:none; letter-spacing:0; }
.fb-tie{ background:var(--surface); border:1px solid var(--line); border-radius:14px; padding:12px 14px; margin-bottom:12px; }
.fb-tie-id{ font-size:10px; font-weight:900; color:var(--brand-dark); letter-spacing:.06em; margin-bottom:6px; display:flex; justify-content:space-between; }
.fb-tie-row{ display:flex; justify-content:space-between; align-items:center; padding:5px 0; font-weight:700; font-size:13.5px; }
.fb-tie-row small{ color:var(--muted); font-weight:600; }
.fb-tie-row--winner{ color:var(--success); }
.fb-sc{ background:var(--surface-2); border:1px solid var(--line); border-radius:7px; min-width:26px; text-align:center; padding:2px 6px; color:var(--muted); font-weight:700; }
.fb-placeholder{ color:#94a3b8; font-style:italic; font-weight:600; }
.fb-pill{ border-radius:999px; padding:3px 10px; font-size:10px; font-weight:800; }
.fb-pill--done{ background:#ecfdf3; color:var(--success); border:1px solid #bbf7d0; }
.fb-pill--half{ background:#fff7ed; color:var(--warning); border:1px solid #fed7aa; }
.fb-pill--todo{ background:#eff6ff; color:var(--brand-dark); border:1px solid #bfdbfe; }
.fb-pill--wait{ background:#f1f5f9; color:#64748b; border:1px solid var(--line); }
@media (max-width:720px){
  .fb-gironi{ grid-template-columns:1fr; }
  .fb-elim{ grid-template-columns:1fr; }
}

.nav-mobile-toggle{
  display: none;
}
@media (max-width: 1024px){
  .nav-mobile-toggle{
    display: flex !important;
    align-items: center;
    gap: 8px;
    margin-left: auto !important;
    padding: 8px 12px 8px 10px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: var(--surface-2);
    color: var(--text);
    font-weight: 700;
    font-size: 13px;
    cursor: pointer;
    max-width: 62vw;
    flex: 0 1 auto !important;
  }
  .nav-mobile-toggle__icon{
    display: flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    flex: 0 0 20px;
  }
  .nav-mobile-toggle__icon svg{
    width: 20px;
    height: 20px;
    fill: none;
    stroke: var(--brand);
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
  }
  .nav-mobile-toggle__label{
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .nav-mobile-toggle__chevron{
    font-size: 10px;
    color: var(--muted);
    transition: transform .15s ease;
    flex: 0 0 auto;
  }
  .sidebar.nav-open .nav-mobile-toggle__chevron{
    transform: rotate(180deg);
  }
  .sidebar .nav-scroll-hint{
    display: none !important;
  }
  .sidebar .nav-list{
    display: none !important;
  }
  .sidebar.nav-open .nav-list{
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    position: absolute !important;
    top: 100% !important;
    left: 0 !important;
    right: 0 !important;
    max-height: calc(100vh - 64px) !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    background: var(--surface) !important;
    padding: 8px !important;
    gap: 2px !important;
    margin: 0 !important;
    box-shadow: 0 20px 40px rgba(15,23,42,.18) !important;
    border-bottom: 1px solid var(--line) !important;
    z-index: 99 !important;
  }
  .sidebar.nav-open .nav-group{
    display: block !important;
  }
  .sidebar.nav-open .nav-divider{
    display: block !important;
    height: 1px !important;
    background: var(--line) !important;
    margin: 6px 6px !important;
  }
  .sidebar.nav-open .nav-item{
    width: 100% !important;
    flex: none !important;
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 12px !important;
    padding: 12px 10px !important;
    border-radius: 10px !important;
  }
  .sidebar.nav-open .nav-item.active{
    background: var(--surface-2) !important;
  }
  .sidebar.nav-open .nav-item .nav-icon svg{
    width: 20px;
    height: 20px;
  }
  .sidebar.nav-open .nav-label{
    display: inline !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    color: var(--text) !important;
  }

  #overviewView .overview-nav-grid{
    display: none !important;
  }

  .sidebar,
  .sidebar.sidebar--collapsed{
    flex-wrap: wrap !important;
    height: auto !important;
    min-height: 64px !important;
    overflow: visible !important;
    row-gap: 8px !important;
    padding: 8px 10px !important;
  }
  .sidebar .brand,
  .sidebar.sidebar--collapsed .brand{
    order: 1 !important;
    width: 36px !important;
    min-width: 36px !important;
    height: 36px !important;
    min-height: 36px !important;
    flex: 0 0 36px !important;
  }
  .sidebar .brand-logo,
  .sidebar.sidebar--collapsed .brand-logo{
    width: 34px !important;
    height: 34px !important;
  }
  .sidebar .brand-logo-fallback{
    padding: 5px 7px !important;
    font-size: 13px !important;
  }
  .sidebar-mobile-actions{
    order: 2 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: flex-end !important;
    gap: 8px !important;
    flex: 1 1 auto !important;
    min-width: 0 !important;
  }
  .sidebar-mobile-actions .app-refresh-button{
    height: 36px !important;
    width: 36px !important;
    flex: 0 0 36px !important;
    padding: 0 !important;
  }
  .sidebar-mobile-actions .app-refresh-label{
    display: none !important;
  }
  .sidebar-mobile-actions .na-bell-wrap{
    flex: 0 0 auto !important;
  }
  .sidebar-mobile-actions .na-bell{
    width: 36px !important;
    height: 36px !important;
  }
  .sidebar-mobile-actions .season-control{
    display: flex !important;
    align-items: center !important;
    gap: 0 !important;
    width: auto !important;
    min-width: 0 !important;
    flex: 0 1 auto !important;
    text-transform: none !important;
    letter-spacing: normal !important;
  }
  .sidebar-mobile-actions .season-control > span{
    display: none !important;
  }
  .sidebar-mobile-actions .season-control select{
    min-width: 0 !important;
    width: auto !important;
    max-width: 42vw !important;
    height: 36px !important;
    padding: 0 10px !important;
    font-size: 12px !important;
    font-weight: 700 !important;
    border-radius: 9px !important;
    text-transform: none !important;
    letter-spacing: normal !important;
  }
  .nav-mobile-toggle{
    order: 3 !important;
    flex: 0 0 100% !important;
    width: 100% !important;
    margin-left: 0 !important;
    max-width: none !important;
    justify-content: space-between !important;
  }
  .sidebar .nav-list{
    order: 4 !important;
  }
}

@media (min-width: 861px){
  .topbar{
    position: sticky;
    top: 0;
    z-index: 60;
    background: var(--bg);
    padding-top: 16px;
    padding-bottom: 16px;
    padding-left: clamp(20px, 4vw, 56px);
    padding-right: clamp(20px, 4vw, 56px);
    margin-top: -30px;
    margin-left: calc(-1 * clamp(20px, 4vw, 56px));
    margin-right: calc(-1 * clamp(20px, 4vw, 56px));
    margin-bottom: 30px;
    transition: box-shadow .15s ease;
  }
  .topbar.is-scrolled{
    box-shadow: 0 16px 20px -18px rgba(15,23,42,.30);
  }
}

.club-next-roster-board .roster-card{
  cursor: default;
}
.club-next-roster-board .roster-role-group + .roster-role-group{
  margin-top: 14px;
}

#clubDetail.club-focus-next-roster > .inline-warning,
#clubDetail.club-focus-next-roster > #clubRosterSection,
#clubDetail.club-focus-next-roster > .club-after-grid{
  display: none !important;
}

#clubNextRosterSection{
  display: none;
}
#clubDetail.club-focus-next-roster > #clubNextRosterSection{
  display: block;
}

.fmto-club-nav__item--next-roster{
  background: var(--surface) !important;
  color: #b8860b !important;
  border-radius: 10px;
  border: 1px solid #c31432;
  box-shadow: inset 0 0 0 3px #ffffff, inset 0 0 0 4px #1d3f9e;
}
.fmto-club-nav__item--next-roster:hover{
  color: #9c6f05 !important;
  box-shadow: inset 0 0 0 3px #fffdf5, inset 0 0 0 4px #16307e;
}
.fmto-club-nav__item--next-roster.fmto-club-nav__item--active{
  border-color: #a10f28;
  box-shadow: inset 0 0 0 3px #fffdf5, inset 0 0 0 5px #16307e;
}
.fmto-club-mobile-nav__item.fmto-club-nav__item--next-roster{
  background: var(--surface) !important;
  color: #b8860b !important;
  border-radius: 10px;
  border: 1px solid #c31432;
  box-shadow: inset 0 0 0 3px #ffffff, inset 0 0 0 4px #1d3f9e;
}

@media (max-width: 860px){
  .sidebar{
    position: sticky !important;
    top: 0 !important;
    left: 0 !important;
    z-index: 60 !important;
    background: var(--surface) !important;
    box-shadow: 0 8px 18px -14px rgba(15, 23, 42, .35);
  }
  
  #clubHubHeader.fmto-club-header{
    position: sticky !important;
    top: var(--fmto-mobile-header-h, 136px) !important;
    z-index: 45 !important;
  }
  
  #clubHubHeader .fmto-club-mobile-nav,
  .fmto-club-mobile-nav{
    top: var(--fmto-mobile-header-h, 136px) !important;
  }
}

.hof-shell,
.hof-shell *{
  font-family:var(--font-serif);
}
.hof-shell{
  --hof-paper:#fbf7ef;
  --hof-paper-2:#f5eddf;
  --hof-line:#e3d9c6;
  --hof-line-soft:#d8cbb2;
  --hof-ink:#2a2118;
  --hof-muted:#7a6c55;
  --hof-gold:#8a6a22;
  --hof-gold-soft:#a58a4a;
}

.hof-shell .hof-hero{
  border-radius:10px;
  min-height:210px;
  background:
    radial-gradient(circle at 85% 15%, rgba(255,213,89,.22), transparent 34%),
    linear-gradient(125deg,#17130e,#3a2c12);
  transition:min-height .2s ease, padding .2s ease;
}
.hof-shell .hof-hero h2{
  margin:0 0 8px;
  font-size:clamp(36px,5vw,62px);
}
.hof-shell .hof-hero p{
  color:#e0d5bd;
  font-style:italic;
}
.hof-shell .hof-hero .palmares-hero-kpis span{
  border-radius:6px;
  border-color:rgba(232,201,122,.28);
  background:rgba(255,255,255,.05);
  color:#ded2b8;
}
.hof-shell .hof-hero .palmares-hero-kpis strong{
  color:#e8c97a;
}
.hof-shell .hof-hero.is-compact{
  min-height:0;
  padding:22px 26px;
  align-items:center;
}
.hof-shell .hof-hero.is-compact h2{
  font-size:clamp(26px,3.4vw,38px);
  margin-bottom:4px;
}
.hof-shell .hof-hero.is-compact p{
  font-size:13px;
}
.hof-shell .hof-hero.is-compact .palmares-hero-kpis span{
  min-width:88px;
  padding:9px 11px;
  font-size:9px;
}
.hof-shell .hof-hero.is-compact .palmares-hero-kpis strong{
  font-size:20px;
}

.hof-landing{
  display:grid;
  grid-template-columns:repeat(6,minmax(0,1fr));
  gap:16px;
  margin-top:20px;
}

.hof-landing .hof-card:nth-child(1),
.hof-landing .hof-card:nth-child(2){ grid-column:span 3; }
.hof-landing .hof-card:nth-child(3),
.hof-landing .hof-card:nth-child(4),
.hof-landing .hof-card:nth-child(5){ grid-column:span 2; }
.hof-landing[hidden]{ display:none; }
.hof-card{
  position:relative;
  display:flex;
  flex-direction:column;
  align-items:flex-start;
  padding:30px 28px 24px;
  border:1px solid var(--hof-line);
  border-radius:10px;
  background:linear-gradient(160deg,var(--hof-paper),var(--hof-paper-2));
  color:var(--hof-ink);
  text-align:left;
  font:inherit;
  cursor:pointer;
  transition:transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}
.hof-card:hover,
.hof-card:focus-visible{
  transform:translateY(-3px);
  border-color:#b08d3e;
  box-shadow:0 14px 28px rgba(70,55,20,.14);
}
.hof-card__count{
  position:absolute;
  top:15px;
  right:16px;
  color:var(--hof-gold-soft);
  font-family:var(--font-serif);
  font-size:15px;
}
.hof-card__ico{
  display:grid;
  place-items:center;
  width:46px;
  height:46px;
  margin-bottom:14px;
  border-radius:8px;
  background:#f0e6d2;
  color:var(--hof-gold);
}
.hof-card__ico svg{
  width:24px;
  height:24px;
  fill:none;
  stroke:currentColor;
  stroke-width:1.7;
  stroke-linecap:round;
  stroke-linejoin:round;
}
.hof-card > strong{
  display:block;
  margin-bottom:6px;
  font-family:var(--font-serif);
  font-size:19px;
  font-weight:600;
}
.hof-card__text{
  display:block;
  flex:1 1 auto;
  color:var(--hof-muted);
  font-size:12.5px;
  line-height:1.5;
}
.hof-card__cta{
  margin-top:16px;
  color:var(--hof-gold);
  font-size:10.5px;
  font-weight:800;
  letter-spacing:.14em;
  text-transform:uppercase;
}
.hof-card__cta::after{ content:" →"; }

.hof-group[hidden]{ display:none; }
.hof-crumb{
  display:flex;
  align-items:center;
  gap:10px;
  margin:18px 0 12px;
  flex-wrap:wrap;
}
.hof-crumb__home{
  padding:8px 15px;
  border:1px solid var(--hof-line);
  border-radius:6px;
  background:var(--hof-paper);
  color:#6b5b40;
  font:inherit;
  font-size:12.5px;
  font-weight:700;
  cursor:pointer;
  transition:border-color .15s ease, color .15s ease;
}
.hof-crumb__home:hover{
  border-color:#b08d3e;
  color:var(--hof-ink);
}
.hof-crumb__sep{ color:#c9bda4; }
.hof-crumb strong{
  font-family:var(--font-serif);
  font-size:16px;
  color:var(--hof-ink);
}
.hof-tabs{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  margin-bottom:16px;
}
.hof-tab{
  padding:8px 16px;
  border:1px solid var(--hof-line);
  border-radius:6px;
  background:var(--hof-paper);
  color:#6b5b40;
  font:inherit;
  font-size:12.5px;
  font-weight:700;
  cursor:pointer;
  transition:background .15s ease, color .15s ease, border-color .15s ease;
}
.hof-tab:hover:not(.is-active){ border-color:#b08d3e; color:var(--hof-ink); }
.hof-tab.is-active{
  background:var(--hof-ink);
  border-color:var(--hof-ink);
  color:#e8c97a;
}
.hof-pane[hidden]{ display:none; }

.hof-shell .palmares-ranking,
.hof-shell .palmares-competitions{
  border-radius:10px;
  border-color:var(--hof-line);
  background:var(--hof-paper);
  box-shadow:none;
}
.hof-shell .palmares-ranking .section-heading h2,
.hof-shell .palmares-competitions .section-heading h2{
  font-family:var(--font-serif);
  font-weight:600;
  color:var(--hof-ink);
}
.hof-shell .palmares-ranking .eyebrow,
.hof-shell .palmares-competitions .eyebrow{
  color:var(--hof-gold-soft);
}
.hof-shell .palmares-ranking ol{
  max-height:none;
  overflow:visible;
  padding-right:0;
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:0 34px;
}
.hof-shell .palmares-ranking li{
  border-bottom:1px dotted var(--hof-line-soft);
}
.hof-shell .ranking-position{
  color:var(--hof-gold-soft);
}
.hof-shell .ranking-team__copy > strong{
  font-family:var(--font-serif);
  font-size:15.5px;
  font-weight:600;
}
.hof-shell .ranking-titles{
  color:var(--hof-gold);
  font-family:var(--font-serif);
  font-size:13px;
  font-weight:400;
}
.hof-shell .palmares-ranking-mini-logo__img,
.hof-shell .palmares-ranking-mini-logo .competition-fallback{
  border-radius:4px !important;
  border-color:var(--hof-line);
}
.hof-shell .palmares-ranking-mini-more{
  background:var(--hof-paper-2);
  color:var(--hof-muted);
}
.hof-shell .palmares-competition-grid{
  grid-template-columns:repeat(3,minmax(0,1fr));
}
.hof-shell .palmares-competition-card{
  border-radius:8px;
  border-color:var(--hof-line);
  background:linear-gradient(160deg,#fffdf8,var(--hof-paper-2));
}
.hof-shell .palmares-competition-card strong{
  font-family:var(--font-serif);
  font-size:15px;
}
.hof-shell .palmares-competition-card span{
  color:var(--hof-muted);
}
.hof-shell .palmares-mister-panel{ margin-top:0; }
.hof-shell .palmares-mister-row{
  border-bottom:1px dotted var(--hof-line-soft);
}
.hof-shell .palmares-mister-row__body strong{
  font-family:var(--font-serif);
  font-size:15.5px;
  font-weight:600;
}
.hof-shell .palmares-mister-row__titles{
  color:var(--hof-gold);
  font-family:var(--font-serif);
  font-size:13px;
  font-weight:400;
}
.hof-shell .palmares-cabinet{
  margin-top:0;
  border-radius:12px;
}

.hof-players{
  padding:22px;
  border:1px solid var(--hof-line);
  border-radius:10px;
  background:var(--hof-paper);
}
.hof-players .section-heading{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
  flex-wrap:wrap;
}
.hof-players .section-heading h2{
  font-family:var(--font-serif);
  font-weight:600;
  color:var(--hof-ink);
}
.hof-players .eyebrow{ color:var(--hof-gold-soft); }
.hof-players .cabinet-seal{
  border-color:rgba(138,106,34,.35);
  color:var(--hof-gold);
}
.hof-players-grid{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:12px;
  margin-top:16px;
}
.hof-player-card{
  padding:16px;
  border:1px dashed var(--hof-line-soft);
  border-radius:8px;
  background:linear-gradient(160deg,#fffdf8,var(--hof-paper-2));
}
.hof-player-card__label{
  margin:0 0 12px;
  color:var(--hof-gold-soft);
  font-size:10px;
  font-weight:800;
  letter-spacing:.12em;
  text-transform:uppercase;
}
.hof-player-card__body{
  display:flex;
  align-items:center;
  gap:11px;
  min-width:0;
}
.hof-player-card__avatar{
  display:grid;
  place-items:center;
  width:40px;
  height:40px;
  flex:0 0 40px;
  border-radius:50%;
  background:#f0e6d2;
  color:#b09a6a;
  font-family:var(--font-serif);
  font-size:18px;
}
.hof-player-card__name{
  display:block;
  color:var(--hof-muted);
  font-family:var(--font-serif);
  font-size:14px;
  font-weight:600;
}
.hof-player-card__meta{
  display:block;
  margin-top:3px;
  color:#a99a80;
  font-size:11px;
}
.hof-player-card__value{
  margin:14px 0 0;
  padding-top:11px;
  border-top:1px dotted var(--hof-line-soft);
  color:var(--hof-muted);
  font-size:12px;
}
.hof-player-card__value strong{
  color:var(--hof-gold);
  font-family:var(--font-serif);
  font-size:22px;
}
.hof-players-note{
  margin-top:16px;
  padding:14px 16px;
  border-left:3px solid #b08d3e;
  border-radius:0 6px 6px 0;
  background:var(--hof-paper-2);
  color:var(--hof-muted);
  font-size:12.5px;
  line-height:1.6;
}
.hof-players-note strong{ color:var(--hof-ink); }

.hof-shell .hof-card__text{ font-size:13.5px; line-height:1.55; }
.hof-shell .hof-card__cta{ font-size:11px; letter-spacing:.16em; }
.hof-shell .hof-card__count{ font-size:16px; }
.hof-shell .hof-crumb__home,
.hof-shell .hof-tab{ font-size:13.5px; font-weight:600; }
.hof-shell .hof-tab.is-active{ font-weight:700; }
.hof-shell .eyebrow{ font-size:11px; letter-spacing:.18em; }
.hof-shell .palmares-competition-card span{ font-size:12.5px; }
.hof-shell .palmares-hero-kpis span{ font-size:10.5px; letter-spacing:.1em; }
.hof-shell .palmares-season-label span{ font-size:11px; letter-spacing:.12em; }
.hof-shell .palmares-winner-kicker{ font-size:10px; letter-spacing:.14em; }
.hof-shell .palmares-winner-competition{ font-size:11.5px; }
.hof-shell .palmares-winner-mister{ font-size:11.5px; }
.hof-shell .cabinet-seal{ font-size:11.5px; }
.hof-shell .hof-player-card__label{ font-size:10.5px; letter-spacing:.14em; font-weight:700; }
.hof-shell .hof-player-card__meta{ font-size:11.5px; }
.hof-shell .hof-player-card__value{ font-size:12.5px; }
.hof-shell .hof-players-note{ font-size:13.5px; }
.hof-shell .palmares-ranking-mini-more{ font-size:11px; }

@media (min-width:860px){
  .hof-card{
    min-height:236px;
    padding:32px 30px 26px;
  }
  .hof-card__ico{
    width:66px;
    height:66px;
    margin-bottom:20px;
    border-radius:10px;
  }
  .hof-card__ico svg{ width:33px; height:33px; stroke-width:1.6; }
  .hof-card > strong{ font-size:28px; margin-bottom:8px; }
  .hof-shell .hof-card__text{ font-size:15.5px; line-height:1.5; }
  .hof-shell .hof-card__cta{ font-size:12px; margin-top:20px; }
}
@media (min-width:1280px){
  .hof-card{ min-height:252px; }
  .hof-card > strong{ font-size:31px; }
  .hof-shell .hof-card__text{ font-size:16.5px; }
}

@media (max-width:859px){
  .hof-landing{ grid-template-columns:repeat(2,minmax(0,1fr)); }
  .hof-landing .hof-card:nth-child(n){ grid-column:auto; }
}
@media (max-width:1279px){
  .hof-players-grid{ grid-template-columns:repeat(2,minmax(0,1fr)); }
  .hof-shell .palmares-competition-grid{ grid-template-columns:repeat(2,minmax(0,1fr)); }
}
@media (max-width:860px){
  .hof-shell .palmares-ranking ol{ grid-template-columns:1fr; }
  .hof-shell .hof-hero.is-compact{ padding:20px; }
}
@media (max-width:599px){
  .hof-landing{ grid-template-columns:1fr; gap:10px; }
  .hof-card{ padding:20px 18px 18px; }
  .hof-players-grid{ grid-template-columns:1fr; }
  .hof-shell .palmares-competition-grid{ grid-template-columns:1fr; }
  .hof-tabs{ gap:6px; }
  .hof-tab{ padding:7px 12px; font-size:12px; }
}

.competition-history--narrow,
.competition-history--narrow *{
  font-family:var(--font-serif);
}
.competition-history--narrow .competition-history-hero{
  border-radius:10px;
  background:
    radial-gradient(circle at 88% 10%, rgba(255,213,89,.20), transparent 40%),
    linear-gradient(135deg,#17130e, color-mix(in srgb, var(--history-primary,#c69a2c) 26%, #3a2c12));
  color:#f6efe2;
}
.competition-history--narrow .competition-history-hero .eyebrow,
.competition-history--narrow .competition-history-hero .eyebrow.light{
  color:#e8c97a;
  font-size:11px;
  letter-spacing:.18em;
}
.competition-history--narrow .competition-history-hero p{
  color:#ded2b8;
  font-size:13px;
}
.competition-history--narrow .competition-history-logo,
.competition-history--narrow .competition-history-hero .competition-fallback{
  border-radius:10px;
  background:#fbf7ef;
}
.competition-history--narrow .competition-history-season{
  border-radius:8px;
  border-color:#e3d9c6;
  border-left:4px solid #b08d3e;
  background:linear-gradient(160deg,#fffdf8,#f5eddf);
}
.competition-history--narrow .competition-history-season small,
.competition-history--narrow .history-champion-mister small{
  color:#a58a4a;
  font-size:10px;
  font-weight:700;
  letter-spacing:.14em;
}
.competition-history--narrow .competition-history-season strong{
  color:#2a2118;
}
.competition-history--narrow .competition-history-season > div:first-child strong{
  font-size:19px;
  color:#8a6a22;
}
.competition-history--narrow .history-champion strong{
  font-size:16px;
}

.fmto-modal--wide{
  max-width:min(920px, 94vw);
}
.tr-detail-op__head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  margin-bottom:12px;
  padding-bottom:10px;
  border-bottom:1px solid #22344f;
}
.tr-detail-op__id{
  color:#ffd66b;
  font-size:15px;
  font-weight:800;
  letter-spacing:.04em;
}
.tr-detail-op__count{
  color:#93a4bd;
  font-size:11px;
  text-transform:uppercase;
  letter-spacing:.1em;
}
.tr-detail-row{
  padding:6px;
  border:1px solid transparent;
  border-radius:12px;
}
.tr-detail-row + .tr-detail-row{
  margin-top:8px;
}
.tr-detail-row.is-current{
  border-color:rgba(255,214,107,.45);
  background:rgba(255,214,107,.07);
}
.tr-detail-loading{
  margin:14px 0 0;
  color:#93a4bd;
  font-size:12px;
}
.fmto-modal-body .transfer-movement{
  min-width:0;
}

.fmto-modal-body .transfer-movement .transfer-col__copy strong,
.fmto-modal-body .transfer-movement .transfer-player-copy strong,
.fmto-modal-body .transfer-movement .transfer-value strong,
.fmto-modal-body .transfer-movement .transfer-player strong{
  color:#f8fbff;
}
.fmto-modal-body .transfer-movement .transfer-col__copy small,
.fmto-modal-body .transfer-movement .transfer-player-copy small,
.fmto-modal-body .transfer-movement .transfer-value small{
  color:#9db2cd;
}
.fmto-modal-body .transfer-movement .transfer-note{
  color:#cfe0f5;
  background:rgba(255,255,255,.05);
  border-color:#22344f;
}
.fmto-modal-body .transfer-movement .transfer-clause-row span{
  background:rgba(255,255,255,.08);
  border-color:#2c4364;
  color:#dbe8f8;
}

.hof-trophy-wall{
  display:flex;
  flex-wrap:wrap;
  gap:8px 10px;
}
.hof-trophy-group{
  display:inline-flex;
  align-items:center;
  gap:2px;
  padding:4px 7px;
  border:1px solid rgba(176,141,62,.28);
  border-radius:8px;
  background:rgba(176,141,62,.09);
}
.hof-trophy{
  display:grid;
  place-items:center;
  width:22px;
  height:22px;
  flex:0 0 22px;
}
.hof-trophy__img,
.hof-trophy .competition-fallback{
  width:22px !important;
  height:22px !important;
  min-width:22px !important;
  padding:1px !important;
  object-fit:contain !important;
  border-radius:0 !important;
  background:transparent !important;
  border:0 !important;
  font-size:8px !important;
}

.hof-podium--clubs{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:14px;
  margin:6px 0 24px;
}
.hof-podium-card{
  position:relative;
  display:flex;
  flex-direction:column;
  justify-content:center;
  overflow:hidden;
  padding:26px 20px 20px;
  border:1px solid var(--hof-line,#e3d9c6);
  border-radius:12px;
  background:linear-gradient(180deg,#fffdf8,#f4ead7);
  box-shadow:0 12px 26px rgba(70,55,20,.10);
  text-align:center;
}
.hof-podium-card::before{
  content:"";
  position:absolute;
  inset:0 0 auto 0;
  height:4px;
  background:#b08d3e;
}
.hof-podium-card--rank1{ border-color:#c9a227; box-shadow:0 18px 34px rgba(150,110,20,.18); }
.hof-podium-card--rank1::before{ background:linear-gradient(90deg,#e8c97a,#c9a227,#e8c97a); }
.hof-podium-card--rank2::before{ background:linear-gradient(90deg,#d6dade,#a9adb4,#d6dade); }
.hof-podium-card--rank3::before{ background:linear-gradient(90deg,#e0b78f,#b47a48,#e0b78f); }
.hof-podium-rank{
  position:absolute;
  top:14px;
  left:16px;
  color:#a58a4a;
  font-size:24px;
  line-height:1;
}
.hof-podium-card--rank1 .hof-podium-rank{ color:#c9a227; font-size:30px; }
.hof-podium-crest{
  display:grid;
  place-items:center;
  margin:6px 0 12px;
}
.hof-podium-crest .team-logo,
.hof-podium-crest .logo-fallback{
  width:76px !important;
  height:76px !important;
}
.hof-podium-card--rank1 .hof-podium-crest .team-logo,
.hof-podium-card--rank1 .hof-podium-crest .logo-fallback{
  width:92px !important;
  height:92px !important;
}
.hof-podium-name{
  margin:0 0 4px;
  color:#2a2118;
  font-size:22px;
  font-weight:600;
  line-height:1.2;
}
.hof-podium-card--rank1 .hof-podium-name{ font-size:26px; }
.hof-podium-titles{
  margin:0;
  color:#7a6c55;
  font-size:12.5px;
}
.hof-podium-titles strong{
  display:block;
  color:#8a6a22;
  font-size:30px;
  line-height:1.1;
}
.hof-podium-card .hof-trophy-wall{
  justify-content:center;
  margin-top:16px;
  padding-top:14px;
  border-top:1px dotted var(--hof-line-soft,#d8cbb2);
}

.hof-podium--players{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:14px;
  margin:6px 0 24px;
}
.hof-podium-photo{
  display:grid;
  place-items:center;
  margin:6px 0 12px;
}
.hof-podium-photo__img{
  display:block;
  width:76px;
  height:76px;
  border-radius:50%;
  overflow:hidden;
  border:2px solid #d8cbb2;
  background:#f4ead7;
}
.hof-podium-photo__img img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
}
.hof-podium-photo__img--empty{
  background:linear-gradient(180deg,#f4ead7,#e8dcc2);
}
.hof-podium-card--rank1 .hof-podium-photo__img{
  width:92px;
  height:92px;
  border-color:#c9a227;
}
.hof-podium-player__teams{
  margin:0 0 4px;
  color:#7a6c55;
  font-size:12px;
}
.hof-podium-card.is-shared .hof-podium-photo__img{ width:64px; height:64px; }
.hof-player-avatar{
  display:inline-block;
  width:32px;
  height:32px;
  border-radius:50%;
  overflow:hidden;
  flex:0 0 auto;
  border:1px solid #d8cbb2;
  background:#f4ead7;
}
.hof-player-avatar img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
}
.hof-player-avatar--empty{
  background:linear-gradient(180deg,#f4ead7,#e8dcc2);
}
.hof-player-row__teams{
  display:block;
  color:#7a6c55;
  font-size:12px;
}
@media (max-width:599px){
  .hof-podium--players{ grid-template-columns:1fr; }
}

.hof-podium--misters{
  display:grid;
  gap:10px;
  margin:6px 0 24px;
}
.hof-mister-plaque{
  display:grid;
  grid-template-columns:66px minmax(0,1fr);
  gap:18px;
  align-items:center;
  padding:14px 20px;
  border:1px solid var(--hof-line,#e3d9c6);
  border-left:4px solid #b08d3e;
  border-radius:10px;
  background:linear-gradient(100deg,#fffdf8 40%,#f5eddf);
}
.hof-mister-plaque--rank1{
  border-left-color:#c9a227;
  background:linear-gradient(100deg,#fffdf6 35%,#f6e7c4);
  box-shadow:0 12px 26px rgba(150,110,20,.12);
}
.hof-mister-plaque--rank2{ border-left-color:#a9adb4; }
.hof-mister-plaque--rank3{ border-left-color:#b47a48; }

.hof-medal{
  position:relative;
  display:block;
  width:62px;
  height:78px;
}
.hof-medal__ribbon{
  position:absolute;
  top:0;
  left:50%;
  transform:translateX(-50%);
  width:42px;
  height:34px;
}
.hof-medal__ribbon::before,
.hof-medal__ribbon::after{
  content:"";
  position:absolute;
  top:0;
  width:17px;
  height:34px;
  background:linear-gradient(180deg,#9c2129,#6d141a);
  box-shadow:inset -2px 0 3px rgba(0,0,0,.25);
  clip-path:polygon(0 0,100% 0,100% 100%,50% 78%,0 100%);
}
.hof-medal__ribbon::before{ left:0; transform:skewX(9deg); }
.hof-medal__ribbon::after{ right:0; transform:skewX(-9deg); background:linear-gradient(180deg,#b52a33,#7d181f); }
.hof-medal__disc{
  position:absolute;
  bottom:0;
  left:50%;
  transform:translateX(-50%);
  display:grid;
  place-items:center;
  width:54px;
  height:54px;
  border-radius:50%;
  background:
    radial-gradient(circle at 32% 26%,#fdf3d2 0%,#f0d68f 20%,#d3ab3c 52%,#9a7522 82%,#6d5115 100%);
  box-shadow:
    inset 0 0 0 3px rgba(255,255,255,.38),
    inset 0 0 0 4px rgba(120,88,18,.35),
    inset 0 -5px 9px rgba(90,65,10,.4),
    inset 0 4px 7px rgba(255,255,255,.35),
    0 7px 14px rgba(70,55,20,.32);
  color:#5b4410;
  font-size:19px;
  line-height:1;
  text-shadow:0 1px 0 rgba(255,255,255,.55);
}
.hof-medal--rank2 .hof-medal__disc{
  background:radial-gradient(circle at 32% 26%,#ffffff 0%,#eef0f3 20%,#c3c9d0 52%,#949aa2 82%,#6f757d 100%);
  color:#4a4f55;
}
.hof-medal--rank3 .hof-medal__disc{
  background:radial-gradient(circle at 32% 26%,#fdeadb 0%,#eec2a0 20%,#cd8f60 52%,#9c6336 82%,#6f4423 100%);
  color:#5a3418;
}
.hof-medal--rank2 .hof-medal__ribbon::before{ background:linear-gradient(180deg,#3f5a80,#25384f); }
.hof-medal--rank2 .hof-medal__ribbon::after{ background:linear-gradient(180deg,#4d6b93,#2c4159); }
.hof-medal--rank3 .hof-medal__ribbon::before{ background:linear-gradient(180deg,#4d6b4a,#2c3f2b); }
.hof-medal--rank3 .hof-medal__ribbon::after{ background:linear-gradient(180deg,#5c7d58,#334a32); }

.hof-mister-plaque__people{ min-width:0; }
.hof-mister-person{
  display:grid;
  grid-template-columns:minmax(150px,1fr) minmax(0,1.5fr) auto;
  gap:18px;
  align-items:center;
  min-width:0;
}
.hof-mister-person + .hof-mister-person{
  margin-top:12px;
  padding-top:12px;
  border-top:1px dotted var(--hof-line-soft,#d8cbb2);
}
.hof-mister-person__id h3{
  margin:0 0 6px;
  color:#2a2118;
  font-size:21px;
  font-weight:600;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}
.hof-mister-plaque--rank1 .hof-mister-person__id h3{ font-size:24px; }
.hof-mister-person__titles{
  text-align:right;
  min-width:74px;
}
.hof-mister-person__titles strong{
  display:block;
  color:#8a6a22;
  font-size:28px;
  line-height:1;
}
.hof-mister-person__titles small{
  color:#a58a4a;
  font-size:10px;
  font-weight:700;
  letter-spacing:.14em;
  text-transform:uppercase;
}

.hof-rest-heading{
  margin:0 0 10px;
  padding-top:4px;
  color:#a58a4a;
  font-size:11px;
  font-weight:700;
  letter-spacing:.18em;
  text-transform:uppercase;
}

@media (max-width:1100px){
  .hof-mister-person{
    grid-template-columns:minmax(0,1fr) auto;
    row-gap:10px;
  }
  .hof-mister-person__trophies{ grid-column:1 / -1; }
}
@media (max-width:860px){
  .hof-podium--clubs{ grid-template-columns:1fr; }
  .hof-podium-card{ padding:22px 18px 18px; }
  .hof-mister-plaque{
    grid-template-columns:52px minmax(0,1fr);
    gap:12px 14px;
    padding:14px 16px;
  }
  .hof-medal{ width:52px; height:66px; }
  .hof-medal__ribbon{ width:36px; height:28px; }
  .hof-medal__ribbon::before,
  .hof-medal__ribbon::after{ width:15px; height:28px; }
  .hof-medal__disc{ width:46px; height:46px; font-size:16px; }
  .hof-mister-person__titles{ text-align:left; }
  .hof-mister-person__titles strong{ display:inline; font-size:22px; margin-right:6px; }
}

.hof-shell .palmares-cabinet .hof-season{
  display:block;
  grid-template-columns:none;
  padding:4px 0 34px;
}
.hof-shell .palmares-cabinet .hof-season::after{
  right:-6px;
  left:-6px;
  bottom:14px;
}
.hof-shell .palmares-cabinet .hof-season.is-collapsed::after{
  bottom:6px;
}
.hof-shell .palmares-cabinet .hof-season.is-collapsed{
  padding-bottom:24px;
}

.hof-shell .palmares-cabinet .hof-season-band{
  position:static;
  display:flex;
  align-items:center;
  gap:16px;
  width:100%;
  margin-bottom:14px;
  padding:11px 18px;
  border:0;
  border-left:3px solid #e5b34b;
  border-radius:0 8px 8px 0;
  background:rgba(255,255,255,.05);
  box-shadow:none;
}
.hof-shell .hof-season-band__id{
  display:flex;
  align-items:baseline;
  gap:14px;
}
.hof-shell .hof-season-band__id span{
  color:#d1b97f;
  font-size:10.5px;
  letter-spacing:.18em;
  text-transform:uppercase;
}
.hof-shell .hof-season-band__id strong{
  margin:0;
  color:#fff5d8;
  font-size:28px;
  line-height:1;
}
.hof-shell .hof-season-band__count{
  margin-left:auto;
  color:#c9ae74;
  font-size:12.5px;
}
.hof-shell .hof-season-band .palmares-season-label__chevron{
  color:#e5b34b;
}

.hof-shell .hof-winners{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:12px;
}

.hof-shell .hof-winners{
  display:block;
}
.hof-shell .hof-winner-row{
  display:flex;
  flex-wrap:wrap;
  justify-content:center;
  gap:12px;
}
.hof-shell .hof-winner-row + .hof-winner-row{
  margin-top:12px;
}

.hof-wcard{
  position:relative;
  display:flex;
  flex-direction:column;
  width:268px;
  max-width:100%;
  border:1px solid rgba(229,179,75,.6);
  border-radius:14px;
  background:linear-gradient(180deg,#fffdf6,#f0dfae);
  box-shadow:0 12px 24px rgba(0,0,0,.3), inset 0 1px #fff;
  text-align:center;
  overflow:hidden;
}
.hof-wcard__top,
.hof-wcard__mister{
  padding:10px 14px;
  background:#2a2118;
  color:#f3e6c6;
  font-size:13px;
  line-height:1.25;
}
.hof-wcard__top{
  border-bottom:2px solid var(--competition-primary,#b08d3e);
  text-transform:uppercase;
  letter-spacing:.04em;
}
.hof-wcard__logos{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:14px;
  margin:18px 0 12px;
}
.hof-wcard__comp-logo,
.hof-wcard__comp-logo-wrap .competition-fallback{
  width:40px !important;
  height:40px !important;
  min-width:40px !important;
  padding:2px !important;
  object-fit:contain !important;
  border-radius:8px !important;
  background:transparent !important;
  font-size:9px !important;
}
.hof-wcard__crest .team-logo,
.hof-wcard__crest .logo-fallback{
  width:70px !important;
  height:70px !important;
  filter:drop-shadow(0 8px 14px rgba(60,40,10,.28));
}
.hof-wcard__team{
  display:block;
  padding:0 12px 16px;
  color:#2d2112;
  font-size:20px;
  font-weight:600;
  line-height:1.2;
}
.hof-wcard__mister{
  margin-top:auto;
}
.hof-wcard__mister small{
  margin-right:7px;
  color:#b09a6a;
  font-size:9px;
  font-weight:800;
  letter-spacing:.14em;
  text-transform:uppercase;
}

@media (max-width:860px){
  .hof-shell .hof-season-band__id strong{ font-size:23px; }
  .hof-wcard{ width:236px; }
}
@media (max-width:599px){
  .hof-shell .palmares-cabinet .hof-season-band{ padding:10px 14px; gap:10px; }
  .hof-shell .hof-season-band__id{ flex-direction:column; gap:2px; }
  .hof-wcard{ width:100%; }
}

.hof-shell,
.hof-shell *,
.competition-history--narrow,
.competition-history--narrow *{
  font-variant-numeric:lining-nums;
  font-feature-settings:"lnum" 1;
}

.hof-podium-card.is-shared{
  display:flex;
  flex-direction:column;
  gap:14px;
}
.hof-podium-card.is-shared .hof-podium-club + .hof-podium-club{
  padding-top:14px;
  border-top:1px dotted var(--hof-line-soft,#d8cbb2);
}
.hof-podium-card.is-shared .hof-podium-crest .team-logo,
.hof-podium-card.is-shared .hof-podium-crest .logo-fallback{
  width:58px !important;
  height:58px !important;
}
.hof-podium-card.is-shared .hof-podium-name{ font-size:19px; }
.hof-podium-card.is-shared .hof-podium-titles strong{ font-size:24px; }
.hof-podium-card.is-shared .hof-trophy-wall{ margin-top:12px; padding-top:10px; }

.hof-trophy-wall--mini{
  gap:3px 6px;
  margin-top:5px;
}
.hof-trophy-wall--mini .hof-trophy-group{
  gap:2px;
  padding:0;
  border:0;
  background:transparent;
}
.hof-trophy-wall--mini .hof-trophy{
  width:18px;
  height:18px;
  flex:0 0 18px;
}
.hof-trophy-wall--mini .hof-trophy__img,
.hof-trophy-wall--mini .hof-trophy .competition-fallback{
  width:18px !important;
  height:18px !important;
  min-width:18px !important;
  font-size:7px !important;
}

@media (max-width:599px){
  .hof-shell .hof-winner-row{
    display:block;
  }
  .hof-shell .hof-winner-row + .hof-winner-row{
    margin-top:0;
  }
  .hof-shell .hof-winner-row + .hof-winner-row .hof-wcard:first-child{
    border-top:1px solid rgba(229,179,75,.22);
  }
  .hof-shell .hof-wcard{
    display:grid;
    grid-template-columns:26px minmax(0,1fr) auto;
    grid-template-areas:
      "clogo cname  cname"
      "crest team   mister";
    align-items:center;
    gap:4px 10px;
    width:100%;
    padding:10px 4px;
    border:0;
    border-bottom:1px dotted rgba(229,179,75,.28);
    border-radius:0;
    background:transparent;
    box-shadow:none;
    text-align:left;
  }
  .hof-shell .hof-wcard__top{
    grid-area:cname;
    padding:0;
    border:0;
    background:transparent;
    color:#c9ae74;
    font-size:11px;
    letter-spacing:.12em;
  }
  .hof-shell .hof-wcard__logos{
    display:contents;
  }
  .hof-shell .hof-wcard__comp-logo-wrap{
    grid-area:clogo;
    display:grid;
    place-items:center;
  }
  .hof-shell .hof-wcard__comp-logo,
  .hof-shell .hof-wcard__comp-logo-wrap .competition-fallback{
    width:22px !important;
    height:22px !important;
    min-width:22px !important;
    border-radius:5px !important;
    background:#fbf7ef !important;
    padding:1px !important;
  }
  .hof-shell .hof-wcard__crest{
    grid-area:crest;
    display:grid;
    place-items:center;
  }
  .hof-shell .hof-wcard__crest .team-logo,
  .hof-shell .hof-wcard__crest .logo-fallback{
    width:26px !important;
    height:26px !important;
    filter:none;
  }
  .hof-shell .hof-wcard__team{
    grid-area:team;
    padding:0;
    color:#fff7e4;
    font-size:15.5px;
    line-height:1.2;
    overflow:hidden;
    text-overflow:ellipsis;
    white-space:nowrap;
  }
  .hof-shell .hof-wcard__mister{
    grid-area:mister;
    margin:0;
    padding:0;
    background:transparent;
    color:#e8c97a;
    font-size:12.5px;
    text-align:right;
  }
  .hof-shell .hof-wcard__mister small{
    display:none;
  }
  
  .hof-shell .palmares-cabinet .hof-season{
    padding-bottom:30px;
  }
}

@media (max-width:599px){
  
  .hof-shell .hof-hero{
    padding:20px 16px;
  }
  .hof-shell .hof-hero .palmares-hero-kpis{
    width:100%;
    display:grid;
    grid-template-columns:repeat(4,minmax(0,1fr)) !important;
    gap:6px;
  }
  .hof-shell .hof-hero .palmares-hero-kpis span{
    min-width:0 !important;
    padding:8px 4px !important;
    border-radius:8px;
    font-size:8px !important;
    letter-spacing:.06em;
    text-align:center;
    overflow-wrap:anywhere;
    hyphens:auto;
    line-height:1.2;
  }
  .hof-shell .hof-hero .palmares-hero-kpis strong{
    margin-bottom:2px;
    font-size:19px !important;
  }

  .hof-tabs{
    display:grid;
    grid-template-columns:repeat(6,minmax(0,1fr));
    gap:6px;
  }
  .hof-tab{
    padding:8px 2px;
    text-align:center;
    font-size:12px;
    overflow:hidden;
    text-overflow:ellipsis;
    white-space:nowrap;
  }
  .hof-tab:nth-child(1),
  .hof-tab:nth-child(2){ grid-column:span 3; }
  .hof-tab:nth-child(3),
  .hof-tab:nth-child(4),
  .hof-tab:nth-child(5){ grid-column:span 2; }

  .competition-history--narrow .competition-history-hero{
    padding:16px;
    gap:12px;
  }
  .competition-history--narrow .competition-history-logo,
  .competition-history--narrow .competition-history-hero .competition-fallback{
    width:52px !important;
    height:52px !important;
  }
  .competition-history--narrow .competition-history-hero h2{ font-size:23px; }
  .competition-history--narrow .competition-history-list{
    gap:0;
    margin-top:12px;
  }
  .competition-history--narrow .competition-history-season{
    display:grid !important;
    grid-template-columns:58px minmax(0,1fr) auto !important;
    gap:0 10px !important;
    align-items:center;
    padding:9px 6px !important;
    border:0;
    border-bottom:1px dotted var(--hof-line-soft,#d8cbb2);
    border-radius:0;
    background:transparent;
  }
  .competition-history--narrow .competition-history-season small{
    display:none !important;
  }
  .competition-history--narrow .competition-history-season > div:first-child strong{
    font-size:15px;
    color:#8a6a22;
  }
  .competition-history--narrow .history-champion{
    gap:8px;
    min-width:0;
  }
  .competition-history--narrow .history-champion .team-logo,
  .competition-history--narrow .history-champion .logo-fallback{
    width:24px !important;
    height:24px !important;
  }
  .competition-history--narrow .history-champion strong{
    font-size:15px;
    overflow:hidden;
    text-overflow:ellipsis;
    white-space:nowrap;
  }
  .competition-history--narrow .history-champion-mister{
    grid-column:auto !important;
    padding:0 !important;
    text-align:right !important;
  }
  .competition-history--narrow .history-champion-mister strong{
    color:#8a6a22;
    font-size:12.5px;
    font-weight:600;
  }
}

@media (max-width:599px){
  .competition-history--narrow .competition-history-season{
    align-items:center;
  }
  .competition-history--narrow .history-champion strong{
    display:block;
    white-space:normal !important;
    overflow:visible !important;
    text-overflow:clip !important;
    overflow-wrap:anywhere;
    line-height:1.18;
  }
  .competition-history--narrow .history-champion-mister strong{
    white-space:normal;
    overflow-wrap:anywhere;
    line-height:1.18;
  }
}

@media (max-width:599px){
  .competition-history--narrow .history-champion .team-logo,
  .competition-history--narrow .history-champion .logo-fallback{
    width:34px !important;
    height:34px !important;
    flex:0 0 34px;
  }
  .competition-history--narrow .competition-history-season{
    padding:8px 6px !important;
  }
}

.finance-mobile-details--wages{
  background:linear-gradient(90deg,rgba(15,118,110,.055),transparent 58%) !important;
}
.finance-mobile-details--wages::before{ background:#0f766e !important; }
.finance-mobile-details--credits{
  background:linear-gradient(90deg,rgba(168,121,10,.06),transparent 58%) !important;
}
.finance-mobile-details--credits::before{ background:#a8790a !important; }

@media (max-width:599px){
  .finance-toolbar .finance-flag,
  .finance-toolbar .finance-collapse-toggle{
    display:none !important;
  }
  .finance-mobile-cards{
    margin-top:0;
  }
}

.hof-shell .hof-hero.is-compact{
  display:none !important;
}
.hof-shell[data-hof-group]:not([data-hof-group=""]) .hof-crumb{
  margin-top:0;
}

#calendarViewToggle{ display:none !important; }

.cal-table--mercato{
  table-layout:fixed;
  width:100%;
  font-size:12.5px;
}
.cal-table--mercato thead th{
  padding:10px 10px;
}
.cal-table--mercato tbody td{
  padding:8px 10px;
  white-space:normal;
  overflow-wrap:anywhere;
}
.cal-table--mercato th:nth-child(1),
.cal-table--mercato td:nth-child(1){ width:62px; }
.cal-table--mercato th:nth-child(2),
.cal-table--mercato td:nth-child(2){ width:88px; }
.cal-table--mercato th:nth-child(3),
.cal-table--mercato td:nth-child(3),
.cal-table--mercato th:nth-child(4),
.cal-table--mercato td:nth-child(4),
.cal-table--mercato th:nth-child(5),
.cal-table--mercato td:nth-child(5),
.cal-table--mercato th:nth-child(6),
.cal-table--mercato td:nth-child(6){ width:11%; }
.cal-table--mercato th:nth-child(7),
.cal-table--mercato td:nth-child(7){ width:auto; }

.cal-mercato{
  display:inline-block;
  padding:3px 8px;
  border-radius:999px;
  border:1px solid transparent;
  font-size:11.5px;
  font-weight:700;
  line-height:1.35;
}
.cal-mercato.calendar-badge--success{ background:#e7f7ef; border-color:#bde7d3; color:#0f7047; }
.cal-mercato.calendar-badge--danger{ background:#fdecec; border-color:#f6cccc; color:#b42335; }
.cal-mercato.calendar-badge--muted{ background:#f1f5f9; border-color:#e2e8f0; color:#64748b; }
.cal-mercato.calendar-badge--info{ background:#eaf1ff; border-color:#cfe0ff; color:#1d4ed8; }

.disc-rules-panel > summary{
  display:flex;
  align-items:baseline;
  gap:10px;
  flex-wrap:wrap;
  cursor:pointer;
  list-style:none;
  font-size:22px;
  font-weight:800;
  letter-spacing:-.02em;
}
.disc-rules-panel > summary::-webkit-details-marker{ display:none; }
.disc-rules-panel__kicker{
  width:100%;
  color:#718198;
  font-size:11px;
  font-weight:750;
  letter-spacing:.12em;
  text-transform:uppercase;
}
.disc-rules-panel__chevron{
  margin-left:auto;
  color:var(--muted);
  font-size:15px;
  transition:transform .18s ease;
}
.disc-rules-panel[open] > summary .disc-rules-panel__chevron{ transform:rotate(180deg); }
.disc-rules-panel__body{ margin-top:14px; }

.disc-mobile-list{ display:none; }

@media (max-width:599px){
  .disc-scroll{ display:none !important; }
  .disc-mobile-list{
    display:block;
    border:1px solid var(--line);
    border-radius:14px;
    background:var(--surface);
    overflow:hidden;
  }
  .disc-m-row{
    padding:10px 12px;
    border-bottom:1px solid #eef2f7;
  }
  .disc-m-row:last-child{ border-bottom:0; }
  .disc-m-top{
    display:flex;
    align-items:center;
    gap:8px;
    min-width:0;
  }
  .disc-m-top strong{
    flex:1;
    min-width:0;
    font-size:13.5px;
    overflow:hidden;
    text-overflow:ellipsis;
    white-space:nowrap;
  }
  .disc-m-top .transfer-team-logo,
  .disc-m-top .transfer-team-fallback,
  .disc-m-top img{
    width:24px !important;
    height:24px !important;
    min-width:24px !important;
    flex:0 0 24px;
  }
  .disc-m-reason{
    margin-top:4px;
    font-size:13px;
    font-weight:700;
    line-height:1.3;
  }
  .disc-m-meta{
    margin-top:3px;
    color:var(--muted);
    font-size:11px;
    line-height:1.45;
  }
  .disc-rules-panel > summary{
    font-size:17px;
  }
  .disc-rules-panel{
    margin-top:14px;
    padding:12px 14px;
    border:1px solid var(--line);
    border-radius:14px;
    background:var(--surface);
  }
  .disc-rules-panel__body{ margin-top:10px; }

}

.stats-season-toggle{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  margin-right: 10px;
  border: 1px solid #d3dcea;
  border-radius: 50%;
  background: var(--surface);
  color: #5b6b85;
  cursor: pointer;
  padding: 0;
  vertical-align: middle;
  flex-shrink: 0;
  transition: background .15s ease, color .15s ease, border-color .15s ease;
}

.stats-season-toggle-icon{
  display: inline-block;
  transition: transform 0.15s ease;
  font-size: 10px;
  line-height: 1;
}

.stats-season-toggle[aria-expanded="true"]{
  background: #3984ff;
  border-color: #3984ff;
  color: #ffffff;
}

.stats-season-toggle[aria-expanded="true"] .stats-season-toggle-icon{
  transform: rotate(90deg);
}

.stats-season-toggle:hover,
.stats-season-toggle:focus-visible{
  border-color: #3984ff;
  color: #3984ff;
  outline: none;
}

.stats-season-toggle[aria-expanded="true"]:hover{
  color: #ffffff;
}

.stats-competition-detail td{
  padding: 0 14px 10px 14px;
  background: #f8fafd;
}

.stats-competition-chips{
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 8px 0 2px 32px;
  border-top: 1px dashed #d3dcea;
}

.stats-competition-chip{
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: #e7ecf5;
  border: 1px solid #d3dcea;
  border-radius: 10px;
  padding: 5px 10px;
  font-size: 11px;
  white-space: nowrap;
}

.stats-competition-chip__logo{
  width: 18px;
  height: 18px;
  object-fit: contain;
  flex-shrink: 0;
}

.stats-competition-chip__name{
  font-weight: 700;
  font-size: 11px;
  color: #0f1a2b;
}

.stats-competition-chip__nums{
  color: #5b6b85;
  font-variant-numeric: tabular-nums;
}

.stats-competition-chip__nums b{
  color: #3984ff;
  font-weight: 800;
}

@media (max-width: 720px){
  .stats-competition-chips{
    padding-left: 12px;
  }
}

.hof-ranking-link{
  flex-shrink: 0;
  border: 1px solid #d8cbb2;
  background: #f5eddf;
  color: #8a6a22;
  font: inherit;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .05em;
  padding: 7px 12px;
  border-radius: 999px;
  cursor: pointer;
  transition: background .15s ease, color .15s ease, border-color .15s ease;
}

.hof-ranking-link:hover,
.hof-ranking-link:focus-visible{
  background: #2a2118;
  border-color: #2a2118;
  color: #e8c97a;
  outline: none;
}

.hof-ranking-more{
  display: block;
  width: 100%;
  margin-top: 10px;
  padding: 9px 12px;
  border: 1px dashed #d8cbb2;
  border-radius: 10px;
  background: transparent;
  color: #8a6a22;
  font: inherit;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  text-align: center;
  transition: background .15s ease, color .15s ease, border-color .15s ease;
}

.hof-ranking-more:hover,
.hof-ranking-more:focus-visible{
  background: #f5eddf;
  border-style: solid;
  outline: none;
}

.hof-ranking-count{
  flex-shrink: 0;
  color: #7a6c55;
  font-size: 12px;
  font-weight: 600;
}

.hof-ranking-full{
  padding: 18px 20px;
}

.hof-rest-list--full{
  column-count: 1;
}

@media (min-width: 861px){
  .hof-rest-list--full{
    column-count: 2;
    column-gap: 34px;
  }
  .hof-rest-list--full li{
    break-inside: avoid;
  }
}

@media (max-width: 720px){
  .hof-ranking-link{
    padding: 6px 10px;
    font-size: 10px;
  }
}
\n

.overview-search{
  position: relative;
  margin-bottom: 18px;
  z-index: 60;
}

.overview-search__box{
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--surface);
  border: 1px solid #d3dcea;
  border-radius: 999px;
  padding: 4px 8px 4px 18px;
  box-shadow: 0 8px 24px rgba(15, 26, 43, 0.06);
  transition: box-shadow .15s ease, border-color .15s ease;
}

.overview-search__box:focus-within{
  border-color: #3984ff;
  box-shadow: 0 10px 30px rgba(57, 132, 255, 0.16);
}

.overview-search__icon{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  color: #5b6b85;
  flex-shrink: 0;
  border: 0;
  background: transparent;
  border-radius: 50%;
  cursor: pointer;
  padding: 6px;
  transition: background .15s ease, color .15s ease;
}

.overview-search__icon:hover,
.overview-search__icon:focus-visible{
  background: #e7ecf5;
  color: #3984ff;
  outline: none;
}

.overview-search__icon svg{
  width: 100%;
  height: 100%;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
}

.overview-search__input{
  flex: 1;
  border: 0;
  background: transparent;
  font: inherit;
  font-size: 15px;
  color: #0f1a2b;
  padding: 12px 10px 12px 0;
  outline: none;
  min-width: 0;
}

.overview-search__input::placeholder{
  color: #8a97ad;
}

.overview-search__results{
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  background: var(--surface);
  border: 1px solid #d3dcea;
  border-radius: 18px;
  box-shadow: 0 18px 44px rgba(15, 26, 43, 0.14);
  padding: 8px;
  max-height: 62vh;
  overflow-y: auto;
}

.overview-search__group{
  padding: 4px 0;
}

.overview-search__group + .overview-search__group{
  border-top: 1px solid #e7ecf5;
}

.overview-search__group-label{
  margin: 6px 10px 4px;
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .07em;
  color: #8a97ad;
}

.overview-search__row{
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  border: 0;
  background: transparent;
  font: inherit;
  text-align: left;
  padding: 9px 10px;
  border-radius: 12px;
  cursor: pointer;
}

.overview-search__row:hover,
.overview-search__row:focus-visible{
  background: #eef3fb;
  outline: none;
}

.overview-search__logo{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  flex-shrink: 0;
}

.overview-search__logo img,
.overview-search__logo .transfer-team-fallback,
.overview-search__comp-logo{
  width: 28px;
  height: 28px;
  object-fit: contain;
  border-radius: 8px;
}

.overview-search__badge{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 10px;
  background: #e7ecf5;
  color: #3984ff;
  font-size: 14px;
  font-weight: 800;
  flex-shrink: 0;
}

.overview-search__badge--num{
  font-size: 13px;
}

.overview-search__copy{
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.overview-search__copy strong{
  color: #0f1a2b;
  font-size: 14px;
}

.overview-search__copy span{
  color: #5b6b85;
  font-size: 12px;
}

.overview-search__loading{
  padding: 14px 12px;
  color: #5b6b85;
  font-size: 13px;
}

/* 21/09/2026 — banner "FMTO è in fase di test", fisso in cima al contenuto
   principale (sotto il topbar), richiudibile con la X; resta chiuso una
   volta chiuso (localStorage, vedi fmtoTestBannerInit_ in app.js). */
.fmto-test-banner{
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin: 0 0 22px;
  padding: 14px 16px;
  border-radius: 14px;
  color: #ffffff;
  background: linear-gradient(120deg, var(--brand-dark), var(--brand));
  box-shadow: 0 10px 26px rgba(37, 99, 235, 0.22);
  font-size: 13.5px;
  line-height: 1.5;
}
.fmto-test-banner__icon{
  font-size: 19px;
  line-height: 1;
  margin-top: 1px;
  flex-shrink: 0;
}
.fmto-test-banner__body{
  flex: 1;
  min-width: 160px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.fmto-test-banner__body b{
  font-size: 14px;
}
.fmto-test-banner__body span{
  color: rgba(255, 255, 255, 0.92);
}
.fmto-test-banner__cta{
  align-self: center;
  flex-shrink: 0;
  white-space: nowrap;
  text-decoration: none;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.35);
  padding: 7px 12px;
  border-radius: 10px;
  font-weight: 700;
  font-size: 12.5px;
  transition: background .15s ease;
}
.fmto-test-banner__cta:hover{
  background: rgba(255, 255, 255, 0.3);
}
.fmto-test-banner__close{
  flex-shrink: 0;
  align-self: flex-start;
  background: transparent;
  border: none;
  color: rgba(255, 255, 255, 0.85);
  font-size: 14px;
  line-height: 1;
  padding: 4px;
  cursor: pointer;
}
.fmto-test-banner__close:hover{
  color: #ffffff;
}
@media (max-width: 640px){
  .fmto-test-banner{
    flex-wrap: wrap;
  }
  .fmto-test-banner__cta{
    align-self: stretch;
    text-align: center;
    order: 3;
    width: 100%;
    margin-top: 4px;
  }
}

.fmto-welcome{
  position: fixed;
  inset: 0;
  z-index: 9998;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background:
    radial-gradient(circle at 80% 12%, rgba(57, 132, 255, 0.10), transparent 45%),
    #f4f6fa;
  opacity: 0;
  transition: opacity .35s ease;
  cursor: pointer;
}

.fmto-welcome.is-visible{
  opacity: 1;
}

.fmto-welcome__card{
  text-align: center;
  max-width: 460px;
  animation: fmtoWelcomeRise .5s ease both;
}

@keyframes fmtoWelcomeRise{
  from{ transform: translateY(14px); opacity: 0; }
  to{ transform: translateY(0); opacity: 1; }
}

.fmto-welcome__logos{
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 22px;
  margin-bottom: 26px;
}

.fmto-welcome__logo{
  width: 96px;
  height: 96px;
  object-fit: contain;
  filter: drop-shadow(0 10px 24px rgba(15, 26, 43, 0.16));
}

.fmto-welcome__logo--text{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 22px;
  background: #0f1a2b;
  color: #ffffff;
  font-size: 24px;
  font-weight: 900;
  letter-spacing: .04em;
}

.fmto-welcome__x{
  font-size: 26px;
  font-weight: 300;
  color: #8a97ad;
}

.fmto-welcome__eyebrow{
  margin: 0 0 8px;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: #8a97ad;
}

.fmto-welcome__title{
  margin: 0 0 6px;
  font-size: clamp(26px, 5vw, 38px);
  color: #0f1a2b;
}

.fmto-welcome__sub{
  margin: 0 0 26px;
  color: #5b6b85;
  font-size: 15px;
}

.fmto-welcome__enter{
  border: 0;
  background: #3984ff;
  color: #ffffff;
  font: inherit;
  font-size: 15px;
  font-weight: 800;
  padding: 13px 34px;
  border-radius: 999px;
  cursor: pointer;
  box-shadow: 0 12px 28px rgba(57, 132, 255, 0.35);
  transition: transform .15s ease, box-shadow .15s ease;
}

.fmto-welcome__enter:hover{
  transform: translateY(-1px);
  box-shadow: 0 16px 34px rgba(57, 132, 255, 0.42);
}

@media (max-width: 599px){
  .fmto-welcome__logo{
    width: 72px;
    height: 72px;
  }
  .overview-search__input{
    font-size: 14px;
  }
}

#metrics{ display: none !important; }

#overviewFeatured{ display: none !important; }
.overview-featured-grid{ grid-template-columns: 1fr !important; }

#overviewNavigation{ display: none !important; }

.odl-box--link{
  cursor: pointer;
  transition: box-shadow .15s ease, border-color .15s ease;
}
.odl-box--link:hover{
  border-color: #3984ff;
  box-shadow: 0 8px 22px rgba(57, 132, 255, 0.12);
}
.odl-goto{
  display: block;
  margin-top: 10px;
  color: #3984ff;
  font-size: 12px;
  font-weight: 700;
}

#overviewSearch{
  position: relative !important;
  z-index: 200;
}
#overviewSearchResults{
  position: absolute !important;
  top: calc(100% + 8px) !important;
  left: 0 !important;
  right: 0 !important;
  background: var(--surface) !important;
  color: #0f1a2b !important;
  border: 1px solid #d3dcea;
  border-radius: 18px;
  box-shadow: 0 18px 44px rgba(15, 26, 43, 0.16);
  padding: 8px;
  max-height: 62vh;
  overflow-y: auto;
}
#overviewSearchResults .overview-search__row strong{ color: #0f1a2b; }
#overviewSearchResults .overview-search__row span{ color: #5b6b85; }

.overview-mv-ticker{
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 6px;
  -webkit-overflow-scrolling: touch;
}

.overview-mv-chip{
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #e7ecf5;
  border: 1px solid #d3dcea;
  border-radius: 999px;
  padding: 7px 14px;
  font-size: 12px;
  white-space: nowrap;
  color: #0f1a2b;
}

.overview-mv-chip b{
  font-weight: 800;
}

.overview-mv-chip small{
  color: #5b6b85;
}

.overview-mv-chip img,
.overview-mv-chip .team-logo,
.overview-mv-chip .logo-fallback{
  width: 22px;
  height: 22px;
  object-fit: contain;
  border-radius: 7px;
  flex-shrink: 0;
}

#overviewSearch{ display: none !important; }

.overview-home,
.overview-featured-grid,
.overview-side-feed,
#overviewSideFeed{
  min-width: 0;
  max-width: 100%;
}

#overviewSeasonMeta{ display: none !important; }
.overview-magazine-hero{ position: relative; }
.overview-home__greeting-crest img,
.overview-home__greeting-crest .team-logo,
.overview-home__greeting-crest .logo-fallback{
  width: 58px !important;
  height: 58px !important;
  border-radius: 14px;
}
.overview-home__greeting-text strong{
  font-size: 24px !important;
  line-height: 1.15;
}
.overview-home__greeting-text small{
  font-size: 14px !important;
}
.overview-hero-manager-btn{
  position: absolute !important;
  right: 26px;
  bottom: 26px;
  margin: 0 !important;
}
@media (max-width: 859px){
  .overview-hero-manager-btn{
    position: static !important;
    margin-top: 14px !important;
  }
  .overview-home__greeting-text strong{ font-size: 20px !important; }
}

.overview-mv-ticker{ display: none; }
.overview-mv-grid{
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}
.overview-mv-card{
  display: flex;
  align-items: center;
  gap: 10px;
  background: #fbfcfe;
  border: 1px solid #d3dcea;
  border-radius: 12px;
  padding: 10px 12px;
  min-width: 0;
}
.overview-mv-card img,
.overview-mv-card .team-logo,
.overview-mv-card .logo-fallback{
  width: 26px;
  height: 26px;
  object-fit: contain;
  border-radius: 8px;
  flex-shrink: 0;
}
.overview-mv-card__copy{
  display: flex;
  flex-direction: column;
  gap: 1px;
  min-width: 0;
}
.overview-mv-card__copy strong{
  font-size: 13px;
  color: #0f1a2b;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.overview-mv-card__copy small{
  color: #5b6b85;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
@media (max-width: 599px){
  .overview-mv-grid{ grid-template-columns: 1fr; }
}

.overview-magazine-hero{
  min-height: 0 !important;
  padding: 22px 28px !important;
  display: flex !important;
  flex-direction: column;
  justify-content: center !important;
}
.overview-magazine-hero > *{
  margin-top: 0 !important;
  margin-bottom: 0 !important;
}
.overview-magazine-hero__top{
  margin: 0 !important;
  align-items: center !important;
}
.overview-magazine-hero .overview-home__greeting{
  margin: 0 !important;
  align-items: center !important;
}
.overview-hero-manager-btn{
  top: 50%;
  bottom: auto !important;
  transform: translateY(-50%);
}
@media (max-width: 859px){
  .overview-hero-manager-btn{
    transform: none;
  }
}

.overview-mv-card .transfer-player-face{
  width: 44px;
  height: 44px;
  border-radius: 0 !important;
  border: 0 !important;
  box-shadow: none !important;
  background: transparent !important;
  object-fit: contain !important;
  flex-shrink: 0;
}
.overview-mv-card{
  min-height: 60px;
}
.overview-mv-card .transfer-player-face-fallback{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #8a97ad;
}

.overview-mv-goto{
  display: block;
  width: 100%;
  margin-top: 10px;
  padding: 10px 12px;
  border: 1px dashed #d3dcea;
  border-radius: 10px;
  background: transparent;
  color: #3984ff;
  font: inherit;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
  text-align: center;
  transition: background .15s ease, border-color .15s ease;
}
.overview-mv-goto:hover,
.overview-mv-goto:focus-visible{
  background: #eef3fb;
  border-style: solid;
  border-color: #3984ff;
  outline: none;
}

@media (max-width: 720px){
  .profile-career-panel .career-summary{
    display: none !important;
  }
  
  .profile-career-panel .stats-table thead th:nth-child(4){
    padding: 0 !important;
    font-size: 0 !important;
    border-bottom-width: 1px;
  }
  .profile-career-panel .stats-table td.stats-movement-cell{
    padding: 0 !important;
    min-width: 0 !important;
  }
  .profile-career-panel .stats-table td.stats-movement-cell > *{
    display: none !important;
  }
}

.fmtx-mobile{ display: none; }

.fmtx-card{
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 8px 10px;
  margin-bottom: 8px;
}
.fmtx-card__r1{
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}
.fmtx-card__season{
  flex: 0 0 auto;
  background: #e7ecf5;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 2px 7px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.03em;
  color: #3f4f68;
  white-space: nowrap;
}
.fmtx-card__route{
  display: flex;
  align-items: center;
  gap: 5px;
  min-width: 0;
  flex: 1 1 auto;
}
.fmtx-card__route .transfer-team-logo,
.fmtx-card__route .transfer-team-fallback{
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  border-radius: 4px;
}
.fmtx-card__route .stats-movement-arrow{
  flex: 0 0 auto;
  color: #16a34a;
  font-weight: 900;
  font-size: 13px;
}
.fmtx-card__team{
  font-size: 11.5px;
  font-weight: 700;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.fmtx-card__r2{
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 5px;
  margin-top: 6px;
}
.fmtx-chip{
  display: inline-block;
  background: #e7ecf5;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 2px 9px;
  font-size: 10px;
  font-weight: 700;
  color: #3f4f68;
  white-space: nowrap;
}
.fmtx-chip--cr{
  background: #ecfdf5;
  border-color: #a7f3d0;
  color: #047857;
}
.fmtx-note{
  display: inline-block;
  background: #fffbeb;
  border: 1px solid #fde68a;
  border-radius: 8px;
  padding: 2px 8px;
  font-size: 10px;
  color: #92400e;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 100%;
}

@media (max-width: 720px){
  .profile-transfers-panel .fmtx-desktop{ display: none !important; }
  .fmtx-mobile{ display: block; }
}

@media (max-width: 720px){
  
  #transferOperations .tr-op{
    background: transparent;
    border: none;
    border-left: 3px solid var(--brand);
    border-radius: 0;
    overflow: visible;
    margin: 0 0 14px 5px;
    padding: 0 0 2px 10px;
    position: relative;
  }
  #transferOperations .tr-op::before{
    content: "";
    position: absolute;
    left: -7.5px;
    top: 1px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--brand);
    border: 2px solid #f4f6fa;
  }
  
  #transferOperations .tr-op__head{
    background: transparent;
    color: var(--brand);
    padding: 0 0 6px;
    font-size: 10px;
    letter-spacing: 0.06em;
  }
  #transferOperations .tr-op__count{ color: var(--muted); opacity: 1; }

  #transferOperations .tr-row{
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 5px 7px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: 7px 9px;
    margin-bottom: 7px;
  }
  #transferOperations .tr-row:nth-child(odd){ background: var(--surface); }
  #transferOperations .tr-row:last-child{ margin-bottom: 0; }
  #transferOperations .tr-row > *{ min-width: 0; }

  #transferOperations .tr-player{
    order: 1;
    width: 100%;
    gap: 7px;
  }
  #transferOperations .tr-player .transfer-player-face{
    width: 26px;
    height: 26px;
    flex: 0 0 auto;
    border-radius: 8px;
  }
  #transferOperations .tr-player__copy b{
    font-size: 12.5px;
    white-space: nowrap;
    display: block;
    -webkit-line-clamp: unset;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  #transferOperations .tr-player__copy small{ font-size: 9.5px; }

  #transferOperations .tr-club{
    flex-direction: row;
    align-items: center;
    gap: 5px;
    text-align: left;
  }
  #transferOperations .tr-club--seller{ order: 2; }
  #transferOperations .tr-arrow{ order: 3; font-size: 13px; }
  #transferOperations .tr-club--buyer{ order: 4; }
  #transferOperations .tr-cr--mobile{
    order: 5;
    margin-left: auto;
    display: flex;
    justify-content: flex-end;
  }
  #transferOperations .tr-club .transfer-team-logo,
  #transferOperations .tr-club .transfer-team-fallback{
    width: 18px;
    height: 18px;
  }
  #transferOperations .tr-club__copy{ align-items: flex-start; }
  #transferOperations .tr-club em{
    display: block;
    font-size: 10px;
    font-weight: 700;
    max-width: 96px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  #transferOperations .tr-club-id{ display: none; }

  #transferOperations .tr-extra{
    order: 6;
    width: 100%;
    justify-content: flex-start;
  }
}

@media (max-width: 720px){
  .overview-mv-grid .overview-mv-card:nth-child(n+5){ display: none; }
}

.mgrr-desktop{ display: grid; gap: 9px; }
.mgrr-mobile{ display: none; }

.mgrr-head{
  display: flex;
  align-items: center;
  gap: 7px;
  margin: 12px 0 6px;
}
.mgrr-head:first-child{ margin-top: 0; }
.mgrr-head span{
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.07em;
  color: #fff;
  background: var(--brand-dark, #1d3f8f);
  border-radius: 6px;
  padding: 2px 8px;
}
.mgrr-head i{
  font-style: normal;
  font-size: 10px;
  color: var(--muted);
  font-weight: 700;
}
.mgrr-row{
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 6px 9px;
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 5px;
}
.mgrr-row > *{ min-width: 0; }
.mgrr-row .player-face-stack{ flex: 0 0 auto; }
.mgrr-face{
  width: 32px !important;
  height: 32px !important;
  border-radius: 8px;
  object-fit: contain;
}
.mgrr-row .face-flag-overlay{ transform: scale(0.8); transform-origin: bottom right; }
.mgrr-copy{ flex: 1; min-width: 0; }
.mgrr-copy b{
  display: block;
  font-size: 12px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.mgrr-copy small{
  display: block;
  font-size: 9.5px;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.mgrr-out-pill{
  display: inline-block;
  background: #fef2f2;
  border: 1px solid #fecaca;
  border-radius: 999px;
  padding: 0 6px;
  font-size: 9px;
  font-weight: 700;
  color: #b91c1c;
}
.mgrr-row .ca-badge{ flex: 0 0 auto; }
.mgrr-row .secondary-button.small{ flex: 0 0 auto; padding: 4px 9px; font-size: 10.5px; }

/* 13/10 — FIX immagini sfasate nella rosa Area Mister (mobile): per i giocatori
   SENZA foto una regola globale mobile (.player-face-stack--no-photo e il suo
   .player-photo-empty) forza 58px, mentre qui le foto sono 32px (.mgrr-face) →
   le righe senza foto risultavano più grandi e disallineate rispetto alle altre.
   Qui riporto il riquadro "senza foto" a 32px, identico alle foto. */
.mgrr-row .player-face-stack--no-photo{ width: 32px !important; height: 32px !important; }
.mgrr-row .player-face-stack--no-photo > .player-photo-empty{
  width: 32px !important; height: 32px !important; border-radius: 8px !important;
}

@media (max-width: 720px){
  #mgrRosterList .mgrr-desktop{ display: none; }
  #mgrRosterList .mgrr-mobile{ display: block; }
  /* 13/10 — spazio in fondo: così l'ultima riga (e il suo bottone "Profilo")
     non resta coperta dal FAB "＋" (collegamenti esterni, fisso in basso a dx). */
  #mgrRosterList{ padding-bottom: 84px; }
  #mgrShowcasePicker{ padding-bottom: 84px; }
}

.mgr-mode-tabs,
.mgr-showcase-modes{
  display: inline-flex;
  background: var(--chip, #e7ecf5);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 3px;
  gap: 3px;
}
.mgr-showcase-modes{
  display: flex;
  flex-wrap: wrap;
  margin: 0 0 12px;
}
.mgr-mode-tab{
  border: none;
  background: transparent;
  border-radius: 8px;
  padding: 5px 12px;
  font-size: 11.5px;
  font-weight: 700;
  color: var(--muted);
  cursor: pointer;
}
.mgr-mode-tab.active{
  background: var(--surface);
  color: var(--text, #0f1a2b);
  box-shadow: 0 1px 3px rgba(15, 26, 43, 0.12);
}

.mgrr-mobile.mgrr-always{ display: block; }

.mgrr-loan-pill{
  background: #fffbeb;
  border-color: #fde68a;
  color: #92400e;
}

.manager-unknown{
  color: var(--muted);
  font-style: italic;
  font-weight: 600;
}

.club-palmares-empty{
  text-align: center;
  padding: 30px 12px 26px;
}
.club-palmares-empty svg{
  width: 64px;
  height: 64px;
  opacity: 0.9;
}
.club-palmares-empty h3{
  margin: 12px 0 4px;
  font-size: 14.5px;
  color: var(--text, #0f1a2b);
}
.club-palmares-empty p{
  margin: 0;
  font-size: 11.5px;
  color: var(--muted);
}

.fb-team{
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
  vertical-align: middle;
}
.fb-team-logo{
  width: 20px;
  height: 20px;
  object-fit: contain;
  flex: 0 0 auto;
}
.fb-team-logo--fallback{
  display: inline-block;
  border-radius: 50%;
  background: var(--chip, #e7ecf5);
  border: 1px solid var(--line);
}
.fb-team-name{
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.fb-slot-team{ display: inline-flex; align-items: center; gap: 5px; min-width: 0; }
.fb-cls td{ vertical-align: middle; }

.competition-waiting{
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  text-align: center;
  padding: 34px 16px 30px;
}
.competition-waiting svg{
  width: 56px;
  height: 56px;
}
.competition-waiting h3{
  margin: 10px 0 4px;
  font-size: 15px;
}
.competition-waiting p{
  margin: 0 0 14px;
  font-size: 12px;
  color: var(--muted);
}
.competition-waiting__cta{
  display: inline-block;
  background: var(--brand, #3984ff);
  color: #fff;
  border: none;
  border-radius: 9px;
  padding: 8px 16px;
  font-size: 11.5px;
  font-weight: 700;
  cursor: pointer;
}
.competition-waiting__cta:hover{ filter: brightness(1.07); }

.mgrh-grid{
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(148px, 1fr));
  gap: 10px;
}
@media (max-width: 599px){
  .mgrh-grid{ grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
}
.mgrh-card{
  background: linear-gradient(180deg, #ffffff 0%, #f2f5fb 100%);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 14px 8px 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 6px;
  min-width: 0;
  position: relative;
  overflow: hidden;
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}
.mgrh-card::before{
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--brand, #3984ff), #22b1f0);
}
.mgrh-card:hover{
  transform: translateY(-2px);
  box-shadow: 0 8px 18px rgba(15, 26, 43, 0.10);
}
.mgrh-card .player-face-stack{ flex: 0 0 auto; }
.mgrh-face{
  width: 74px !important;
  height: 74px !important;
  border-radius: 50%;
  object-fit: cover;
  background: #e9edf5;
  box-shadow: 0 3px 10px rgba(15, 26, 43, 0.14);
}
.mgrh-card .face-flag-overlay{ transform: scale(0.9); transform-origin: bottom right; }
.mgrh-name{
  display: block;
  width: 100%;
  font-size: 11.5px;
  font-weight: 800;
  line-height: 1.15;
  color: var(--brand-dark, #1d3f8f);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.mgrh-pill{
  display: inline-block;
  background: var(--chip, #e7ecf5);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 1px 8px;
  font-size: 8.5px;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: #3f4f68;
  white-space: nowrap;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
}
.mgrh-stats{
  display: flex;
  justify-content: center;
  gap: 0;
  width: 100%;
  margin-top: 2px;
  border-top: 1px dashed var(--line);
  padding-top: 7px;
}
.mgrh-stats > span{
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1px;
  min-width: 0;
}
.mgrh-stats > span + span{ border-left: 1px solid var(--line); }
.mgrh-stats i{
  font-style: normal;
  font-size: 10px;
  line-height: 1;
  opacity: 0.85;
}
.mgrh-stats b{
  font-size: 13px;
  font-weight: 800;
  color: var(--text, #0f1a2b);
}

.fb-card h3,
.fb-elim-col h3{
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 10.5px;
  letter-spacing: 0.14em;
  color: var(--brand-dark, #1d3f8f);
  text-transform: uppercase;
  margin: 0 0 12px;
}
.fb-card h3::before, .fb-card h3::after,
.fb-elim-col h3::before, .fb-elim-col h3::after{
  content: "";
  height: 1px;
  flex: 1;
  background: var(--line);
}

table.fb-cls{ border-collapse: separate; border-spacing: 0 4px; }
table.fb-cls th{ border-bottom: none; }
table.fb-cls td{
  background: var(--surface);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
table.fb-cls tr.fb-row td:first-child{
  border-left: 1px solid var(--line);
  border-radius: 8px 0 0 8px;
}
table.fb-cls tr.fb-row td:last-child{
  border-right: 1px solid var(--line);
  border-radius: 0 8px 8px 0;
}
table.fb-cls tr:last-child td{ border-bottom: 1px solid var(--line); }
table.fb-cls td.fb-pos{ color: var(--brand, #3984ff); }
table.fb-cls tr.fb-row--leader td{
  background: #eaf2ff;
  border-color: #bcd4ff;
}

.fbx-match{
  display: flex;
  align-items: stretch;
  filter: drop-shadow(0 3px 8px rgba(15, 26, 43, 0.10));
  margin-top: 6px;
}
.fbx-half{
  flex: 1;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 12px;
  background: var(--surface);
  border: 1px solid var(--line);
  font-weight: 800;
  font-size: 12px;
  min-width: 0;
}
.fbx-half--home{
  clip-path: polygon(6% 0, 100% 0, 100% 100%, 0 100%);
  justify-content: flex-end;
  text-align: right;
  border-radius: 10px 0 0 10px;
  border-right: none;
}
.fbx-half--away{
  clip-path: polygon(0 0, 94% 0, 100% 100%, 0 100%);
  border-radius: 0 10px 10px 0;
  border-left: none;
}
.fbx-half--winner{ background: #eaf2ff; }
.fbx-half .fb-team-logo,
.fbx-half .fb-team-logo--fallback{
  width: 24px;
  height: 24px;
  flex: 0 0 auto;
}
.fbx-name{
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.fbx-name--placeholder{
  color: var(--muted);
  font-weight: 700;
  font-style: italic;
}
.fbx-score{
  background: var(--brand, #3984ff);
  color: #fff;
  font-weight: 900;
  font-size: 13.5px;
  display: flex;
  align-items: center;
  padding: 0 12px;
  white-space: nowrap;
  letter-spacing: 0.04em;
}
.fb-tie{ margin-bottom: 12px; }
.fb-tie-id{
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 9.5px;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: var(--muted);
}

@media (max-width: 599px){
  .fbx-half{ padding: 8px 8px; font-size: 11px; gap: 6px; }
  .fbx-half .fb-team-logo,
  .fbx-half .fb-team-logo--fallback{ width: 20px; height: 20px; }
  .fbx-score{ font-size: 12px; padding: 0 8px; }
}

.fmto-modal{
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: 0 20px 60px rgba(15, 26, 43, 0.25);
}
.fmto-modal-head{
  border-bottom: 1px solid var(--line);
}
.fmto-modal-head h3{ color: var(--text, #0f1a2b); }
.fmto-modal-head .eyebrow{ color: var(--muted); }
.fmto-modal-close{
  border: 1px solid var(--line);
  background: var(--chip, #e7ecf5);
  color: var(--text, #0f1a2b);
}
.fmto-modal-close:hover{ background: #dbe3f0; }
.fmto-modal-body{ color: var(--text, #0f1a2b); }

.fmto-modal-body .transfer-col__copy strong,
.fmto-modal-body .transfer-player-copy strong,
.fmto-modal-body .transfer-value strong,
.fmto-modal-body .transfer-movement .transfer-col__copy strong,
.fmto-modal-body .transfer-movement .transfer-player-copy strong,
.fmto-modal-body .transfer-movement .transfer-value strong,
.fmto-modal-body .transfer-movement .transfer-player strong{
  color: var(--text, #0f1a2b);
}
.fmto-modal-body .transfer-col__copy small,
.fmto-modal-body .transfer-player-copy small,
.fmto-modal-body .transfer-movement .transfer-col__copy small,
.fmto-modal-body .transfer-movement .transfer-player-copy small,
.fmto-modal-body .transfer-movement .transfer-value small{
  color: var(--muted);
}
.fmto-modal-body .transfer-team-fallback{
  background: var(--chip, #e7ecf5);
  border-color: var(--line);
}
.fmto-modal-body .transfer-movement .transfer-note{
  color: #92400e;
  background: #fffbeb;
  border-color: #fde68a;
}
.fmto-modal-body .transfer-movement .transfer-clause-row span{
  background: var(--chip, #e7ecf5);
  border-color: var(--line);
  color: #3f4f68;
}

.tr-detail-op__head{ border-bottom: 1px solid var(--line); }
.tr-detail-op__id{ color: #a97e00; }
.tr-detail-op__count{ color: var(--muted); }
.tr-detail-loading{ color: var(--muted); }
.tr-detail-row.is-current{
  border-color: #bcd4ff;
  background: #eaf2ff;
}

.trd-wrap{ overflow-x: auto; }
.trd-table{
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
}
.trd-table th{
  text-align: left;
  font-size: 9px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 5px 8px;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}
.trd-table td{
  padding: 6px 8px;
  border-bottom: 1px solid #eef2f8;
  vertical-align: middle;
}
.trd-table tr:last-child td{ border-bottom: none; }
.trd-row.is-current td{ background: #eaf2ff; }
.trd-row--has-extra td{ border-bottom: none; }
.trd-extra td{ padding-top: 0; }
.trd-extra td .tr-note,
.trd-extra td .transfer-clause-row{ margin: 2px 6px 2px 0; display: inline-flex; }
.trd-extra.is-current td{ background: #eaf2ff; }

.trd-player__btn{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: none;
  background: transparent;
  padding: 0;
  cursor: pointer;
  text-align: left;
  min-width: 0;
  max-width: 100%;
}
.trd-player__btn b{
  font-size: 12px;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.trd-player__btn .transfer-player-face{
  width: 26px;
  height: 26px;
  flex: 0 0 auto;
  border-radius: 8px;
}
.trd-team{
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  max-width: 100%;
}
.trd-team .transfer-team-logo,
.trd-team .transfer-team-fallback{
  width: 20px;
  height: 20px;
  flex: 0 0 auto;
}
.trd-team__name{
  font-weight: 700;
  font-size: 11.5px;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.trd-type{
  display: inline-block;
  background: var(--chip, #e7ecf5);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 1px 9px;
  font-size: 10px;
  font-weight: 700;
  color: #3f4f68;
  white-space: nowrap;
}
.trd-cr{
  text-align: right;
  font-weight: 800;
  white-space: nowrap;
}

.mgrh-toolbar{
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 8px 10px;
  margin-bottom: 12px;
}
.mgrh-search{
  flex: 1;
  min-width: 150px;
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 6px 10px;
  font-size: 11.5px;
  background: var(--shell, #f4f6fa);
  color: var(--text, #0f1a2b);
}
.mgrh-season{
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 6px 10px;
  font-size: 11px;
  font-weight: 700;
  color: var(--text, #0f1a2b);
  background: var(--surface);
}

#mgrPanelHistory .face-flag-overlay{ display: none !important; }

.mgrh-table-wrap{ overflow-x: auto; }
.mgrh-table{
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
}
.mgrh-table th{
  text-align: left;
  font-size: 9px;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 7px 9px;
  border-bottom: 1px solid var(--line);
  cursor: pointer;
  user-select: none;
  white-space: nowrap;
}
.mgrh-table th:hover{ color: var(--brand, #3984ff); }
.mgrh-table th.num, .mgrh-table td.num{ text-align: center; }
.mgrh-table td{
  padding: 6px 9px;
  border-bottom: 1px solid #eef2f8;
  vertical-align: middle;
}
.mgrh-table tr:last-child td{ border-bottom: none; }
.mgrh-table td.num b{ font-size: 12.5px; }
.mgrh-arrow{ font-size: 8px; color: var(--brand, #3984ff); }
.mgrh-list-player{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: none;
  background: transparent;
  padding: 0;
  cursor: pointer;
  text-align: left;
  min-width: 0;
  max-width: 100%;
}
.mgrh-list-player b{
  font-size: 12px;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.mgrh-list-player:hover b{ color: var(--brand, #3984ff); text-decoration: underline; }
.mgrh-list-face{
  
  width: 26px !important;
  height: 26px !important;
  min-width: 26px !important;
  min-height: 26px !important;
  border-radius: 50%;
  object-fit: cover;
  object-position: center top;
}
.mgrh-card{ cursor: pointer; }

.mgrh-detail-summary{
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  padding-bottom: 10px;
  margin-bottom: 10px;
  border-bottom: 1px dashed var(--line);
}
.mgrh-stats--inline{
  display: flex;
  gap: 10px;
  border: none;
  padding: 0;
  margin: 0;
  width: auto;
}
.mgrh-stats--inline > span{
  flex-direction: row;
  gap: 4px;
  border: none !important;
  align-items: center;
}
.mgrh-detail-season{
  margin: 10px 0 6px;
  font-size: 9px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 800;
}
.mgrh-detail-chips{ display: flex; flex-wrap: wrap; gap: 5px; }
.mgrh-schip{
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--chip, #e7ecf5);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 3px 11px;
  font-size: 10.5px;
  font-weight: 700;
  color: #3f4f68;
}
.mgrh-schip small{ font-weight: 600; color: var(--muted); }
.mgrh-schip-logo{
  width: 15px;
  height: 15px;
  object-fit: contain;
  flex: 0 0 auto;
}
.mgrh-schip-logo--fallback{
  display: inline-block;
  border-radius: 50%;
  background: #c9d4e6;
}

.fbs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 14px;
  align-items: start;
}
.fbs-card h3 { display: flex; align-items: center; gap: 8px; }
.fbs-table td { vertical-align: middle; }
.fbs-player {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}
.fbs-face {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  object-fit: cover;
  background: #dfe6f2;
  border: 1px solid #d3dcea;
  flex: none;
}
.fbs-face.is-broken { visibility: hidden; }
.fbs-face--empty { display: inline-block; }
.fbs-pname {
  font-weight: 700;
  color: #0f1a2b;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 160px;
}
.fbs-team .fb-team-name { color: #5b6b85; font-weight: 600; }
@media (max-width: 720px) {
  .fbs-team .fb-team-name { display: none; }
  .fbs-pname { max-width: 120px; }
}

.fb-elim{
  display: flex;
  flex-wrap: nowrap;
  gap: 16px;
  align-items: stretch;
  overflow-x: auto;
  padding-bottom: 8px;
  -webkit-overflow-scrolling: touch;
}
.fb-elim-col{
  flex: 1 0 250px;
  min-width: 250px;
  max-width: 340px;
  display: flex;
  flex-direction: column;
}
.fb-elim-ties{
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-around;
  gap: 12px;
}
.fb-elim-ties .fb-tie{ margin-bottom: 0; position: relative; }

.fb-elim-col + .fb-elim-col .fb-tie::before{
  content: "";
  position: absolute;
  left: -16px;
  top: 50%;
  width: 16px;
  height: 2px;
  background: var(--line);
}
@media (max-width:720px){
  .fb-elim{ flex-wrap: nowrap; }
  .fb-elim-col{ flex: 0 0 240px; min-width: 240px; }
}

.fbx-legs{
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: 8px;
}
.fbx-leg{
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: var(--surface-2, #e9edf5);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 2px 9px;
  font-size: 11px;
  font-weight: 800;
  color: var(--text, #0f1a2b);
}
.fbx-leg small{
  font-size: 9px;
  font-weight: 900;
  letter-spacing: .05em;
  color: var(--muted);
}
.fb-pill--void{ background:#f8fafc; color:#64748b; border:1px solid #cbd5e1; text-decoration: line-through; }

.fb-posn{
  display: inline-grid;
  place-items: center;
  min-width: 22px;
  height: 22px;
  padding: 0 4px;
  border-radius: 7px;
  font-weight: 800;
}
.fb-zone--fin{ background:#f6e7bd; color:#7c5806; }
.fb-zone--cl{ background:#dbeafe; color:#1d4ed8; }
.fb-zone--el{ background:#ffedd5; color:#c2410c; }
.fb-zone--ccl{ background:#ccfbf1; color:#0f766e; }
.fb-zone--poff{ background:#e0f2fe; color:#0369a1; }
.fb-zone--pout{ background:#fef3c7; color:#b45309; }
.fb-zone--ret{ background:#fee2e2; color:#b91c1c; }
.fb-zone--adv{ background:#e7ecf5; color:#1d3f8f; }
.fb-zone--out{ background:#f1f5f9; color:#64748b; }
/* 18/10/2026 — ESITI sportivi (colore del chip posizione): vincitore girone /
   play-off / play-out / retrocessione diretta. La coppa è invece un LOGO. */
.fb-out--win{ background:#f6e7bd; color:#7c5806; }
.fb-out--poff{ background:#dcfce7; color:#15803d; }
.fb-out--pout{ background:#fef3c7; color:#b45309; }
.fb-out--ret{ background:#fee2e2; color:#b91c1c; }
.fb-poswrap{ display:inline-flex; align-items:center; gap:5px; }
.fb-stage{ display:inline-grid; place-items:center; height:16px; padding:0 5px; border-radius:5px;
  background:#dcfce7; color:#15803d; font-size:8.5px; font-weight:800; letter-spacing:.02em; flex:0 0 auto; white-space:nowrap; }
.fb-cup{ width:17px; height:17px; object-fit:contain; flex:0 0 auto; vertical-align:middle; }
.fb-cup--fb{ display:inline-grid; place-items:center; min-width:17px; height:17px; padding:0 3px;
  border-radius:4px; background:#eef2f8; color:#64748b; font-size:8px; font-weight:800; }
.fb-cup--leg{ width:15px; height:15px; }
.fb-zone-legend{
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
  margin-top: 10px;
  padding-top: 8px;
  border-top: 1px dashed var(--line);
  font-size: 10.5px;
  font-weight: 700;
  color: var(--muted);
}
.fb-zone-legend > span{ display: inline-flex; align-items: center; gap: 6px; }
.fb-zone-dot{
  width: 10px;
  height: 10px;
  border-radius: 4px;
  display: inline-block;
}

.fbk4{ display:flex; flex-direction:column; gap:14px; margin-top:16px; }
.fbk4-hero{
  background: linear-gradient(115deg, #1d3f8f, #3984ff);
  border-radius: 18px;
  color: #fff;
  padding: 18px 22px 16px;
  box-shadow: 0 12px 30px rgba(29, 63, 143, .32);
}
.fbk4-hero-top{
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}
.fbk4-eyebrow{
  font-size: 10.5px;
  letter-spacing: .14em;
  text-transform: uppercase;
  font-weight: 900;
  color: #cfe0ff;
}
.fbk4-hero-main{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
}
.fbk4-side{ display: flex; align-items: center; gap: 12px; min-width: 0; flex: 1; }
.fbk4-side--right{ justify-content: flex-end; text-align: right; }
.fbk4-logo{
  width: 52px; height: 52px; border-radius: 50%;
  background: var(--surface); object-fit: contain; padding: 5px; flex: none;
  box-shadow: 0 4px 12px rgba(15, 26, 43, .25);
}
.fbk4-logo--fallback{ display: inline-block; }
.fbk4-name{ font-size: 17px; font-weight: 900; }
.fbk4-name.is-winner{ color: #ffd76a; }
.fbk4-score{
  font-size: 32px; font-weight: 900; color: #ffd76a; white-space: nowrap;
  display: flex; align-items: center; gap: 7px;
}
.fbk4-score i{ font-style: normal; color: #cfe0ff; font-size: 22px; }
.fbk4-hero .fbx-legs{ margin-top: 12px; justify-content: center; }
.fbk4-hero .fbx-leg{
  background: rgba(255, 255, 255, .16);
  border-color: rgba(255, 255, 255, .28);
  color: #fff;
}
.fbk4-hero .fbx-leg small{ color: #cfe0ff; }
.fbk4-hero .fb-pill--done{ background: rgba(255,255,255,.18); color: #d9fbe6; border-color: rgba(255,255,255,.3); }
.fbk4-hero .fb-pill--wait, .fbk4-hero .fb-pill--todo, .fbk4-hero .fb-pill--half, .fbk4-hero .fb-pill--void{
  background: rgba(255,255,255,.14); color: #e3ecff; border-color: rgba(255,255,255,.3);
}
.fbk4-title{
  font-size: 11px; text-transform: uppercase; letter-spacing: .09em;
  color: var(--muted); margin: 4px 0 8px; font-weight: 800;
}
.fbk4-semis{ display: flex; gap: 12px; flex-wrap: wrap; }
.fbk4-semi{
  flex: 1; min-width: 260px;
  background: var(--surface); border: 1px solid #b9c8e2; border-radius: 14px;
  padding: 12px 16px; box-shadow: 0 3px 10px rgba(15, 26, 43, .07);
}
.fbk4-semi-main{ display: flex; align-items: center; gap: 10px; }
.fbk4-semi-team{
  display: flex; align-items: center; gap: 8px; flex: 1; min-width: 0;
  font-weight: 800; font-size: 13px;
}
.fbk4-semi-team--right{ justify-content: flex-end; text-align: right; }
.fbk4-semi-team.is-winner{ color: var(--brand-dark, #1d3f8f); }
.fbk4-semi-team.is-winner > span::after{ content: " 🏆"; font-size: 11px; }
.fbk4-semi-team > span{ overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fbk4-semi-logo{
  width: 26px; height: 26px; border-radius: 50%; object-fit: contain;
  background: #eef2f9; border: 1px solid var(--line); padding: 2px; flex: none;
}
.fbk4-vs{
  background: var(--brand, #3984ff); color: #fff; border-radius: 8px;
  padding: 4px 10px; font-weight: 900; font-size: 13px; white-space: nowrap; flex: none;
}
.fbk4-semi .fbx-legs{ margin-top: 8px; }
.fbk4-semi-status{ margin-top: 8px; }
.fbk4-round{
  background: var(--surface); border: 1px solid var(--line); border-radius: 12px; overflow: hidden;
}
.fbk4-round summary{
  cursor: pointer; padding: 11px 16px; font-weight: 800; font-size: 12.5px;
  color: var(--brand-dark, #1d3f8f); list-style: none;
  display: flex; justify-content: space-between; align-items: center;
}
.fbk4-round summary::-webkit-details-marker{ display: none; }
.fbk4-round summary small{ color: var(--muted); font-weight: 700; }
.fbk4-round[open] summary{ border-bottom: 1px dashed var(--line); }
.fbk4-roundinner{
  padding: 10px 16px 14px; display: flex; flex-wrap: wrap; gap: 6px;
}
.fbk4-chip{
  background: var(--chip, #e7ecf5); border: 1px solid var(--line);
  border-radius: 999px; padding: 4px 12px; font-size: 11px; font-weight: 700;
  color: var(--text, #0f1a2b);
}
.fbk4-chip b{ color: var(--brand-dark, #1d3f8f); }
.fbk4-chip-score{ font-weight: 900; }
.fbk4-chip--void{ color: #64748b; }
.fbk4-chip--void i{ font-style: normal; font-size: 9.5px; font-weight: 900; color: #94a3b8; }
@media (max-width: 720px){
  .fbk4-hero-main{ flex-direction: column; align-items: stretch; text-align: center; }
  .fbk4-side, .fbk4-side--right{ justify-content: center; text-align: center; }
  .fbk4-score{ justify-content: center; }
  .fbk4-semi{ min-width: 100%; }
}

.fbk1{
  display: flex;
  flex-wrap: nowrap;
  gap: 0;
  align-items: stretch;
  overflow-x: auto;
  padding: 6px 2px 12px;
  -webkit-overflow-scrolling: touch;
  margin-top: 16px;
}
.fbk1-col{
  flex: 1 0 225px;
  min-width: 225px;
  max-width: 300px;
  padding: 0 16px;
  display: flex;
  flex-direction: column;
  position: relative;
}
.fbk1-h{
  text-align: center;
  font-size: 10px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 8px;
  font-weight: 800;
}
.fbk1-ties{
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-around;
}
.fbk1-m{
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 10px;
  margin: 7px 0;
  overflow: hidden;
  position: relative;
  font-size: 12px;
  box-shadow: 0 2px 6px rgba(15, 26, 43, .06);
}
.fbk1-r{
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 6px 9px;
  font-weight: 700;
  min-width: 0;
}
.fbk1-r + .fbk1-r{ border-top: 1px solid var(--line); }
.fbk1-logo{
  width: 20px; height: 20px; border-radius: 50%;
  object-fit: contain; background: #eef2f9;
  border: 1px solid var(--line); padding: 1px; flex: none;
}
.fbk1-nm{ overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.fbk1-sc{ margin-left: auto; font-weight: 900; color: var(--muted); min-width: 16px; text-align: center; flex: none; }
.fbk1-r.w{ background: #f2f7ff; }
.fbk1-r.w .fbk1-nm{ color: var(--brand-dark, #1d3f8f); }
.fbk1-r.w .fbk1-sc{ color: var(--brand-dark, #1d3f8f); }
.fbk1-m .fbx-legs{
  margin: 0;
  padding: 4px 9px 6px;
  border-top: 1px dashed var(--line);
  gap: 5px;
}
.fbk1-m .fbx-leg{ padding: 1px 8px; font-size: 10px; }
.fbk1-note{
  border-top: 1px dashed var(--line);
  padding: 3px 9px 5px;
  font-size: 9px;
  font-weight: 900;
  letter-spacing: .07em;
  color: #64748b;
}
.fbk1-note--void{ text-decoration: line-through; }
.fbk1-lock{
  margin: 0 0 8px;
  padding: 6px 9px;
  border-radius: 8px;
  background: rgba(100,116,139,.10);
  border: 1px dashed var(--line);
  font-size: 10px;
  font-weight: 700;
  line-height: 1.3;
  color: #64748b;
}
.fbk1-col--locked .fbk1-m{ opacity: .72; }
@media (prefers-color-scheme: dark){
  :root:not([data-theme="light"]) .fbk1-lock{ background: rgba(148,163,184,.12); color: #94a3b8; }
}
:root[data-theme="dark"] .fbk1-lock{ background: rgba(148,163,184,.12); color: #94a3b8; }

.fbk1-col + .fbk1-col .fbk1-m::before{
  content: "";
  position: absolute;
  left: -17px;
  top: 50%;
  width: 16px;
  height: 2px;
  background: var(--line);
}

.fbk1-col--c2 .fbk1-m{ border-color: #b9c8e2; }
.fbk1-col--c3 .fbk1-m{
  border-color: var(--brand, #3984ff);
  box-shadow: 0 4px 12px rgba(57, 132, 255, .18);
  transform: scale(1.04);
}
.fbk1-col--c3 .fbk1-h{ color: var(--brand-dark, #1d3f8f); }
.fbk1-cup{ text-align: center; font-size: 22px; margin-bottom: 2px; }
.fbk1-col--fin .fbk1-h{ color: #b8860b; }
.fbk1-col--fin .fbk1-ties{ justify-content: center; }
.fbk1-col--fin .fbk1-m{
  transform: scale(1.1);
  border: 2px solid #d4a017;
  background: linear-gradient(180deg, #fffdf5, #f9f0d8);
  box-shadow: 0 8px 22px rgba(212, 160, 23, .25);
  font-size: 12.5px;
}
.fbk1-col--fin .fbk1-r + .fbk1-r{ border-top-color: #e7d49a; }
.fbk1-col--fin .fbk1-r.w{ background: #f9efcf; }
.fbk1-col--fin .fbk1-r.w .fbk1-nm,
.fbk1-col--fin .fbk1-r.w .fbk1-sc{ color: #a3720a; }
.fbk1-col--fin .fbk1-m .fbx-legs{ border-top-color: #e7d49a; }
.fbk1-col--fin .fbk1-m .fbx-leg{ background: var(--surface); border-color: #e7d49a; }
.fbk1-col--fin .fbk1-m::before{ background: #d4a017; }
@media (max-width: 720px){
  .fbk1-col{ flex: 0 0 210px; min-width: 210px; padding: 0 12px; }
}

.comp-tabs{
  display: inline-flex;
  background: var(--chip, #e7ecf5);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 4px;
  gap: 4px;
  margin: 16px 0 2px;
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.comp-tab{
  border: 0;
  background: transparent;
  border-radius: 999px;
  padding: 8px 18px;
  font-size: 12.5px;
  font-weight: 800;
  color: var(--muted);
  cursor: pointer;
  font-family: inherit;
  white-space: nowrap;
  transition: background .15s ease, color .15s ease;
}
.comp-tab:hover{ color: var(--brand-dark, #1d3f8f); }
.comp-tab.on{
  background: var(--surface);
  color: var(--brand-dark, #1d3f8f);
  box-shadow: 0 2px 6px rgba(15, 26, 43, .12);
}
.comp-pane{ margin-top: 10px; }
@media (max-width: 720px){
  .comp-tabs{ display: flex; }
  .comp-tab{ flex: 1; padding: 8px 10px; font-size: 11.5px; }
}

.fbpos-stack{ display:flex; flex-direction:column; gap:14px; min-width:0; }
.fbpos-card h3{ display:flex; align-items:center; gap:8px; }
.fbpos-scroll{ overflow-x:auto; -webkit-overflow-scrolling:touch; }
.fbpos-svg{ display:block; }

@media (min-width: 861px) {
  .fbpos-scroll{ overflow-x:visible; }
  .fbpos-svg{ max-width:100%; height:auto; }
}
.fbpos-ln, .fbpos-dt, .fbpos-lg{ transition:opacity .12s ease; cursor:pointer; }
.fbpos-hint{ margin-top:6px; font-size:10px; font-weight:700; color:var(--muted); }
.cmp-group-tabs{ margin-bottom:10px; }
.cmp-days{ display:flex; gap:5px; flex-wrap:wrap; margin-bottom:14px; }
.cmp-day{
  border:1px solid var(--line); background:var(--shell, #f4f6fa);
  border-radius:9px; min-width:34px; padding:6px 0;
  font-weight:800; font-size:12px; color:var(--muted);
  cursor:pointer; font-family:inherit;
}
.cmp-day:hover{ color:var(--brand-dark, #1d3f8f); border-color:#b9c8e2; }
.cmp-day.on{ background:var(--brand, #3984ff); border-color:var(--brand, #3984ff); color:#fff; }
.cmp-wrap{ display:flex; gap:16px; flex-wrap:wrap; align-items:flex-start; }
.cmp-col{ flex:1; min-width:300px; }
.cmp-match{
  background:var(--surface); border:1px solid var(--line); border-radius:11px;
  padding:8px 12px; margin-bottom:6px;
}
.cmp-match--click{ cursor:pointer; transition:border-color .12s, box-shadow .12s; }
.cmp-match--click:hover{ border-color:#c9d4e6; box-shadow:0 4px 14px rgba(15,39,68,.08); }
.cmp-match-row{ display:flex; align-items:center; gap:8px; font-size:12.5px; font-weight:700; }
.cmp-mt{ flex:1; display:flex; align-items:center; min-width:0; }
.cmp-mt--right{ justify-content:flex-end; }
.cmp-mt--right .fb-team{ flex-direction:row-reverse; }
.cmp-sc{
  background:var(--brand, #3984ff); color:#fff; border-radius:7px;
  padding:3px 10px; font-weight:900; white-space:nowrap; flex:none; font-size:12px;
}
.cmp-mnote{ margin-top:4px; font-size:10px; font-weight:700; color:var(--muted); }
.cmp-mnote--warn{ color:#b45309; }
.cmp-tbl{ width:100%; border-collapse:collapse; font-size:12px; }
.cmp-tbl th{
  font-size:9.5px; text-transform:uppercase; letter-spacing:.05em;
  color:var(--muted); text-align:left; padding:4px 8px;
}
.cmp-tbl th.num, .cmp-tbl td.num{ text-align:center; }
.cmp-tbl td{ padding:6px 8px; }
.cmp-mvup{ color:#0f9960; font-size:10.5px; font-weight:900; }
.cmp-mvdn{ color:#d33131; font-size:10.5px; font-weight:900; }
.cmp-mveq{ color:#94a3b8; font-size:10.5px; font-weight:900; }
@media (max-width:720px){
  .cmp-col{ min-width:100%; }
}

.odl-disc-main{
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.odl-disc-line{ min-width: 0; }
.disc-ctx--row{
  display: block;
  font-size: 11px;
}
.disc-ctx--row::before{ content: "› "; color: #b3c0d4; }

.pdet{ display:flex; flex-direction:column; gap:14px; }
.pdet-card{
  display:flex; align-items:center; gap:14px;
  background:var(--surface); border:1px solid var(--line); border-radius:14px;
  padding:14px 16px;
}
.pdet-card--contract b{ font-size:15px; display:block; }
.pdet-card--contract small{ color:var(--muted); font-weight:700; font-size:11.5px; }
.pdet-team-logo{ width:44px; height:44px; object-fit:contain; flex:none; }
.pdet-grid{
  display:grid; grid-template-columns:repeat(auto-fit, minmax(180px, 1fr)); gap:10px;
}
.pdet-fact{
  background:var(--surface); border:1px solid var(--line); border-radius:12px;
  padding:10px 14px; display:flex; flex-direction:column; gap:3px;
}
.pdet-fact span{
  font-size:9.5px; text-transform:uppercase; letter-spacing:.07em;
  color:var(--muted); font-weight:800;
}
.pdet-fact strong{ font-size:13.5px; }
.pdet-card--ca{
  justify-content:space-between; cursor:pointer; font-family:inherit;
  text-align:left; width:100%;
  background:linear-gradient(115deg, #f2f7ff, #e4eeff);
  border-color:#b9c8e2; transition:box-shadow .15s ease;
}
.pdet-card--ca:hover{ box-shadow:0 6px 16px rgba(57,132,255,.18); }
.pdet-ca-label{
  display:block; font-size:9.5px; text-transform:uppercase; letter-spacing:.08em;
  color:var(--muted); font-weight:800;
}
.pdet-ca-value{ font-size:30px; font-weight:900; color:var(--brand-dark, #1d3f8f); }
.pdet-ca-side{ display:flex; flex-direction:column; align-items:flex-end; gap:6px; }
.pdet-db-badge{
  background:var(--surface); border:1px solid #b9c8e2; border-radius:999px;
  padding:2px 10px; font-size:10px; font-weight:900; color:var(--brand-dark, #1d3f8f);
}
.pdet-ca-cta{ font-size:11.5px; font-weight:800; color:var(--brand, #3984ff); }

.pdet-capage{ display:flex; flex-direction:column; gap:14px; }
.pdet-ticker{
  display:flex; align-items:baseline; gap:12px;
  background:linear-gradient(115deg, #1d3f8f, #3984ff);
  border-radius:16px; color:#fff; padding:16px 20px;
}
.pdet-ticker > span:first-child{
  font-size:10px; text-transform:uppercase; letter-spacing:.12em; font-weight:900; color:#cfe0ff;
}
.pdet-ticker strong{ font-size:42px; font-weight:900; color:#ffd76a; line-height:1; }
.pdet-ticker .pdet-db-badge{ margin-left:auto; }
.pdet-milestones{ display:grid; grid-template-columns:repeat(auto-fit, minmax(160px, 1fr)); gap:10px; }
.pdet-delta--up{ color:#0f9960; }
.pdet-delta--dn{ color:#d33131; }
.pdet-delta--eq{ color:#94a3b8; }
.pdet-ca-scroll{
  background:var(--surface); border:1px solid var(--line); border-radius:14px;
  padding:12px 8px 6px; overflow-x:auto;
}
.pdet-ca-svg{ display:block; }

.stats-serie-cell{ white-space:nowrap; }
.serie-badge{
  display:inline-block; border-radius:999px; padding:2px 10px;
  font-size:9.5px; font-weight:900; letter-spacing:.04em; white-space:nowrap;
}
.serie-badge--a{ background:linear-gradient(135deg,#f6e7bd,#e9c766); color:#7c5806; border:1px solid #dcb84f; }
.serie-badge--b{ background:linear-gradient(135deg,#eef1f6,#cfd8e6); color:#4a5a74; border:1px solid #b9c5d8; }
.serie-badge--c{ background:linear-gradient(135deg,#f3e4d3,#dfba92); color:#7a4c1d; border:1px solid #cda87e; }
.serie-badge--d{ background:var(--chip, #e7ecf5); color:var(--muted); border:1px solid var(--line); }
.stats-tot{ color:var(--brand-dark, #1d3f8f); }
.stats-comp-subrow td{
  background:#f7f9fd;
  border-bottom:1px dashed var(--line);
  color:var(--muted);
  font-weight:700;
}
.stats-subrow-name{ padding-left:38px !important; }
.stats-subrow-logo{
  width:18px; height:18px; object-fit:contain; vertical-align:-4px; margin-right:8px;
}
.stats-subrow-logo--fallback{
  display:inline-block; border-radius:50%; background:#dfe6f2;
}

.profile-career-panel .stats-table thead th:nth-child(4){ text-align:left; }
@media (max-width:720px){
  .pdet-ticker strong{ font-size:32px; }
  
  .stats-subrow-name{ padding-left:20px !important; }
}

.stats-serie-logo{
  width: 26px;
  height: 26px;
  object-fit: contain;
  vertical-align: middle;
}

.fmtx-row{ cursor: pointer; }
.fmtx-row:hover td{ background: #f2f7ff; }
.fmtx-card{ cursor: pointer; }
.fmtxd-route{
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 10px 0 12px;
}
.fmtxd-route img{ width: 44px; height: 44px; object-fit: contain; }
.fmtxd-chips{ display: flex; gap: 6px; flex-wrap: wrap; justify-content: center; margin-bottom: 10px; }
.fmtxd-note{
  background: var(--shell, #f4f6fa);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 10px 14px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text, #0f1a2b);
  margin: 0;
}
.fmtxd-note--empty{ color: var(--muted); font-style: italic; }

.qdial {
  position: fixed;
  right: 16px;
  bottom: calc(16px + env(safe-area-inset-bottom, 0px));
  z-index: 4500;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
  pointer-events: none;
}
.qdial-main {
  pointer-events: auto;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  border: 2px solid #fff;
  background: linear-gradient(135deg, var(--brand), var(--brand-dark));
  color: #fff;
  font-size: 26px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 20px rgba(23, 59, 130, 0.42);
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.qdial-main:active { box-shadow: 0 4px 10px rgba(23, 59, 130, 0.4); }
.qdial--open .qdial-main { transform: rotate(45deg); }
.qdial-items {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
}
/* 19/09/2026 — fix "+ sparisce vicino al bordo alto": da chiuso, gli item
   nascosti (opacity:0) restavano comunque nel flusso del layout e
   facevano crescere il contenitore .qdial ben oltre i 54px del solo
   pulsante. Il posizionamento via drag presumeva un'altezza di soli
   54px: quando il menu si apriva verso l'alto (vicino al bordo
   superiore, classe .qdial--down, ordine invertito) lo spazio estra
   spingeva il pulsante fuori dallo schermo. Da chiuso, lo togliamo dal
   flusso (position:absolute) cosi' il contenitore torna alto quanto il
   solo pulsante; da aperto rientra nel flusso normale con l'animazione
   di sempre. */
.qdial:not(.qdial--open) .qdial-items {
  position: absolute;
  visibility: hidden;
}
.qdial-item {
  pointer-events: none;
  opacity: 0;
  transform: translateY(10px) scale(0.92);
  transition: opacity 0.16s ease, transform 0.16s ease;
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
}
.qdial--open .qdial-item { pointer-events: auto; opacity: 1; transform: none; }
.qdial--open .qdial-item:nth-last-child(1) { transition-delay: 0s; }
.qdial--open .qdial-item:nth-last-child(2) { transition-delay: 0.04s; }
.qdial--open .qdial-item:nth-last-child(3) { transition-delay: 0.08s; }
.qdial-label {
  background: var(--text);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  border-radius: 8px;
  padding: 4px 10px;
  white-space: nowrap;
  box-shadow: 0 4px 10px rgba(15, 26, 43, 0.25);
}
.qdial-bubble {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--surface);
  border: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 19px;
  box-shadow: 0 6px 14px rgba(15, 26, 43, 0.18);
}
.qdial-item--forum .qdial-bubble {
  background: linear-gradient(135deg, var(--brand), var(--brand-dark));
  border: none;
}

.rk-hint {
  color: var(--muted);
  font-size: 12.5px;
  margin: 4px 0 12px;
}
.rk-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
  box-shadow: var(--shadow);
  -webkit-overflow-scrolling: touch;
}
.rk-table {
  border-collapse: separate;
  border-spacing: 0;
  width: max-content;
  min-width: 100%;
  font-size: 13px;
}
.rk-table th,
.rk-table td {
  padding: 9px 10px;
  border-bottom: 1px solid var(--line);
  text-align: right;
  white-space: nowrap;
  background: var(--surface);
}
.rk-table thead th {
  background: var(--surface-2);
  color: var(--brand-dark);
  font-size: 11.5px;
  letter-spacing: 0.02em;
  position: sticky;
  top: 0;
  z-index: 3;
}
.rk-th-season { cursor: pointer; user-select: none; }
.rk-th-season:hover { text-decoration: underline; }
.rk-th--sorted { color: var(--brand); }
.rk-arrow { font-size: 8px; margin-left: 3px; }
.rk-sticky { position: sticky; z-index: 2; }
.rk-table thead .rk-sticky { z-index: 4; }
.rk-table .rk-sticky--pos { left: 0; width: 46px; min-width: 46px; text-align: right; }
.rk-table .rk-sticky--delta { left: 46px; width: 44px; min-width: 44px; text-align: center; padding-left: 4px; padding-right: 4px; }
.rk-table .rk-sticky--team {
  left: 90px;
  text-align: left;
  min-width: 190px;
  text-align: left;
  border-right: 1px solid var(--line);
  box-shadow: 6px 0 8px -6px rgba(20, 32, 51, 0.18);
}
.rk-table .rk-th-team, .rk-table thead .rk-sticky--team { text-align: left; }
.rk-pos { font-weight: 800; color: var(--brand-dark); }
.rk-team { display: flex; align-items: center; gap: 8px; font-weight: 700; }
.rk-team-name { overflow: hidden; text-overflow: ellipsis; }
.rk-logo {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  object-fit: contain;
  flex: none;
}
.rk-logo--fallback {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 9px;
  font-weight: 800;
}
.rk-val { cursor: pointer; font-variant-numeric: tabular-nums; }
.rk-val:hover { background: var(--surface-2); }
.rk-val--empty { cursor: default; color: var(--muted); }
.rk-col--now { background: #eef4ff !important; font-weight: 800; color: var(--brand-dark); }
td.rk-col--now { font-weight: 800; }
.rk-up { color: var(--success); font-weight: 800; }
.rk-down { color: #d33c4e; font-weight: 800; }
.rk-eq { color: var(--muted); }
.rk-new {
  background: var(--brand);
  color: #fff;
  border-radius: 6px;
  font-size: 9px;
  font-weight: 800;
  padding: 2px 5px;
}

.rkd-body { font-size: 13px; }
.rkd-formula { color: var(--muted); font-size: 12px; margin-bottom: 10px; }
.rkd-line {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 6px 0;
  border-bottom: 1px dashed var(--line);
}
.rkd-line b { color: var(--brand-dark); }
.rkd-line--sub { padding-left: 14px; color: var(--muted); font-size: 12px; }
.rkd-line--sum {
  border-bottom: none;
  font-weight: 800;
  background: var(--surface-2);
  border-radius: 10px;
  padding: 8px 10px;
  margin-top: 10px;
}
.rkd-chip {
  display: inline-block;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0 7px;
  font-size: 10px;
  color: var(--muted);
  margin-left: 4px;
}
@media (max-width: 720px) {
  .rk-table { font-size: 12px; }
  .rk-table th, .rk-table td { padding: 8px 8px; }
  .rk-table .rk-sticky--pos { width: 42px; min-width: 42px; padding-left: 6px; padding-right: 6px; }
  .rk-table .rk-sticky--delta { left: 42px; width: 38px; min-width: 38px; }
  
  .rk-table .rk-sticky--team { left: 80px; min-width: 54px; max-width: 54px; padding-left: 8px; padding-right: 8px; }
  .rk-team-name { display: none; }
  .rk-logo { width: 26px; height: 26px; }
}

.competition-logo--ranking {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--brand-dark, #1d3f8f);
}
.competition-logo--ranking svg {
  width: 62%;
  height: 62%;
}

.competition-grid--directory.ccdir { display: block; }
.ccdir-sec {
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 14px 2px 9px;
}
.ccdir-sec:first-child { margin-top: 2px; }
.ccdir-heroes {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 12px;
}
.ccdir-cups {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(128px, 1fr));
  gap: 10px;
}
.ccdir-tile {
  background: var(--surface);
  border: 1px solid var(--line);
  border-top: 3px solid var(--c1, var(--brand));
  border-radius: 14px;
  padding: 13px 8px 11px;
  text-align: center;
  cursor: pointer;
  box-shadow: 0 5px 14px rgba(31, 49, 79, 0.06);
  transition: transform 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease;
}
.ccdir-tile:hover,
.ccdir-tile:focus-visible {
  transform: translateY(-2px);
  border-color: var(--c1, var(--brand));
  box-shadow: 0 9px 20px rgba(31, 49, 79, 0.12);
}
.ccdir-tile-logo {
  width: 42px;
  height: 42px;
  object-fit: contain;
  display: block;
  margin: 0 auto 7px;
}
span.ccdir-tile-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--surface-2);
  font-weight: 800;
  font-size: 11px;
  color: var(--brand-dark);
}
.ccdir-tile strong {
  display: block;
  font-size: 12.5px;
  line-height: 1.2;
  color: var(--text);
}
.ccdir-tile small {
  display: block;
  color: var(--muted);
  font-size: 10px;
  margin-top: 3px;
}
.ccdir-tile-icon {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: #eef4ff;
  color: var(--brand-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 7px;
}
.ccdir-tile-icon svg { width: 24px; height: 24px; }
@media (max-width: 720px) {
  .ccdir-heroes { grid-template-columns: 1fr; gap: 9px; }
  .ccdir-cups { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
  .ccdir-tile { padding: 11px 6px 9px; }
  .ccdir-tile strong { font-size: 11.5px; }
}

.ccdir-cups--all {
  grid-template-columns: repeat(auto-fill, minmax(152px, 1fr));
  gap: 12px;
}
.ccdir-cups--all .ccdir-tile { padding: 16px 10px 13px; }
.ccdir-cups--all .ccdir-tile-logo,
.ccdir-cups--all .ccdir-tile-icon { width: 48px; height: 48px; margin-bottom: 9px; }
.ccdir-cups--all .ccdir-tile-icon svg { width: 27px; height: 27px; }
.ccdir-cups--all .ccdir-tile strong { font-size: 13.5px; min-height: 32px; display: flex; align-items: center; justify-content: center; }
@media (max-width: 720px) {
  .ccdir-cups--all { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
  .ccdir-cups--all .ccdir-tile strong { font-size: 12.5px; min-height: 30px; }
}

.rk-th-sq-short { display: none; }
.rk-table .rk-sticky--team { overflow: hidden; }
@media (max-width: 720px) {
  
  .rk-table:not(.rk-table--single) .rk-th-sq-full { display: none; }
  .rk-table:not(.rk-table--single) .rk-th-sq-short { display: inline; }
}
.rk-onebar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin: 2px 0 10px;
}
.rk-onebar-title {
  font-weight: 800;
  font-size: 14px;
  color: var(--brand-dark);
}
.rk-onebar-full {
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--brand-dark);
  border-radius: 999px;
  padding: 7px 13px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease;
}
.rk-onebar-full:hover { border-color: var(--brand); background: var(--surface-2); }

.rk-table--single { width: 100%; }
.rk-table--single .rk-th-season,
.rk-table--single td.rk-val { width: 110px; }
@media (max-width: 720px) {
  .rk-table--single .rk-sticky--team {
    min-width: 0;
    max-width: none;
    width: auto;
  }
  .rk-table--single .rk-team-name {
    display: inline;
    max-width: 150px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .rk-table--single .rk-th-season,
  .rk-table--single td.rk-val { width: 84px; }
}

.rk-table .rk-sticky--dtot {
  left: 46px;
  width: 44px;
  min-width: 44px;
  text-align: center;
  padding-left: 4px;
  padding-right: 4px;
}
.rk-table .rk-sticky--delta { left: 90px; }
.rk-table .rk-sticky--team { left: 134px; }

.rk-table--single .rk-sticky--delta { left: 46px; }
.rk-table--single .rk-sticky--team { left: 90px; }
@media (max-width: 720px) {
  .rk-table .rk-sticky--dtot { left: 42px; width: 38px; min-width: 38px; }
  .rk-table .rk-sticky--delta { left: 80px; }
  .rk-table .rk-sticky--team { left: 118px; }
  .rk-table--single .rk-sticky--delta { left: 42px; }
  .rk-table--single .rk-sticky--team { left: 80px; }
}

.rk-single-duo {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  align-items: start;
}
.rk-single-mono { display: none; }
@media (max-width: 860px) {
  .rk-single-duo { display: none; }
  .rk-single-mono { display: block; }
  .rk-single-mono .rk-wrap {
    max-height: calc(100vh - 235px);
    max-height: calc(100dvh - 235px);
    min-height: 300px;
    overflow-y: auto;
  }
}

.crk-panel .section-heading { margin-bottom: 10px; }
.crk-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.crk-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 14px;
  text-align: left;
  cursor: pointer;
  box-shadow: 0 6px 18px rgba(31, 49, 79, 0.07);
  transition: transform 0.16s ease, border-color 0.16s ease;
  display: block;
  width: 100%;
}
.crk-card:hover { transform: translateY(-2px); border-color: var(--brand); }
.crk-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: var(--muted);
  margin-bottom: 8px;
}
.crk-chev { color: var(--brand); font-size: 16px; }
.crk-kpis { display: flex; gap: 10px; align-items: baseline; margin-bottom: 6px; flex-wrap: wrap; }
.crk-big { font-size: 24px; font-weight: 800; color: var(--brand-dark); }
.crk-big--camp { font-size: 15px; }
.crk-lab { font-size: 10.5px; color: var(--muted); }
.crk-spark { width: 100%; height: 84px; display: block; }
.crk-axis {
  display: flex;
  justify-content: space-between;
  color: var(--muted);
  font-size: 9px;
  margin-top: 3px;
}
.crk-axis--full span { flex: 1; text-align: center; }
.crk-hint { display: block; color: var(--muted); font-size: 10px; margin-top: 8px; text-align: center; }
.crk-empty { color: var(--muted); font-size: 12px; padding: 22px 0; text-align: center; }

.fmto-modal--crk { max-width: 760px; width: calc(100% - 32px); }
.crkd-svg { width: 100%; height: 230px; display: block; }
/* piramide "Andamento posizioni": scala in modo uniforme (meet), niente
   altezza fissa → nessuno stiramento, ottima sia su PC sia su mobile. */
.lpyr-svg { width: 100%; height: auto; display: block; }
.crkd-sub { font-size: 10.5px; font-weight: 800; letter-spacing: 0.06em; color: var(--muted); margin: 10px 0 4px; }
.crkd-legend { display: flex; gap: 14px; flex-wrap: wrap; font-size: 10.5px; color: var(--muted); margin-top: 8px; }
.crkd-legend i { display: inline-block; width: 14px; height: 3px; border-radius: 2px; margin-right: 4px; vertical-align: middle; }
.crkd-legend-dash { opacity: 0.75; }

/* la piramide (crkd-uno) e il ranking (crkd-due) ora sono impilati e
   visibili su tutti i dispositivi: la piramide non ha più bisogno di
   essere nascosta su mobile. */
.crkd-due { display: block; margin-top: 14px; }
@media (max-width: 720px) {

  .crk-grid { grid-template-columns: 1fr; gap: 8px; }
  .crk-card .crk-spark,
  .crk-card .crk-axis,
  .crk-card .crk-hint { display: none; }
  .crk-card { padding: 12px 14px; }
  .crk-kpis { margin-bottom: 0; }
  .crk-big { font-size: 19px; }

  .crk-axis--full span { font-size: 7.5px; }
}

.fmto-dev-fab {
  right: 19px; 
  bottom: calc(16px + 54px + 12px + env(safe-area-inset-bottom, 0px));
  z-index: 4400;
}

.nav-acc { margin: 1px 0; }
.nav-acc-head {
  width: 100%;
  min-height: 44px;
  border: 0;
  border-radius: 11px;
  background: transparent;
  color: var(--fmto-sidebar-text, #526176);
  text-align: left;
  padding: 8px 10px;
  cursor: pointer;
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  font: inherit;
  font-weight: 700;
  transition: background-color 0.15s ease, color 0.15s ease;
}
.nav-acc-head:hover {
  background: var(--fmto-sidebar-hover, #f5f7fa);
  color: var(--fmto-sidebar-text-strong, #172033);
}
.nav-acc.has-active .nav-acc-head {
  color: var(--fmto-sidebar-text-strong, #172033);
  box-shadow: inset 3px 0 0 var(--fmto-sidebar-accent, #2563eb);
  background: var(--fmto-sidebar-active, #eef2f7);
}
.nav-acc-chev {
  font-size: 10px;
  opacity: 0.65;
  transition: transform 0.16s ease;
}
.nav-acc.open .nav-acc-chev { transform: rotate(180deg); }
.nav-acc-body { display: none; }
.nav-acc.open .nav-acc-body {
  display: block;
  margin: 2px 0 6px 24px;
  border-left: 2px solid var(--fmto-sidebar-border, #e5eaf1);
  padding-left: 6px;
}
.nav-acc.open .nav-acc-body .nav-item {
  min-height: 38px;
  padding: 6px 9px;
  font-size: 12.5px;
}

.sidebar.sidebar--collapsed .nav-acc-head { display: none; }
.sidebar.sidebar--collapsed .nav-acc-body {
  display: block !important;
  margin: 0;
  border-left: none;
  padding-left: 0;
}

.area-mister-button {
  height: 41px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 0 15px;
  border: none;
  border-radius: 11px;
  background: linear-gradient(135deg, #ff3b2f, #b01111);
  color: #fff;
  font: inherit;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 6px 16px rgba(176, 17, 17, 0.35);
  transition: transform 0.15s ease, box-shadow 0.15s ease, filter 0.15s ease;
}
.area-mister-button:hover { transform: translateY(-1px); filter: saturate(1.12); }
.area-mister-button.is-active {
  box-shadow: 0 6px 16px rgba(176, 17, 17, 0.35), inset 0 0 0 2px rgba(255, 255, 255, 0.55);
  filter: brightness(1.08);
}

.area-mister-button--dev-only { outline: none; }
.amb-icon { display: inline-flex; }
.amb-icon svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}
@media (max-width: 600px) {
  
  .area-mister-button { width: 41px; padding: 0; }
  .area-mister-button .amb-label { display: none; }
}

.version--clickable { cursor: pointer; text-decoration: underline dotted; text-underline-offset: 3px; }
.version--clickable:hover { color: var(--brand, #2563eb); }
.clg-line {
  display: flex;
  gap: 10px;
  padding: 8px 0;
  border-bottom: 1px dashed var(--line);
  font-size: 13px;
  align-items: baseline;
}
.clg-line:last-child { border-bottom: none; }
.clg-date {
  flex: none;
  font-weight: 800;
  color: var(--brand-dark, #173b82);
  font-size: 11px;
  background: var(--surface-2, #eef3f9);
  border-radius: 7px;
  padding: 2px 7px;
}

.transfer-desk{ grid-template-columns: minmax(0, 1fr); }
.transfer-desk > *{ min-width: 0; max-width: 100%; }
@media (max-width: 700px){
  .transfer-metrics{ grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .transfer-toolbar > *{ min-width: 0; max-width: 100%; }
}

.qdial-ic{ width: 21px; height: 21px; display: block; }
.qdial-item--telegram .qdial-bubble{
  background: #229ed9;
  border: none;
  color: #fff;
}
.qdial-item--rules .qdial-bubble{ color: var(--brand-dark); }

.qdial-main{ touch-action: none; }
.qdial--dragging .qdial-main{
  cursor: grabbing;
  transition: none;
  box-shadow: 0 12px 26px rgba(23, 59, 130, 0.5);
}
.qdial--dragging .qdial-items{ visibility: hidden; }

.qdial--down{ flex-direction: column-reverse; }
.qdial-tab{
  position: fixed;
  z-index: 4500;
  width: 16px;
  height: 58px;
  border: none;
  padding: 0;
  background: rgba(29, 63, 143, 0.55);
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}
.qdial-tab span{
  transform: rotate(-90deg);
  font-size: 8.5px;
  font-weight: 800;
  letter-spacing: 0.08em;
}
.qdial-tab--left{ left: 0; border-radius: 0 9px 9px 0; }
.qdial-tab--right{ right: 0; border-radius: 9px 0 0 9px; }
.qdial-tab:hover{ background: rgba(29, 63, 143, 0.8); }

@media (max-width: 720px){
  body.fmto-club-view-active .topbar{
    display: none !important;
  }
  body.fmto-club-view-active .main,
  body.fmto-club-view-active.fmto-sidebar-collapsed .main{
    padding-top: calc(72px + env(safe-area-inset-top, 0px)) !important;
  }

  .club-kpi-domain{ padding: 10px; }
  .club-kpi-domain__heading{ margin-bottom: 8px; }
  .club-kpi-domain__heading h2{ font-size: 15px; }
  .club-kpi-domain__heading > span{ display: none; }
  .club-domain-primary{
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
  }
  .club-domain-primary--roster .club-roster-kpi:nth-child(3),
  .club-domain-primary--finance .club-roster-kpi:nth-child(3){
    grid-column: auto;
  }
  .club-command-overview .club-roster-kpi.is-primary{
    min-height: 58px;
    padding: 8px 8px 7px;
    gap: 3px;
    border-radius: 11px;
  }
  .club-command-overview .club-roster-kpi.is-primary > span{
    font-size: 8px;
    line-height: 1.2;
  }
  .club-command-overview .club-roster-kpi.is-primary > strong{
    margin-top: 2px;
    font-size: 19px;
  }
  .club-command-overview .club-roster-kpi.is-primary > small{
    margin-top: 1px;
    font-size: 7.5px;
  }

  .club-market-moves{
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
    margin-top: 7px;
  }
  .club-move-group{ padding: 7px; border-radius: 11px; }
  .club-move-group > summary{
    min-height: 18px;
    padding: 0 1px 5px;
    font-size: 8px;
  }
  .club-move-group > summary b{
    min-width: 18px;
    height: 18px;
    font-size: 9px;
  }
  .club-move-grid{
    grid-template-columns: 1fr;
    gap: 4px;
    padding-top: 0;
  }
  .club-command-overview .club-roster-kpi.is-micro{
    min-height: 30px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 6px;
    padding: 4px 8px;
    border-radius: 9px;
  }
  .club-command-overview .club-roster-kpi.is-micro > span{
    font-size: 8px;
    line-height: 1.2;
  }
  .club-command-overview .club-roster-kpi.is-micro > strong{
    margin-top: 0;
    font-size: 14px;
  }

  .club-command-overview .club-roster-kpi.is-secondary{
    min-height: 56px;
    padding: 7px 8px;
  }
  .club-command-overview .club-roster-kpi.is-secondary > strong{ font-size: 15px; }
}

.club-roster-kpi.is-band{ display: none; }
@media (min-width: 721px){
  
  .club-command-overview{ align-items: start; }
  .club-domain-primary--roster{ grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .club-roster-kpi.is-band{ display: flex; }
  .club-command-overview .club-roster-kpi.is-band > strong{
    display: flex;
    align-items: baseline;
    gap: 4px;
    flex-wrap: wrap;
    font-size: 15px;
    letter-spacing: 0;
  }
  .club-roster-kpi.is-band > strong b{ color: #315fbe; font-weight: 900; }
  .club-roster-kpi.is-band > strong b.is-at-limit{ color: #d97706; }
  .club-roster-kpi.is-band > strong b.is-over-limit{ color: #dc2626; }
  .club-roster-kpi.is-band > strong i{ font-style: normal; color: #8fa0ba; font-weight: 700; }
  .club-command-overview .club-market-moves{ display: none; }

  .club-finance-secondary{ grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; }
  .club-command-overview .club-roster-kpi.is-secondary{
    min-height: 64px;
    padding: 9px 8px;
  }
  .club-command-overview .club-roster-kpi.is-secondary > span{ font-size: 7px; min-height: 0; }
  .club-command-overview .club-roster-kpi.is-secondary > strong{ font-size: 13px; }
  .club-command-overview .club-roster-kpi.is-secondary > small{ font-size: 6.5px; }
}

.overview-board{
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  align-items: start;
  margin: 4px 0 18px;
}
.ovr-cell{ min-width: 0; }

.overview-board .overview-deadlines{ display: block; margin: 0; }
.overview-board .overview-discipline{ margin: 0; }
.ovr-cell--transfers{ grid-column: 1 / -1; }
.overview-board .odl-box{ height: 100%; box-sizing: border-box; }
.ovr-up-g{ flex: 0 0 auto; font-weight: 700; font-size: 11.5px; color: var(--muted); }

.ovr-block{ margin-bottom: 4px; }
.ovr-block__head{
  margin: 8px 0 2px;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: var(--muted);
}
.ovr-block:first-of-type .ovr-block__head{ margin-top: 0; }
.ovr-row{ padding: 6.5px 0; }
.ovr-teams{
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 600;
}
.ovr-score{ flex: 0 0 auto; font-weight: 900; color: var(--brand-dark); }
.ovr-score--win{ color: #15803d; }
.ovr-score--lose{ color: #dc2626; }

.odl-row--today b{ color: #b91c1c; }
.odl-when--today{ color: #b91c1c; font-weight: 900; letter-spacing: .05em; font-size: 11px; }

@media (max-width: 860px){
  .overview-board{ grid-template-columns: 1fr; gap: 10px; }
  .ovr-cell--results{ order: 1; }
  .ovr-cell--upcoming{ order: 2; }
  .ovr-cell--deadlines{ order: 3; }
  .ovr-cell--transfers{ order: 5; grid-column: auto; }
  .ovr-cell--discipline{ order: 4; }
  .overview-board .odl-box{ height: auto; }
}

.fmto-dev-row-copy strong{ color: var(--text, #142033); }
.fmto-dev-row-copy small{ color: var(--muted, #66758d); }

.analysis-grid{ grid-template-columns: 1fr; }
#analysisDetail{ display: none; }

.anls-topbar{
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 12px;
}
.anls-count{ margin-left: auto; color: var(--muted); font-size: 12px; font-weight: 700; }

.anls-table-scroll{
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
}
.anls-table{
  width: 100%;
  min-width: 780px;
  border-collapse: collapse;
  font-size: 12.5px;
}
.anls-table thead th{
  position: sticky;
  top: 0;
  z-index: 2;
  background: var(--brand-dark);
  color: #fff;
  text-align: right;
  padding: 9px 12px;
  font-size: 10px;
  letter-spacing: .05em;
  white-space: nowrap;
  cursor: pointer;
  user-select: none;
}
.anls-table thead th:hover{ background: #1e3a8a; }
.anls-table thead th:nth-child(1),
.anls-table thead th:nth-child(2){ text-align: left; }
.anls-table tbody td{
  padding: 8px 12px;
  border-bottom: 1px solid var(--line);
  text-align: right;
  white-space: nowrap;
  font-weight: 700;
}
.anls-table tbody td:nth-child(1),
.anls-table tbody td:nth-child(2){ text-align: left; }
.anls-table tbody tr{ cursor: pointer; }
.anls-table tbody tr:nth-child(even){ background: var(--surface-2); }
.anls-table tbody tr:hover td{ background: #eef4ff; }
.anls-td-rank{ color: var(--muted); font-weight: 900; width: 34px; }
.anls-td-score b{ color: var(--brand-dark); font-weight: 900; margin-right: 8px; }
.anls-td-score .anls-bar{ display: inline-block; vertical-align: middle; width: 64px; }
.anls-weak{
  display: inline-block;
  background: #fef2f2;
  color: #b91c1c;
  border-radius: 6px;
  padding: 1px 7px;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.anls-map-wrap{
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
  padding: 6px;
}
.anls-map{ display: block; width: 100%; height: auto; }
.anls-map-pt{ cursor: pointer; }
.anls-map-pt:hover circle{ stroke: var(--brand); stroke-width: 2.5; }
.anls-map-hint{ margin: 8px 2px 0; color: var(--muted); font-size: 11px; font-weight: 700; }

.anls-report-head{
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 10px 0 14px;
}
.anls-report-head .transfer-team-logo,
.anls-report-head .transfer-team-fallback{ width: 46px; height: 46px; }
.anls-report-title h2{ margin: 2px 0 0; }
.anls-report-score{
  margin-left: auto;
  text-align: right;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 8px 14px;
  background: var(--surface);
}
.anls-report-score span{
  display: block;
  font-size: 9px;
  font-weight: 900;
  letter-spacing: .08em;
  color: var(--muted);
  text-transform: uppercase;
}
.anls-report-score b{ font-size: 21px; color: var(--brand-dark); }
.anls-report-grid{
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  margin-bottom: 16px;
}
.anls-card{
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
  padding: 12px 14px;
}
.anls-card h4{
  margin: 0 0 10px;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .08em;
  color: var(--muted);
  text-transform: uppercase;
}
.anls-radar-duo{ display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }
.anls-radar{ width: 150px; height: 150px; flex: 0 0 auto; }
.anls-sec-rows{ flex: 1 1 160px; min-width: 0; }
.anls-sec-row{
  display: flex;
  align-items: baseline;
  gap: 8px;
  padding: 5px 0;
  border-bottom: 1px solid var(--line);
  font-size: 12px;
}
.anls-sec-row:last-child{ border-bottom: none; }
.anls-sec-row span{ width: 36px; font-size: 10px; font-weight: 900; color: var(--muted); }
.anls-sec-row b{ font-weight: 900; color: var(--brand-dark); }
.anls-d{ margin-left: auto; font-style: normal; font-size: 10.5px; font-weight: 800; color: var(--muted); }
.anls-d--up{ color: #15803d; }
.anls-d--down{ color: #dc2626; }
.anls-kpis--report{ margin-top: 0; }
.anls-verdict-line{
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 10px;
}
.anls-buy{ font-size: 12px; color: var(--muted); font-weight: 700; }
.anls-buy b{ color: var(--brand-dark); }
.anls-xi-heading{ margin-top: 4px; }

@media (max-width: 860px){
  .anls-report-grid{ grid-template-columns: 1fr; }
  .anls-report-score b{ font-size: 18px; }
  .anls-table{ font-size: 11.5px; min-width: 720px; }
}

.overview-hero-manager-btn:hover{ transform: translateY(-50%); }
@media (max-width: 859px){
  .overview-hero-manager-btn:hover{ transform: none; }
}

#clubDetail.club-focus-next-roster > #clubRankingSection{
  display: none !important;
}
.club-next-market{ margin-top: 18px; }
.club-next-market .club-market-row{ cursor: default; }

.club-next-right{
  display: flex;
  flex-direction: column;
  gap: 18px;
  min-width: 0;
}
.club-next-right .club-next-market{ margin-top: 0; }
.club-next-market .club-market-ops{
  max-height: 520px;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding-right: 4px;
}

.rvx2{ display: flex; }
.rvx2-seg{
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  text-align: center;
  padding: 6px 4px 4px;
  border-right: 1px solid var(--line);
}
.rvx2-seg:last-child{ border-right: none; }
.rvx2-ico{ font-size: 15px; line-height: 1; }
.rvx2-val{
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 4px;
  font-size: 22px;
  font-weight: 900;
  line-height: 1;
  color: var(--brand-dark);
}
.rvx2-val i{ font-style: normal; font-weight: 700; font-size: 14px; color: #8fa0ba; }
.rvx2-val b{ font-weight: 900; color: inherit; }
.rvx2-val--squad{ color: #2563eb; }
.rvx2-val--reserve{ color: #64748b; }
.rvx2-val--under{ color: #d97706; }
.rvx2-val--move{ color: #315fbe; font-size: 19px; }
.rvx2-val.is-at-limit, .rvx2-val b.is-at-limit{ color: #d97706; }
.rvx2-val.is-over-limit, .rvx2-val b.is-over-limit{ color: #dc2626; }
.rvx2-lbl{
  font-size: 8px;
  font-weight: 900;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: var(--muted);
  max-width: 100%;
  line-height: 1.15;
}
@media (max-width: 720px){
  .rvx2{ display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px 0; }
  .rvx2-seg:nth-child(3){ border-right: none; }
  .rvx2-lbl{ white-space: normal; line-height: 1.15; }
}

.club-market-ops{ margin-top: 4px; }
.club-market-ops .tr-op{
  background: transparent;
  border: none;
  border-left: 3px solid var(--brand);
  border-radius: 0;
  overflow: visible;
  margin: 0 0 14px 5px;
  padding: 0 0 2px 10px;
  position: relative;
}
.club-market-ops .tr-op::before{
  content: "";
  position: absolute;
  left: -7.5px;
  top: 1px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--brand);
  border: 2px solid #f4f6fa;
}
.club-market-ops .tr-op__head{
  background: transparent;
  color: var(--brand);
  padding: 0 0 6px;
  font-size: 10px;
  letter-spacing: 0.06em;
}
.club-market-ops .tr-op__count{ color: var(--muted); opacity: 1; }
.club-market-ops .tr-row{
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 5px 7px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 7px 9px;
  margin-bottom: 7px;
}
.club-market-ops .tr-row:nth-child(odd){ background: var(--surface); }
.club-market-ops .tr-row:last-child{ margin-bottom: 0; }
.club-market-ops .tr-row > *{ min-width: 0; }
.club-market-ops .tr-player{
  order: 1;
  width: 100%;
  gap: 7px;
}
.club-market-ops .tr-player .transfer-player-face{
  width: 26px;
  height: 26px;
  flex: 0 0 auto;
  border-radius: 8px;
}
.club-market-ops .tr-player__copy b{
  font-size: 12.5px;
  white-space: nowrap;
  display: block;
  -webkit-line-clamp: unset;
  overflow: hidden;
  text-overflow: ellipsis;
}
.club-market-ops .tr-player__copy small{ font-size: 9.5px; }
.club-market-ops .tr-club{
  flex-direction: row;
  align-items: center;
  gap: 5px;
  text-align: left;
}
.club-market-ops .tr-club--seller{ order: 2; }
.club-market-ops .tr-arrow{ order: 3; font-size: 13px; }
.club-market-ops .tr-club--buyer{ order: 4; }
.club-market-ops .tr-cr--mobile{
  order: 5;
  margin-left: auto;
  display: flex;
  justify-content: flex-end;
}
.club-market-ops .tr-club--buyer .tr-cr-pay{ display: none; }
.club-market-ops .tr-club .transfer-team-logo,
.club-market-ops .tr-club .transfer-team-fallback{
  width: 18px;
  height: 18px;
}
.club-market-ops .tr-club__copy{ align-items: flex-start; }
.club-market-ops .tr-club em{
  display: block;
  font-size: 10px;
  font-weight: 700;
  max-width: 110px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.club-market-ops .tr-club-id{ display: none; }
.club-market-ops .tr-extra{
  order: 6;
  width: 100%;
  justify-content: flex-start;
}

.rvx2-val{ white-space: nowrap; }
.rvx2--finance .rvx2-val{ font-size: 16px; }
@media (min-width: 721px){
  
  .club-command-overview{ grid-template-columns: minmax(0, 6fr) minmax(0, 8fr); }
}
.rvx2--finance .rvx2-val em{
  font-style: normal;
  font-weight: 800;
  font-size: 9px;
  letter-spacing: .04em;
  color: #8fa0ba;
}
.rvx2-val--wage{ color: #0f766e; }
.rvx2-val--delta{ color: #475569; }
.rvx2-val--credit{ color: #1e3a8a; }
.rvx2-val--market{ color: #1e3a8a; font-size: 15px; }
.rvx2--finance .rvx2-val--market b.positive{ color: #15803d; }
.rvx2--finance .rvx2-val--market b.negative{ color: #dc2626; }
.rvx2-val.is-positive{ color: #15803d; }
.rvx2-val.is-negative{ color: #dc2626; }
@media (max-width: 720px){
  .rvx2--finance{ grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .rvx2--finance .rvx2-seg:nth-child(3){ border-right: 1px solid var(--line); }
  .rvx2--finance .rvx2-seg:nth-child(4){ border-right: none; }
  .rvx2--finance .rvx2-val{ font-size: 15px; }
  .rvx2--finance .rvx2-val--market{ font-size: 13px; }
}

#clubTransferSummary .club-market-ops{
  max-height: 520px;
  overflow-y: auto;
}
@media (min-width: 901px){
  .club-roster-split--main{
    grid-template-rows: auto auto auto;
    align-items: stretch;
  }
  .club-roster-split--main > .playable-roster{ grid-column: 1; grid-row: 1 / 3; }
  .club-roster-split--main > .reserve-roster{ grid-column: 2; grid-row: 1; }
  .club-roster-split--main > #clubHonoursSection{ grid-column: 1; grid-row: 3; }
  .club-roster-split--main > #clubTransferSummary{
    grid-column: 2;
    grid-row: 2 / 4;
    display: flex;
    flex-direction: column;
    min-height: 0;
  }
  .club-roster-split--main > #clubTransferSummary .club-market-ops{
    flex: 1 1 0;
    min-height: 0;
    max-height: none;
  }
}

@media (min-width: 901px){
  .club-next-roster-split{ align-items: stretch; }
  .club-next-right{ min-height: 0; }
  .club-next-right .club-next-market{
    display: flex;
    flex-direction: column;
    flex: 1 1 0;
    min-height: 0;
  }
  .club-next-right .club-next-market .club-market-ops{
    flex: 1 1 0;
    min-height: 0;
    max-height: none;
  }
}

.crk-grid{
  grid-template-columns: repeat(2, minmax(0, 420px));
  justify-content: center;
}
.crk-spark{ height: auto; }
.crk-pills{ display: flex; gap: 8px; margin: 10px 0 6px; }
.crk-pill{
  flex: 1;
  min-width: 0;
  text-align: center;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 8px 4px;
  background: var(--surface);
}
.crk-pill span{
  display: block;
  font-size: 9.5px;
  font-weight: 800;
  letter-spacing: .05em;
  color: #8fa0ba;
}
.crk-pill b{
  display: inline-block;
  font-size: 10px;
  font-weight: 900;
  color: #fff;
  border-radius: 999px;
  padding: 2px 10px;
  margin-top: 4px;
  white-space: nowrap;
}
.crk-note{
  text-align: center;
  color: #8fa0ba;
  font-size: 10.5px;
  padding: 6px;
  background: #f6f9fd;
  border-radius: 8px;
}
@media (max-width: 720px){
  
  .crk-card .crk-pills,
  .crk-card .crk-note{ display: none; }
}

.crk-card{
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
}
.crk-card .crk-hint{ margin-top: auto; padding-top: 8px; }

.hof-ranking-search{
  position: relative;
  margin: 14px 0 16px;
}
.hof-ranking-search__icon{
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 16px;
  height: 16px;
  fill: none;
  stroke: #a5822a;
  stroke-width: 2;
  stroke-linecap: round;
  pointer-events: none;
}
.hof-ranking-search__input{
  width: 100%;
  box-sizing: border-box;
  padding: 11px 14px 11px 38px;
  border: 1px solid #d8cbb2;
  border-radius: 10px;
  background: #fffdf8;
  color: #2a2118;
  font-family: var(--font-serif);
  font-size: 14px;
}
.hof-ranking-search__input::placeholder{ color: #a89a7d; }
.hof-ranking-search__input:focus{
  outline: none;
  border-color: #b08d3e;
  box-shadow: 0 0 0 3px rgba(176,141,62,.15);
}
.hof-ranking-pager{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px dotted #d8cbb2;
}
.hof-ranking-pager__btn{
  flex: 0 0 auto;
  border: 1px solid #d8cbb2;
  background: #f5eddf;
  color: #8a6a22;
  font-family: var(--font-serif);
  font-size: 12.5px;
  font-weight: 700;
  padding: 8px 14px;
  border-radius: 999px;
  cursor: pointer;
  transition: background .15s ease, color .15s ease, border-color .15s ease;
}
.hof-ranking-pager__btn:hover:not(:disabled),
.hof-ranking-pager__btn:focus-visible:not(:disabled){
  background: #2a2118;
  border-color: #2a2118;
  color: #e8c97a;
  outline: none;
}
.hof-ranking-pager__btn:disabled{
  opacity: .4;
  cursor: default;
}
.hof-ranking-pager__label{
  flex: 1 1 auto;
  text-align: center;
  color: #7a6c55;
  font-size: 12px;
  font-weight: 600;
}
@media (max-width: 599px){
  .hof-ranking-pager{ flex-wrap: wrap; }
  .hof-ranking-pager__label{ order: -1; flex-basis: 100%; margin-bottom: 4px; }
}

#archivioView{ padding: 0; }
.ag-shell{
  border-radius: 18px;
  overflow: hidden;
  background: #1f2b20;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.09);
  min-height: 80px;
}
.ag-empty{
  margin: 0;
  padding: 30px;
  font-family: var(--font-title);
  font-weight: 600;
  font-size: 15px;
  color: #c7cdae;
}
.ag-grid{
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 2px;
  background: #1f2b20;
}
.ag-tile{
  appearance: none;
  border: 0;
  cursor: pointer;
  background: #f3f1ea;
  color: #1f2b20;
  padding: 26px 14px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  text-align: center;
  transition: background 0.15s ease, transform 0.15s ease;
}
.ag-tile:hover{
  background: #eef0c8;
}
.ag-tile:active{
  transform: scale(0.98);
}
.ag-tile__icon{
  width: 34px;
  height: 34px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  background: #1f2b20;
  color: #eef0c8;
}
.ag-tile__icon svg{
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.ag-tile__name{
  font-family: var(--font-title);
  font-weight: 800;
  font-size: 19px;
  letter-spacing: -0.01em;
  line-height: 1;
}
.ag-tile__status{
  font-family: var(--font-title);
  font-weight: 600;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #7d8578;
}
.ag-tile--current{
  background: #1f2b20;
  color: #eef0c8;
}
.ag-tile--current .ag-tile__icon{
  background: #eef0c8;
  color: #1f2b20;
}
.ag-tile--current .ag-tile__status{
  color: #c7cdae;
}
.ag-tile--current:hover{
  background: #26351f;
}

.ag-crumb{
  padding: 18px 30px 0;
  font-family: var(--font-title);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #c7cdae;
  display: flex;
  align-items: center;
  gap: 6px;
}
.ag-crumb__back{
  appearance: none;
  border: 0;
  background: none;
  padding: 0;
  cursor: pointer;
  color: #c7cdae;
  font: inherit;
  letter-spacing: inherit;
  text-transform: inherit;
}
.ag-crumb__back:hover{
  color: #eef0c8;
}
.ag-crumb__here{
  color: #eef0c8;
}
.ag-hero{
  margin: 12px 30px 0;
  padding: 22px 26px;
  border-radius: 12px;
  background: rgba(238, 240, 200, 0.06);
  color: #eef0c8;
}
.ag-hero__season{
  font-family: var(--font-title);
  font-weight: 800;
  font-size: 40px;
  letter-spacing: -0.01em;
  line-height: 1;
  margin: 0;
}
.ag-hero__meta{
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 8px;
  font-family: var(--font-title);
  font-weight: 600;
  font-size: 14px;
  color: #c7cdae;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.ag-hero__pill{
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(238, 240, 200, 0.14);
  border: 1px solid rgba(238, 240, 200, 0.28);
}
.ag-groups{
  padding: 22px 30px 30px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
@media (max-width: 900px){
  .ag-groups{ grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px){
  .ag-groups{ grid-template-columns: 1fr; }
  .ag-grid{ grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); }
}
.ag-group{
  appearance: none;
  cursor: pointer;
  background: #f3f1ea;
  border: 1px solid #e2ddca;
  border-radius: 12px;
  padding: 18px 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 10px;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}
.ag-group:hover{
  border-color: #1f2b20;
  box-shadow: 0 10px 24px rgba(31, 43, 32, 0.12);
  transform: translateY(-2px);
}
.ag-group__icon{
  width: 36px;
  height: 36px;
  border-radius: 9px;
  background: #1f2b20;
  color: #eef0c8;
  display: grid;
  place-items: center;
}
.ag-group__icon svg{
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.ag-group__title{
  font-family: var(--font-title);
  font-weight: 800;
  font-size: 18px;
  color: #1f2b20;
  letter-spacing: -0.01em;
}
.ag-group__note{
  display: block;
  font-family: "Inter", sans-serif;
  font-weight: 500;
  font-size: 10.5px;
  text-transform: none;
  letter-spacing: 0;
  color: #a3401f;
  margin-top: 2px;
}

/* 25/09/2026 — Carriera Mister: nome cliccabile (anagrafica Mister + Club
   Hub) e contenuto del drawer con lo storico squadre/trofei. Scoped sotto
   .manager-name-link / .mgr-career-*, nessuna classe esistente toccata. */
.manager-name-link{
  appearance: none;
  border: none;
  background: none;
  padding: 0;
  margin: 0;
  font: inherit;
  color: inherit;
  cursor: pointer;
  text-decoration: underline;
  text-decoration-color: transparent;
  text-underline-offset: 2px;
  transition: text-decoration-color .15s ease, color .15s ease;
}
.manager-name-link:hover,
.manager-name-link:focus-visible{
  color: #0b5fad;
  text-decoration-color: currentColor;
}
.mgr-career{
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.mgr-career__head{
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.mgr-career__head h2{
  margin: 0;
  font-size: 22px;
}
.mgr-career__chips{
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.mgr-career__stats{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
.mgr-career__stats > div{
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 10px 12px;
  border-radius: 12px;
  background: var(--surface-2, #eef3f9);
  text-align: center;
}
.mgr-career__stats strong{
  font-size: 20px;
  color: var(--text, #142033);
}
.mgr-career__stats span{
  font-size: 11.5px;
  color: var(--muted, #66758d);
  text-transform: uppercase;
  letter-spacing: .02em;
}
.mgr-career__section{
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.mgr-career-tenures,
.mgr-career-trophies{
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.mgr-career-tenure,
.mgr-career-trophy{
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 12px;
  background: var(--surface);
  border: 1px solid var(--line, #e3e9f2);
}
.mgr-career-tenure--current{
  border-color: #0b5fad;
  background: #eef6ff;
}
.mgr-career-tenure__logo,
.mgr-career-trophy__logo{
  width: 32px;
  height: 32px;
  border-radius: 8px;
  object-fit: contain;
  flex: none;
}
.mgr-career-tenure__body,
.mgr-career-trophy__body{
  display: flex;
  flex-direction: column;
  gap: 1px;
  flex: 1;
  min-width: 0;
}
.mgr-career-tenure__body strong,
.mgr-career-trophy__body strong{
  font-size: 14px;
}
.mgr-career-tenure__body span,
.mgr-career-trophy__body span{
  font-size: 12px;
  color: var(--muted, #66758d);
}
.mgr-career-tenure__badge{
  flex: none;
  font-size: 11px;
  font-weight: 800;
  color: #0b5fad;
  background: #dbeeff;
  padding: 4px 8px;
  border-radius: 999px;
}
.mgr-career-trophy--won .mgr-career-trophy__result{
  color: #a3401f;
  font-weight: 800;
}
.mgr-career-trophy__result{
  flex: none;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--muted, #66758d);
}
@media (max-width: 720px){
  .mgr-career__stats{ grid-template-columns: repeat(3, 1fr); gap: 6px; }
  .mgr-career__stats > div{ padding: 8px 6px; }
  .mgr-career__stats strong{ font-size: 16px; }
}

/* 25/09/2026 — Andamento posizioni nella Carriera Mister: stesso grafico a
   bande gia' usato in Andamento Ranking (Club Hub), qui sempre visibile
   (anche su smartphone) perche' e' l'unico grafico della sezione. */
.mgr-career-trend{
  padding: 10px 12px 4px;
  border-radius: 12px;
  background: var(--surface-2, #eef3f9);
}

/* ============================================================
   26/09/2026 — Badge Stagione + DB (topbar, sempre visibile)
   + tasto comprimi/espandi sidebar più evidente
   ============================================================ */

/* Badge stagione + DB */
.season-context{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 8px;
}
.season-context__season{
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-title);
  font-weight: 700;
  font-size: 13px;
  padding: 5px 11px;
  border-radius: 999px;
  background: var(--surface, #fff);
  color: var(--text, #142033);
  border: 1px solid var(--line, var(--line));
}
.season-context__season svg{
  width: 15px; height: 15px;
  fill: none; stroke: currentColor; stroke-width: 1.8;
  stroke-linecap: round; stroke-linejoin: round;
}
.season-context__db{
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 11.5px;
  letter-spacing: .02em;
  padding: 4px 9px;
  border-radius: 999px;
  background: var(--surface-2, #eef3f9);
  color: var(--muted, #66758d);
}
.season-context__flag{
  font-family: var(--font-title);
  font-weight: 700;
  font-size: 11px;
  letter-spacing: .06em;
  padding: 4px 9px;
  border-radius: 999px;
  background: #fbe7c2;
  color: #8a5a00;
  border: 1px solid #f0c877;
}
/* stagione corrente: filo azzurro discreto sul chip stagione */
.season-context--live .season-context__season{
  border-color: #bcd3fb;
  color: var(--brand-dark, #173b82);
}
/* stagione passata: tutto in ambra per avvisare */
.season-context--past .season-context__season{
  background: #fff7ea;
  border-color: #f0c877;
  color: #8a5a00;
}
.season-context--past .season-context__db{
  background: #fdecca;
  color: #8a5a00;
}

/* Tasto comprimi/espandi sidebar — opzione 6 "quadratino contornato" (26/09/2026):
   quadratino arrotondato bianco, bordo blu, doppia freccia blu; hover → pieno blu.
   Specificità .sidebar .sidebar-collapse (0,2,0) vince sulle definizioni esistenti
   (incluso border-radius:50%) e NON imposta display (le regole mobile lo nascondono). */
.sidebar .sidebar-collapse{
  width: 30px;
  height: 30px;
  right: -15px;
  background: var(--surface);
  color: var(--brand, #2563eb);
  border: 1.5px solid var(--brand, #2563eb);
  border-radius: 9px;
  box-shadow: 0 5px 14px rgba(37, 99, 235, .22);
  transition: color .15s ease, background .15s ease, box-shadow .15s ease;
}
.sidebar .sidebar-collapse span{
  font-size: 13px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -1px;
}
.sidebar .sidebar-collapse:hover{
  background: var(--brand, #2563eb);
  color: #fff;
  border-color: var(--brand, #2563eb);
  box-shadow: 0 7px 18px rgba(37, 99, 235, .35);
}

/* ============================================================
   26/09/2026 — Colori attributi per fascia + pannello personalizza
   + pulsante download scheda
   ============================================================ */
/* ogni fascia imposta la variabile --skill-color letta da .skill-colored */
.skill-t-ecc{ --skill-color: var(--skill-ecc); }
.skill-t-buona{ --skill-color: var(--skill-buona); }
.skill-t-media{ --skill-color: var(--skill-media); }
.skill-t-bassi{ --skill-color: var(--skill-bassi); }

/* pannello personalizzazione colori nella scheda */
.profile-colors-panel{
  width: 100%;
  margin-top: 10px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface-2);
}
.skill-color-hint{
  margin: 0 0 12px;
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--muted);
}
.skill-color-list{
  display: grid;
  gap: 8px;
  margin-bottom: 12px;
}
.skill-color-row{
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 10px;
  cursor: pointer;
}
.skill-color-row input[type="color"]{
  width: 34px;
  height: 34px;
  padding: 0;
  border: none;
  border-radius: 8px;
  background: none;
  cursor: pointer;
  flex: none;
}
.skill-color-swatch{
  width: 16px; height: 16px;
  border-radius: 5px;
  border: 1px solid rgba(0,0,0,.12);
  flex: none;
}
.skill-color-text{ flex: 1; display: flex; flex-direction: column; line-height: 1.15; }
.skill-color-text b{ font-family: var(--font-title); font-size: 13.5px; color: var(--text); }
.skill-color-text small{ font-size: 11px; color: var(--muted); }
.skill-color-demo{
  flex: none;
  min-width: 34px;
  text-align: center;
  font-family: var(--font-title);
  font-weight: 800;
  font-size: 18px;
}
.skill-color-demo.skill-colored{ color: var(--skill-color); }

/* pulsante download scheda (usa lo stile secondary-button esistente) */
.profile-download-btn{ white-space: nowrap; }

/* ============================================================
   26/09/2026 — FONT AUTO-OSPITATI (GDPR) — inline in styles.css per evitare
   ambiguità di percorso di un fonts.css separato. Servono i .woff2 in
   assets/v1/fonts/ con QUESTI nomi esatti. Nessuna chiamata a Google.
   ============================================================ */
/* Inter 400 = nel tool si chiama "regular": accetto entrambi i nomi file. */
@font-face{ font-family:"Inter"; font-style:normal; font-weight:400; font-display:swap; src:url("/fonts/inter-regular.woff2") format("woff2"), url("/fonts/inter-400.woff2") format("woff2"); }
@font-face{ font-family:"Inter"; font-style:normal; font-weight:500; font-display:swap; src:url("/fonts/inter-500.woff2") format("woff2"); }
@font-face{ font-family:"Inter"; font-style:normal; font-weight:600; font-display:swap; src:url("/fonts/inter-600.woff2") format("woff2"); }
@font-face{ font-family:"Inter"; font-style:normal; font-weight:700; font-display:swap; src:url("/fonts/inter-700.woff2") format("woff2"); }
@font-face{ font-family:"Inter"; font-style:normal; font-weight:800; font-display:swap; src:url("/fonts/inter-800.woff2") format("woff2"); }
@font-face{ font-family:"Space Grotesk"; font-style:normal; font-weight:500; font-display:swap; src:url("/fonts/spacegrotesk-500.woff2") format("woff2"); }
@font-face{ font-family:"Space Grotesk"; font-style:normal; font-weight:600; font-display:swap; src:url("/fonts/spacegrotesk-600.woff2") format("woff2"); }
@font-face{ font-family:"Space Grotesk"; font-style:normal; font-weight:700; font-display:swap; src:url("/fonts/spacegrotesk-700.woff2") format("woff2"); }
@font-face{ font-family:"Source Serif 4"; font-style:normal; font-weight:600; font-display:swap; src:url("/fonts/sourceserif4-600.woff2") format("woff2"); }
@font-face{ font-family:"Source Serif 4"; font-style:normal; font-weight:700; font-display:swap; src:url("/fonts/sourceserif4-700.woff2") format("woff2"); }
@font-face{ font-family:"Barlow Condensed"; font-style:normal; font-weight:600; font-display:swap; src:url("/fonts/barlowcondensed-600.woff2") format("woff2"); }
@font-face{ font-family:"Barlow Condensed"; font-style:normal; font-weight:700; font-display:swap; src:url("/fonts/barlowcondensed-700.woff2") format("woff2"); }

/* ============================================================
   26/09/2026 — SCHEDA EXPORT (PNG) dedicata. Impaginazione FISSA desktop,
   indipendente dal viewport: le regole scoped ".fmto-export ..." hanno
   specificità (0,2,0) e battono le @media responsive di .profile-* (0,1,0),
   quindi il PNG esce sempre come la vista PC anche esportando da smartphone.
   ============================================================ */
.fmto-export{
  width: 1200px;
  background: var(--surface);
  border-radius: 20px;
  overflow: hidden;
  font-family: var(--font-body);
  color: var(--text);
  border: 1px solid #e3e9f2;
}
/* Hero */
.fmto-export .fx-hero{
  display: grid;
  grid-template-columns: 132px minmax(0,1fr) auto;
  gap: 22px;
  align-items: center;
  padding: 26px 30px;
  background: linear-gradient(120deg, #0d2442 0%, #16386f 60%, #1f4c94 100%);
  color: #fff;
}
.fmto-export .fx-photo{
  width: 132px; height: 156px;
  border-radius: 14px;
  overflow: hidden;
  background-color: #24405f;
  /* La foto è impostata come BACKGROUND (cover): html2canvas non gestisce
     object-fit sugli <img> e la deformerebbe; il background-size cover invece
     lo rispetta, quindi la foto resta proporzionata e ritagliata, mai stirata. */
  background-size: cover;
  background-position: center 15%;
  background-repeat: no-repeat;
  display: grid; place-items: center;
  flex: none;
}
.fmto-export .fx-photo .fx-photo-fallback{
  font-family: var(--font-title); font-weight: 800; font-size: 42px; color: #9fc0ef;
}
.fmto-export .fx-id h1{
  font-family: var(--font-title);
  font-weight: 700;
  font-size: 40px;
  line-height: 1.05;
  margin: 0 0 4px;
  color: #fff;
}
.fmto-export .fx-id .fx-sub{ font-size: 13px; color: #b9cdf0; margin-bottom: 14px; letter-spacing: .02em; }
.fmto-export .fx-chips{ display: flex; flex-wrap: wrap; gap: 10px; align-items: stretch; }
.fmto-export .fx-chip{
  display: flex; flex-direction: column; justify-content: center; gap: 3px;
  background: rgba(255,255,255,.10);
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 11px;
  padding: 8px 13px;
  min-width: 70px;
}
.fmto-export .fx-chip > span{ font-size: 9.5px; text-transform: uppercase; letter-spacing: .07em; color: #a9c2e8; line-height: 1.1; }
.fmto-export .fx-chip strong{ font-family: var(--font-title); font-weight: 600; font-size: 14px; color: #fff; display: flex; align-items: center; gap: 6px; line-height: 1.15; }
/* badge stato mercato (1T/2T/BLK/BUSTE) uniformi e allineati */
.fmto-export .fx-mk{ display: inline-flex; gap: 4px; }
.fmto-export .fx-mk span{
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--font-body); font-weight: 700; font-size: 10px; line-height: 1;
  padding: 3px 6px; border-radius: 6px;
  background: rgba(255,255,255,.22); color: #fff;
  text-transform: none; letter-spacing: 0;
}
/* loghi/bandiere a proporzione (niente box fisso → niente deformazione in html2canvas) */
.fmto-export .fx-chip img{ height: 18px; width: auto; border-radius: 4px; display: inline-block; vertical-align: middle; }
.fmto-export .fx-ca{
  text-align: center;
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 16px;
  padding: 14px 22px;
  flex: none;
}
.fmto-export .fx-ca span{ display: block; font-size: 10px; letter-spacing: .09em; text-transform: uppercase; color: #b9cdf0; margin-bottom: 2px; }
.fmto-export .fx-ca strong{ font-family: var(--font-title); font-weight: 700; font-size: 46px; line-height: 1; color: #fff; }
/* Corpo: campetto + 3 colonne, SEMPRE affiancati */
.fmto-export .fx-body{
  display: grid;
  grid-template-columns: 250px minmax(0,1fr);
  gap: 22px;
  align-items: start;
  padding: 24px 30px 20px;
}
.fmto-export .profile-role-panel{ border-right: 1px solid #e3e9f2; padding-right: 20px; max-width: none; width: auto; margin: 0; }
.fmto-export .role-pitch{ min-height: 300px; }
.fmto-export .profile-attributes{
  display: grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 16px;
}
.fmto-export .profile-attributes .attribute-group{ display: block; }
.fmto-export .fx-foot{
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 30px 18px;
  border-top: 1px solid #eef2f8;
  color: var(--muted);
  font-size: 12px;
}
.fmto-export .fx-foot .fx-brand{ font-family: var(--font-title); font-weight: 700; color: var(--brand-dark); font-size: 14px; display: flex; align-items: center; gap: 8px; }
.fmto-export .fx-foot .fx-brand img{ width: 22px; height: 22px; border-radius: 5px; }

/* 26/09/2026 — Scheda export: allineamento righe attributi (etichetta a
   sinistra, valore incolonnato a destra) replicato QUI perché la scheda
   export non usa la classe .player-profile che porta queste rifiniture. */
.fmto-export .profile-attributes .attribute-group h3{
  font-family: var(--font-title); font-weight: 700; font-size: 12px;
  letter-spacing: .05em; text-transform: uppercase; color: #5b6b85;
  margin: 0 0 8px; padding: 0 13px 8px; border-bottom: 1px solid var(--line);
}
.fmto-export .profile-attributes .attribute-subsection-title{
  font-family: var(--font-title); font-weight: 700; font-size: 11.5px;
  letter-spacing: .05em; text-transform: uppercase; color: #5b6b85;
  margin: 16px 0 8px; padding: 0 13px 6px; border-bottom: 1px solid #eef2f8;
}
.fmto-export .profile-attributes .attribute-list{ display: flex; flex-direction: column; gap: 5px; }
/* LAYOUT A TABELLA: html2canvas rende male sia grid sia flex space-between →
   valori disallineati. Con table + colonna valore a larghezza fissa il bordo
   destro dei numeri è PERFETTAMENTE costante. Righe compatte e naturali:
   nessuna distribuzione/stiramento delle colonne corte (es. FISICO). */
.fmto-export .profile-attributes .attribute-row{
  display: table !important;
  width: 100%;
  table-layout: fixed;
  height: 34px;
  padding: 0 !important;
  background: #eef2f7 !important;
  border: none !important; border-radius: 8px !important; box-shadow: none !important;
}
.fmto-export .profile-attributes .attribute-row span{
  display: table-cell; vertical-align: middle; text-align: left;
  padding: 0 6px 0 13px; color: #3f4f68; font-size: 13px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.fmto-export .profile-attributes .attribute-row strong{
  display: table-cell; vertical-align: middle; text-align: right;
  width: 66px; padding: 0 13px 0 0; white-space: nowrap;
  font-weight: 800; font-size: 14px; font-variant-numeric: tabular-nums; color: #0f1a2b;
}
.fmto-export .profile-attributes .attribute-row strong.skill-colored{ color: var(--skill-color); }
/* Piede più compatto */
.fmto-export .foot-options{ gap: 8px; }
.fmto-export .foot-option{ padding: 8px 10px; }

/* ============================================================
   26/09/2026 — SEZIONE BUSTE (mercato a busta chiusa)
   ============================================================ */
.mgr-note{ color: var(--muted, #66758d); font-size: 13px; margin: 8px 0; }
.mgr-note.warning-text{ color: #b4232a; }
.mgr-back-inline{ background: none; border: none; color: var(--brand, #2563eb); font-weight: 600; cursor: pointer; padding: 2px 0; font-size: 13px; }
.btn-primary{ background: var(--brand, #2563eb); color: #fff; border: none; border-radius: 10px; padding: 9px 16px; font-weight: 700; cursor: pointer; }
.btn-primary:disabled{ opacity: .5; cursor: not-allowed; }
.btn-secondary{ background: var(--surface); color: var(--brand, #2563eb); border: 1.5px solid var(--brand, #2563eb); border-radius: 10px; padding: 8px 14px; font-weight: 600; cursor: pointer; }

.buste-list{ display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; }
.buste-card{ text-align: left; background: var(--surface, #fff); border: 1px solid var(--line, #e3e9f2); border-radius: 14px; padding: 14px; cursor: pointer; display: flex; flex-direction: column; gap: 6px; box-shadow: 0 4px 14px rgba(15,23,42,.05); }
.buste-card:hover{ border-color: var(--brand, #2563eb); }
.buste-card--admin{ cursor: default; }
.buste-card h4{ margin: 2px 0; font-size: 15px; }
.buste-card__top{ display: flex; gap: 6px; flex-wrap: wrap; }
.buste-card__meta{ color: var(--muted, #66758d); font-size: 12px; margin: 0; }
.buste-card__cta{ color: var(--brand, #2563eb); font-weight: 700; font-size: 13px; margin-top: 4px; }
.buste-badge{ font-size: 10.5px; font-weight: 700; padding: 3px 8px; border-radius: 999px; background: #eef2f7; color: #55637a; }
.buste-badge--open{ background: #e6f7ec; color: #14804a; }
.buste-badge--ok{ background: #e6f0ff; color: #0b5fad; }
.buste-badge--draft{ background: #fff4e0; color: #9a6400; }

.buste-head{ margin-bottom: 10px; }
.buste-head h3{ margin: 6px 0 2px; }
.buste-editor{ display: flex; flex-direction: column; gap: 12px; }
.buste-picks{ display: flex; flex-direction: column; gap: 8px; }
.buste-pick{ display: flex; align-items: center; gap: 10px; background: var(--surface-2, #eef3f9); border-radius: 10px; padding: 8px 10px; }
.buste-pri{ font-weight: 800; color: var(--brand, #2563eb); min-width: 26px; }
.buste-pick__who{ flex: 1; display: flex; flex-direction: column; }
.buste-pick__who small{ color: var(--muted, #66758d); font-size: 11px; }
.buste-tag{ font-size: 10px; background: #fff4e0; color: #9a6400; border-radius: 6px; padding: 1px 5px; font-weight: 700; }
.buste-pick__ctrls{ display: flex; align-items: center; gap: 6px; }
.buste-mini{ width: 26px; height: 26px; border: 1px solid var(--line, #e3e9f2); background: var(--surface); border-radius: 7px; cursor: pointer; font-size: 11px; }
.buste-mini--del{ color: #b4232a; border-color: #f0c9cb; }
.buste-credit{ width: 74px; padding: 5px 7px; border: 1px solid var(--line, #e3e9f2); border-radius: 8px; text-align: right; font-variant-numeric: tabular-nums; }
.buste-cr{ color: var(--muted, #66758d); font-size: 12px; }
.buste-total{ font-size: 13px; color: var(--text, #142033); }
.buste-total--over{ color: #b4232a; font-weight: 700; }
.buste-over{ font-weight: 600; }
.buste-search{ display: flex; flex-direction: column; gap: 6px; border-top: 1px dashed var(--line, #e3e9f2); padding-top: 10px; }
.buste-search label{ font-size: 12px; font-weight: 700; color: var(--muted, #66758d); }
.buste-search input[type=text]{ padding: 9px 11px; border: 1px solid var(--line, #e3e9f2); border-radius: 10px; font-size: 14px; }
.buste-search__results{ display: flex; flex-direction: column; gap: 4px; }
.buste-sugg{ text-align: left; background: var(--surface); border: 1px solid var(--line, #e3e9f2); border-radius: 9px; padding: 7px 10px; cursor: pointer; display: flex; flex-direction: column; }
.buste-sugg:hover{ border-color: var(--brand, #2563eb); }
.buste-sugg small{ color: var(--muted, #66758d); font-size: 11px; }
.buste-manual-btn{ align-self: flex-start; background: none; border: none; color: var(--brand, #2563eb); font-weight: 600; cursor: pointer; font-size: 12.5px; padding: 2px 0; }
.buste-actions{ display: flex; gap: 10px; flex-wrap: wrap; }
.buste-results-box{ background: var(--surface-2, #eef3f9); border-radius: 12px; padding: 12px 14px; }
.buste-results{ margin: 6px 0 0; padding-left: 18px; }
.buste-results li{ margin: 3px 0; }
.buste-reason{ color: var(--muted, #66758d); font-size: 12px; }

.buste-admin-create{ background: var(--surface-2, #eef3f9); border-radius: 12px; padding: 14px; margin-bottom: 16px; }
.buste-admin-form{ display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.buste-admin-form input[type=text], .buste-admin-form select{ padding: 8px 10px; border: 1px solid var(--line, #e3e9f2); border-radius: 9px; font-size: 13px; }
.buste-admin-form .ba-num{ font-size: 12px; color: var(--muted, #66758d); display: inline-flex; align-items: center; gap: 5px; }
.buste-admin-form .ba-num input{ width: 60px; padding: 6px 8px; border: 1px solid var(--line, #e3e9f2); border-radius: 8px; }
.buste-admin-actions{ display: flex; gap: 6px; flex-wrap: wrap; margin-top: 8px; }
.buste-admin-create--edit{ background: #fff7ed; box-shadow: inset 0 0 0 1.5px #fdba74; }
.buste-del-btn{ color: #b91c1c; }
.buste-del-btn:hover{ background: #fee2e2; border-color: #fca5a5; }
.buste-edit-btn{ color: #1d4ed8; }
.buste-admin-detail{ margin-top: 10px; }
.buste-table{ width: 100%; border-collapse: collapse; font-size: 12.5px; margin: 8px 0; }
.buste-table th, .buste-table td{ text-align: left; padding: 6px 8px; border-bottom: 1px solid var(--line, #e3e9f2); vertical-align: top; }
.buste-table th{ color: var(--muted, #66758d); font-size: 11px; text-transform: uppercase; letter-spacing: .03em; }
.buste-free{ color: #9a6400; }

/* Buste — registro/spoglio in finestra dedicata */
.fmto-modal--buste{ max-width: 920px; width: calc(100% - 28px); }
.fmto-modal--buste .fmto-modal-body{ overflow: auto; max-height: 78vh; }
.fmto-modal--buste .buste-table{ min-width: 480px; }
.fmto-modal--buste h4{ margin: 14px 0 4px; }

/* Buste — registro tabella piatta (una riga per giocatore) */
.buste-reg-scroll{ overflow-x: auto; }
.buste-table--flat{ min-width: 720px; }
.buste-table--flat td, .buste-table--flat th{ white-space: nowrap; }
.buste-table--flat td:nth-child(5){ white-space: normal; }
.ba-c{ text-align: center; }
.ba-id{ font-variant-numeric: tabular-nums; color: var(--muted, #66758d); font-size: 11.5px; }
.ba-row--a td{ background: var(--surface); }
.ba-row--b td{ background: #f7f9fc; }
.ba-row--first td{ border-top: 2px solid #dde5f0; }
.ba-empty{ color: var(--muted, #66758d); font-style: italic; }
.ba-esito{ display: inline-block; font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 999px; }
.ba-esito--ok{ background: #e6f7ec; color: #14804a; }
.ba-esito--lost{ background: #eef2f7; color: #6b7688; }
.ba-esito--free{ background: #fff4e0; color: #9a6400; }
.ba-esito--wait{ background: #eef2f7; color: #9aa6b8; }
.ba-summary{ font-size: 13px; margin: 2px 0 12px; }
.ba-summary--wait{ color: #9a6400; }

/* Buste — compilazione mister a griglia (come il vecchio foglio) */
.buste-mtable-scroll{ overflow-x: auto; }
.buste-mtable{ width: 100%; border-collapse: collapse; min-width: 460px; font-size: 13px; }
.buste-mtable th{ text-align: left; font-size: 10.5px; text-transform: uppercase; letter-spacing: .03em; color: var(--muted, #66758d); padding: 6px 8px; border-bottom: 1.5px solid var(--line, #e3e9f2); white-space: nowrap; }
.buste-mtable td{ padding: 7px 8px; border-bottom: 1px solid var(--line, #e3e9f2); vertical-align: middle; }
.buste-mtable tbody tr:nth-child(even) td{ background: #f7f9fc; }
.bm-c{ text-align: center; }
.bm-pri{ font-weight: 800; color: var(--brand, #2563eb); }
.bm-id{ font-variant-numeric: tabular-nums; color: var(--muted, #66758d); font-size: 11.5px; white-space: nowrap; }
.buste-mtable .buste-credit{ width: 76px; padding: 5px 7px; border: 1px solid var(--line, #e3e9f2); border-radius: 8px; text-align: right; font-variant-numeric: tabular-nums; }
.bm-acts{ display: flex; gap: 4px; justify-content: flex-end; }

/* Buste — segnalazioni (rosso), filtro, colonna "in torneo" */
.ba-alerts{ border: 1.5px solid #f0c9cb; background: #fdecec; border-radius: 12px; padding: 10px 12px; margin-bottom: 14px; }
.ba-alerts-head{ color: #b4232a; font-weight: 800; font-size: 13px; margin-bottom: 6px; }
.ba-alerts-table th{ color: #b4232a; }
.ba-alerts-table td{ color: #7a1a1f; border-bottom-color: #f3d2d4; }
.ba-alerts-table tbody tr td{ background: transparent; }
.ba-filter{ width: 100%; max-width: 420px; padding: 9px 12px; border: 1px solid var(--line, #e3e9f2); border-radius: 10px; font-size: 13px; margin: 4px 0 10px; }
.ba-tor{ display: inline-block; font-size: 10.5px; font-weight: 700; padding: 2px 7px; border-radius: 999px; }
.ba-tor--yes{ background: #fdecec; color: #b4232a; }
.ba-tor--no{ background: #e6f7ec; color: #14804a; }
.ba-tor--unk{ background: #eef2f7; color: #8090a6; }

/* Buste — finestra apertura/chiusura (countdown) */
.buste-cd{ font-size: 11.5px; font-weight: 700; margin: 2px 0 0; }
.buste-cd--open{ color: #14804a; }
.buste-cd--wait{ color: #9a6400; }
.buste-cd--closed{ color: #b4232a; }
.buste-admin-form input[type=datetime-local]{ padding: 6px 8px; border: 1px solid var(--line, #e3e9f2); border-radius: 8px; font-size: 12px; }

/* Ricerca avanzata — bottoni +1/-1 a tutte le soglie */
.player-adv-bump{ display:flex; align-items:center; gap:8px; flex-wrap:wrap; margin:6px 0 10px; font-size:12.5px; color:var(--muted,#66758d); }
.secondary-button.small{ padding:5px 10px; font-size:12px; }

/* Pannello colori — soglie editabili */
.skill-color-row{ display:flex; align-items:center; gap:10px; padding:6px 0; }
.skill-thr{ font-size:12px; color:var(--muted,#66758d); display:inline-flex; align-items:center; gap:4px; }
.skill-thr input[type=number]{ width:52px; padding:4px 6px; border:1px solid var(--line,#e3e9f2); border-radius:7px; text-align:center; }
.skill-thr--fixed{ opacity:.75; }
.skill-color-demo{ margin-left:auto; min-width:30px; text-align:center; padding:2px 8px; border-radius:8px; font-weight:800; }

/* Rosa futura — card cliccabile (apre scheda stagione attuale) */
.mgrr-row--clickable{ cursor: pointer; }
.mgrr-row--clickable:hover{ background: var(--surface-2, #eef3f9); }

/* Club Hub — Rosa Futura: card cliccabili → scheda stagione attuale */
.club-next-roster-board--clickable [data-player-id]{ cursor: pointer; }
.club-next-roster-board--clickable [data-player-id]:hover{ filter: brightness(0.98); box-shadow: 0 0 0 1.5px var(--brand, #2563eb) inset; }

/* ============================================================
   29/09/2026 — PREMI STAGIONALI (Gol / Assist / MiC per stagione)
   ============================================================ */
.premi-sub{ color: var(--muted,#66758d); font-size: 13px; margin: 2px 0 14px; }
.premi-grid{ display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
@media (max-width: 860px){ .premi-grid{ grid-template-columns: 1fr; } }
.premi-col{ background: var(--surface,#fff); border: 1px solid var(--line,#e3e9f2); border-radius: 14px; padding: 12px; box-shadow: 0 4px 14px rgba(15,23,42,.05); }
.premi-col-head{ display: flex; align-items: center; gap: 8px; margin: 2px 4px 10px; }
.premi-col-head h3{ margin: 0; font-size: 14px; }
.premi-col-ic{ font-size: 16px; }
.premi-row{ display: flex; align-items: center; gap: 10px; padding: 7px 6px; border-bottom: 1px solid var(--line,#eef2f7); }
.premi-row:last-child{ border-bottom: none; }
.premi-pos{ width: 22px; text-align: center; font-weight: 800; color: var(--muted,#66758d); font-variant-numeric: tabular-nums; }
.premi-face{ width: 34px; height: 34px; border-radius: 50%; overflow: hidden; background: #eef2f7; flex: 0 0 auto; display: inline-flex; align-items: center; justify-content: center; }
.premi-face img{ width: 100%; height: 100%; object-fit: cover; }
.premi-name{ flex: 1; display: flex; flex-direction: column; min-width: 0; }
.premi-name b{ font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.premi-name small{ color: var(--muted,#66758d); font-size: 11px; display: inline-flex; align-items: center; gap: 4px; }
.premi-team-logo{ width: 14px; height: 14px; object-fit: contain; }
.premi-val{ font-weight: 800; font-size: 15px; font-variant-numeric: tabular-nums; color: var(--brand-dark,#0d2442); min-width: 28px; text-align: right; }
.premi-row--gold{ background: linear-gradient(90deg, rgba(212,169,0,.14), transparent); }
.premi-row--silver{ background: linear-gradient(90deg, rgba(148,163,184,.14), transparent); }
.premi-row--bronze{ background: linear-gradient(90deg, rgba(205,127,50,.13), transparent); }
.premi-row--gold .premi-pos{ color: #b8860b; }
.premi-empty{ color: var(--muted,#66758d); font-size: 12px; padding: 14px 6px; text-align: center; }

/* Ricerca Avanzata — barra filtri ordinata su due righe (desktop), niente spazi vuoti */
@media (min-width: 861px){
  .player-adv-fbar{
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 12px;
    align-items: end;
  }
  .player-adv-fbar .player-adv-field{ min-width: 0; }
  .player-adv-fbar .player-adv-field--nation{ min-width: 0; }
  .player-adv-fbar .player-adv-field input,
  .player-adv-fbar .player-adv-field select{
    max-width: none;
    width: 100%;
  }
  .player-adv-fbar .secondary-button,
  .player-adv-fbar .primary-button{
    align-self: end;
    height: 40px;
  }
}

/* ============================================================
   Finanze — densità alta (layout 1)
   Override in coda così l'ordine sorgente vince sui blocchi duplicati.
   Stessa tabella, solo più compatta: font/padding ridotti, righe strette,
   tutte le colonne restano, ordine e colori invariati.
   ============================================================ */
.finance-table{ font-size: 12px; }
.finance-table th,
.finance-table td{ padding: 4px 7px; }
.finance-table thead th{ padding: 4px 6px; min-width: 88px; }
.finance-table thead th:first-child{ min-width: 168px; }
.finance-table .data-table-sort{ min-height: 22px; font-size: 8.5px; letter-spacing: .02em; }
.finance-table .data-team-cell{ gap: 6px; }
.finance-table .data-team-logo{ width: 20px; height: 20px; }
.finance-table .finance-group{ padding: 3px 6px; font-size: 10px; }
.finance-table tbody td{ line-height: 1.15; }
.finance-table .data-table-filter{ height: 24px; font-size: 8.5px; margin-top: 3px; }

/* Crediti risultati — loghi nella vista dedicata */
.rescredit-comp-logo{width:22px;height:22px;object-fit:contain;border-radius:4px;flex:0 0 auto;vertical-align:middle}
.rescredit-opp-logo{width:18px;height:18px;object-fit:contain;border-radius:4px;flex:0 0 auto}
.rescredit-opp-logo--ph{display:inline-block;background:rgba(148,163,184,.15)}
/* Crediti risultati: due colonne (sx risultati, dx tariffe regolamento) */
.rescredit-2col{display:grid;grid-template-columns:minmax(0,1fr) minmax(260px,340px);gap:18px;align-items:start}
.rescredit-side{position:sticky;top:12px}
.rescredit-tariffs--panel{border:1px solid rgba(148,163,184,.25);border-radius:14px;background:var(--panel,#fff);overflow:hidden}
.rescredit-tariffs__head{padding:11px 14px;font-weight:700;font-size:13.5px;color:#15233a;background:rgba(37,99,235,.06);border-bottom:1px solid rgba(148,163,184,.2)}
.rescredit-tariffs__head span{color:var(--muted,#64748b);font-weight:600}
.rescredit-tariffs__body{padding:6px 14px 12px;max-height:72vh;overflow:auto}
@media(max-width:900px){.rescredit-2col{grid-template-columns:1fr}.rescredit-side{position:static}.rescredit-tariffs__body{max-height:none}}

/* Monte ingaggi vs tetto (Club Hub) — Fase 1 MI1 */
.ce-mi{width:100%;margin:12px 0 2px;padding:10px 12px;border:1px solid rgba(148,163,184,.25);border-radius:12px;background:rgba(148,163,184,.06);box-sizing:border-box}
.ce-mi-head{display:flex;align-items:baseline;justify-content:space-between;gap:8px;margin-bottom:6px}
.ce-mi-ttl{font-size:11.5px;font-weight:700;color:#15233a;letter-spacing:.01em}
.ce-mi-pct{font-size:12px;font-weight:800;font-variant-numeric:tabular-nums}
.ce-mi-track{height:9px;border-radius:999px;background:rgba(148,163,184,.25);overflow:hidden}
.ce-mi-fill{height:100%;border-radius:999px;transition:width .3s ease}
.ce-mi-lbl{margin-top:6px;font-size:11px;color:var(--muted,#64748b);line-height:1.3}
.ce-mi-warn{display:block;margin-top:2px;font-weight:700;color:#b91c1c}
.ce-mi--ok .ce-mi-fill{background:#16a34a}
.ce-mi--ok .ce-mi-pct{color:#16a34a}
.ce-mi--warn .ce-mi-fill{background:#d97706}
.ce-mi--warn .ce-mi-pct{color:#d97706}
.ce-mi--over .ce-mi-fill{background:#dc2626}
.ce-mi--over .ce-mi-pct{color:#dc2626}

/* ===========================================================================
   SIDEBAR COMPATTA + ADATTIVA — obiettivo: alla MASSIMA apertura di qualsiasi
   sezione NON si deve mai scrollare. Oltre a ridurre le righe, la densità si
   adatta all'altezza reale della finestra (più bassa → più compatta), così
   tutto entra sempre. Blocco in coda: vince per ordine sorgente.
   =========================================================================== */
.sidebar{ padding-top: 14px; padding-bottom: 12px; }
.sidebar .brand{ min-height: 60px; }
.sidebar .brand-logo{ width: 56px; height: 56px; }
.sidebar .nav-list{ margin-top: 14px; }
.sidebar .nav-item,
.sidebar .nav-acc-head{ min-height: 35px; padding: 5px 10px; }
.sidebar .nav-divider{ margin-top: 7px; margin-bottom: 7px; }
.sidebar .nav-acc{ margin: 0; }
.nav-acc.open .nav-acc-body{ margin-top: 1px; margin-bottom: 3px; }
.nav-acc.open .nav-acc-body .nav-item{ min-height: 31px; padding: 4px 9px; font-size: 12px; }
.sidebar .nav-acc-body .nav-icon{ width: 25px; height: 25px; }
.sidebar-footer{ gap: 6px; }

/* Finestra medio-bassa: compatta di più */
@media (min-width: 861px) and (max-height: 820px){
  .sidebar{ padding-top: 11px; padding-bottom: 10px; }
  .sidebar .brand{ min-height: 50px; }
  .sidebar .brand-logo{ width: 46px; height: 46px; }
  .sidebar .nav-list{ margin-top: 9px; }
  .sidebar .nav-item,
  .sidebar .nav-acc-head{ min-height: 32px; padding: 4px 10px; }
  .sidebar .nav-divider{ margin-top: 5px; margin-bottom: 5px; }
  .nav-acc.open .nav-acc-body .nav-item{ min-height: 28px; padding: 3px 9px; font-size: 11.5px; }
  .sidebar .nav-acc-body .nav-icon{ width: 23px; height: 23px; }
}

/* Finestra bassa: massima compattazione (resta leggibile) */
@media (min-width: 861px) and (max-height: 680px){
  .sidebar{ padding-top: 8px; padding-bottom: 8px; }
  .sidebar .brand{ min-height: 40px; }
  .sidebar .brand-logo{ width: 36px; height: 36px; }
  .sidebar .nav-list{ margin-top: 6px; }
  .sidebar .nav-item,
  .sidebar .nav-acc-head{ min-height: 29px; padding: 3px 10px; }
  .sidebar .nav-icon{ width: 26px; height: 26px; }
  .sidebar .nav-divider{ margin-top: 4px; margin-bottom: 4px; }
  .nav-acc.open .nav-acc-body{ margin-top: 0; margin-bottom: 2px; }
  .nav-acc.open .nav-acc-body .nav-item{ min-height: 26px; padding: 2px 9px; font-size: 11px; }
  .sidebar .nav-acc-body .nav-icon{ width: 21px; height: 21px; }
  .sidebar-footer__divider{ margin-top: 2px; margin-bottom: 2px; }
}
/* la sidebar collassata (a icone) mantiene il suo layout, non toccata */

/* ===================== PANORAMICA PARTITA (Home match-hub) — 2026-10-17 ===================== */
#overviewMatchView{ --mh-card:#ffffff; --mh-ink:#0f1b33; --mh-mute:#64748b; --mh-line:#e2e8f0;
  --mh-accent:#2563eb; --mh-home:#16a34a; --mh-away:#d97706; --mh-danger:#dc2626;
  max-width:760px; margin:0 auto; }
#overviewMatchView .mh-head{ display:flex; align-items:baseline; gap:10px; margin:4px 2px 6px; }
#overviewMatchView .mh-title{ font-family:var(--font-title,inherit); font-size:20px; margin:0; color:var(--mh-ink); }
#overviewMatchView .mh-sub{ color:var(--mh-mute); font-size:13px; font-weight:600; }
#overviewMatchView .mh-sec{ margin:18px 0; }
#overviewMatchView .mh-h3{ font-family:var(--font-title,inherit); font-size:13px; letter-spacing:.4px;
  text-transform:uppercase; color:var(--mh-mute); margin:0 2px 10px; display:flex; align-items:center; gap:8px; }
#overviewMatchView .mh-n{ display:inline-grid; place-items:center; width:22px; height:22px; border-radius:7px;
  background:var(--mh-accent); color:#fff; font-size:12px; font-weight:800; }
#overviewMatchView .mh-empty{ background:var(--mh-card); border:1px dashed var(--mh-line); border-radius:14px;
  padding:16px; color:var(--mh-mute); font-size:13.5px; text-align:center; }
#overviewMatchView .mh-note{ text-align:center; color:#94a3b8; font-size:11.5px; margin:22px 0 4px; }
/* hero */
#overviewMatchView .mh-hero{ background:var(--mh-card); border:1px solid var(--mh-line); border-radius:18px;
  box-shadow:0 8px 24px rgba(15,27,51,.08); overflow:hidden; }
#overviewMatchView .mh-hero-top{ display:flex; align-items:center; gap:8px; padding:11px 14px;
  background:linear-gradient(90deg,rgba(37,99,235,.08),transparent); border-bottom:1px solid var(--mh-line);
  font-size:12.5px; color:var(--mh-mute); font-weight:600; }
#overviewMatchView .mh-hero-comp{ white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
#overviewMatchView .mh-venue{ margin-left:auto; font-weight:800; font-size:11px; padding:4px 10px; border-radius:999px; flex:0 0 auto; }
#overviewMatchView .mh-venue--casa{ background:rgba(22,163,74,.12); color:var(--mh-home); }
#overviewMatchView .mh-venue--tras{ background:rgba(217,119,6,.14); color:var(--mh-away); }
#overviewMatchView .mh-venue--mini{ font-size:10px; padding:3px 8px; }
#overviewMatchView .mh-hero-mid{ display:grid; grid-template-columns:1fr auto 1fr; align-items:center; gap:8px; padding:18px 12px 8px; }
#overviewMatchView .mh-side{ display:flex; flex-direction:column; align-items:center; gap:7px; text-align:center; min-width:0; }
#overviewMatchView .mh-crest{ width:72px; height:72px; border-radius:16px; display:grid; place-items:center;
  background:var(--c,#334155); box-shadow:0 2px 8px rgba(15,27,51,.14); overflow:hidden; }
#overviewMatchView .mh-crest img{ width:100%; height:100%; object-fit:contain; padding:8px; }
#overviewMatchView .mh-team-logo--fallback{ color:#fff; font-weight:800; font-family:var(--font-title,inherit); font-size:22px; }
#overviewMatchView .mh-side-name{ font-weight:700; font-size:13.5px; line-height:1.15; max-width:150px; }
#overviewMatchView .mh-side-tag{ font-size:11px; color:var(--mh-mute); }
#overviewMatchView .mh-vs{ font-family:var(--font-title,inherit); font-weight:700; color:var(--mh-mute); font-size:15px; }
#overviewMatchView .mh-hero-cta{ padding:6px 14px 14px; }
#overviewMatchView .mh-btn{ display:flex; align-items:center; justify-content:center; gap:8px; width:100%;
  border:0; border-radius:12px; padding:12px; font:inherit; font-weight:700; font-size:14px; cursor:pointer; text-decoration:none; }
#overviewMatchView .mh-btn--tg{ background:#229ED9; color:#fff; }
#overviewMatchView .mh-btn--disabled{ background:#eef2f7; color:#94a3b8; cursor:default; }
/* next list */
#overviewMatchView .mh-nextlist{ margin-top:10px; display:flex; flex-direction:column; gap:8px; }
#overviewMatchView .mh-nrow{ display:flex; align-items:center; gap:12px; background:var(--mh-card);
  border:1px solid var(--mh-line); border-radius:14px; padding:9px 12px; box-shadow:0 2px 8px rgba(15,27,51,.05); }
#overviewMatchView .mh-nrow-info{ min-width:0; }
#overviewMatchView .mh-nrow-opp{ font-weight:700; font-size:14px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
#overviewMatchView .mh-nrow-sub{ font-size:11.5px; color:var(--mh-mute); white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
#overviewMatchView .mh-tgmini{ width:34px; height:34px; border-radius:9px; background:#229ED9; color:#fff;
  display:grid; place-items:center; text-decoration:none; flex:0 0 auto; }
/* comp logos */
#overviewMatchView .mh-comp-logo{ width:22px; height:22px; border-radius:6px; object-fit:contain; background:var(--surface); flex:0 0 auto; }
#overviewMatchView .mh-comp-logo--sm{ width:24px; height:24px; }
#overviewMatchView .mh-comp-logo--xs{ width:34px; height:34px; border-radius:9px; }
#overviewMatchView .mh-comp-logo--card{ width:30px; height:30px; border-radius:8px; background:rgba(255,255,255,.22); }
#overviewMatchView .mh-comp-logo--fallback{ display:grid; place-items:center; font-size:10px; font-weight:800;
  color:#3657b5; background:#eef2ff; }
#overviewMatchView .mh-comp-logo--card.mh-comp-logo--fallback{ color:#fff; background:rgba(255,255,255,.22); }
/* unavailable */
#overviewMatchView .mh-unav{ display:flex; flex-direction:column; gap:8px; }
#overviewMatchView .mh-urow{ display:flex; align-items:center; gap:12px; background:var(--mh-card);
  border:1px solid var(--mh-line); border-left:4px solid var(--mh-danger); border-radius:12px; padding:9px 12px;
  box-shadow:0 2px 8px rgba(15,27,51,.05); }
#overviewMatchView .mh-uava{ width:38px; height:38px; border-radius:50%; background:#f1f5f9; display:grid; place-items:center; font-size:15px; flex:0 0 auto; }
#overviewMatchView .mh-uinfo{ min-width:0; }
#overviewMatchView .mh-upn{ font-weight:700; font-size:14px; }
#overviewMatchView .mh-upr{ font-size:11.5px; color:var(--mh-mute); }
#overviewMatchView .mh-ubadge{ margin-left:auto; text-align:right; background:rgba(220,38,38,.1); color:var(--mh-danger);
  font-weight:800; font-size:11px; padding:5px 10px; border-radius:999px; flex:0 0 auto; }
#overviewMatchView .mh-unav-cnt{ opacity:.85; font-weight:700; }
/* carousel */
#overviewMatchView .mh-caro{ display:flex; gap:12px; overflow-x:auto; scroll-snap-type:x mandatory;
  padding:4px 2px 12px; -webkit-overflow-scrolling:touch; }
#overviewMatchView .mh-caro::-webkit-scrollbar{ height:6px; }
#overviewMatchView .mh-caro::-webkit-scrollbar-thumb{ background:#cbd5e1; border-radius:3px; }
#overviewMatchView .mh-ccard{ scroll-snap-align:start; flex:0 0 86%; max-width:340px; text-align:left;
  background:var(--mh-card); border:1px solid var(--mh-line); border-radius:18px; box-shadow:0 8px 24px rgba(15,27,51,.08);
  overflow:hidden; cursor:pointer; padding:0; font:inherit; color:var(--mh-ink); transition:transform .14s; }
#overviewMatchView .mh-ccard:active{ transform:scale(.985); }
#overviewMatchView .mh-ch{ display:flex; align-items:center; gap:10px; padding:11px 14px; color:#fff;
  background:linear-gradient(90deg,var(--c,#1e3a8a),rgba(37,99,235,.85)); }
#overviewMatchView .mh-ch-t{ font-family:var(--font-title,inherit); font-weight:700; font-size:14px;
  white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
#overviewMatchView .mh-mini{ padding:6px 6px 8px; min-height:120px; }
#overviewMatchView .mh-mini-load,#overviewMatchView .mh-mini-empty,#overviewMatchView .mh-mini-elim{
  color:var(--mh-mute); font-size:12.5px; padding:18px 10px; text-align:center; }
#overviewMatchView .mh-mrow{ display:grid; grid-template-columns:24px 1fr 34px 34px; align-items:center; gap:8px;
  padding:7px 10px; font-size:12.5px; border-radius:8px; }
#overviewMatchView .mh-mrow--me{ background:rgba(37,99,235,.09); font-weight:700; }
#overviewMatchView .mh-mps{ color:var(--mh-mute); font-weight:700; text-align:center; }
#overviewMatchView .mh-mnm{ white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
#overviewMatchView .mh-mpt{ text-align:center; font-weight:800; }
#overviewMatchView .mh-mdr{ text-align:center; color:var(--mh-mute); font-size:11px; }
#overviewMatchView .mh-cfoot{ padding:9px 14px; border-top:1px solid var(--mh-line); font-size:12px;
  color:var(--mh-accent); font-weight:700; display:flex; justify-content:space-between; }
/* overlay */
#overviewMatchView .mh-ov{ position:fixed; inset:0; background:rgba(10,20,40,.5); display:none;
  align-items:flex-end; justify-content:center; z-index:1200; }
#overviewMatchView .mh-ov.open{ display:flex; }
#overviewMatchView .mh-sheet{ background:#eef2f8; width:100%; max-width:760px; max-height:88vh; overflow:auto;
  border-radius:20px 20px 0 0; transform:translateY(100%); transition:transform .32s cubic-bezier(.2,.8,.2,1); padding-bottom:24px; }
#overviewMatchView .mh-ov.open .mh-sheet{ transform:translateY(0); }
#overviewMatchView .mh-sh{ position:sticky; top:0; background:#eef2f8; display:flex; align-items:center; gap:10px;
  padding:14px 16px; border-bottom:1px solid var(--mh-line); z-index:2; }
#overviewMatchView .mh-sh-t{ font-family:var(--font-title,inherit); font-weight:700; font-size:15px; }
#overviewMatchView .mh-x{ margin-left:auto; border:0; background:#e2e8f0; border-radius:999px; width:32px; height:32px;
  font-size:15px; cursor:pointer; line-height:1; }
#overviewMatchView .mh-tabs{ display:flex; gap:8px; padding:10px 16px; }
#overviewMatchView .mh-tab{ border:1px solid var(--mh-line); background:var(--surface); border-radius:999px; padding:7px 14px;
  font:inherit; font-size:13px; font-weight:700; color:var(--mh-mute); cursor:pointer; }
#overviewMatchView .mh-tab.on{ background:var(--mh-accent); border-color:var(--mh-accent); color:#fff; }
#overviewMatchView #mhOvBody{ padding:4px 16px 8px; }
#overviewMatchView .mh-ov-load,#overviewMatchView .mh-ov-empty{ color:var(--mh-mute); text-align:center; padding:28px 10px; }
@media (max-width:600px){
  #overviewMatchView .mh-ccard{ flex-basis:88%; }
  #overviewMatchView .mh-crest{ width:64px; height:64px; }
}
/* ===================== /PANORAMICA PARTITA ===================== */

/* ===================== PANORAMICA UNIFICATA (bento LAY-1 · COL-1 soft) — 2026-10-17 ===================== */
/* 18/10/2026 — la board riempie la larghezza (prima cappata a 1120 e centrata → due
   fasce laterali vuote). Cap alto solo per non stirare su monitor ultrawide. */
#overviewMatchView{ max-width:1760px; }
#overviewMatchView .ovx{ --match:#2563eb; --results:#0ea5a4; --moves:#16a34a; --deadlines:#d97706; --unav:#dc2626; --comps:#7c3aed; --nav:#475569; }
#overviewMatchView .ovx-hello{ display:flex; align-items:center; gap:12px; margin:2px 2px 16px; flex-wrap:wrap; }
#overviewMatchView .ovx-h{ font-family:var(--font-title,inherit); font-size:21px; margin:0; color:var(--mh-ink); }
#overviewMatchView .ovx-badge{ margin-left:auto; background:var(--surface); border:1px solid var(--mh-line); border-radius:999px; padding:6px 12px; font-size:12px; color:var(--mh-mute); font-weight:700; }
/* GRID — LAY-1 Magazine */
#overviewMatchView .ovx-grid{ display:grid; gap:14px; grid-template-columns:repeat(3,minmax(0,1fr));
  grid-template-areas:"match match deadlines" "comps comps unav" "results results results" "moves moves nav"; }
#overviewMatchView .ca{ grid-area:match; } #overviewMatchView .cr{ grid-area:results; }
#overviewMatchView .cm{ grid-area:moves; } #overviewMatchView .cd{ grid-area:deadlines; }
#overviewMatchView .cu{ grid-area:unav; } #overviewMatchView .cc{ grid-area:comps; } #overviewMatchView .cn{ grid-area:nav; }
@media (max-width:820px){
  #overviewMatchView .ovx-grid{ grid-template-columns:1fr;
    grid-template-areas:"match" "comps" "results" "moves" "deadlines" "unav" "nav"; }
}
/* 18/10/2026 — su schermi larghi (≥1400px) la board sfrutta tutta la larghezza con 4
   colonne e 3 fasce: così riempie le fasce laterali e si scrolla molto meno in basso.
   "Ultimi movimenti" affianca la "Prossima partita" e dispone le voci su 2 colonne
   interne (auto-fit: torna a 1 colonna se la card si stringe → niente testo tagliato).
   Sotto i 1400px resta la griglia a 3 colonne originale (nessun cambiamento). */
@media (min-width:1400px){
  #overviewMatchView .ovx-grid{ grid-template-columns:repeat(4,minmax(0,1fr));
    grid-template-areas:"match match deadlines unav" "comps comps results results" "moves moves nav nav"; }
  #overviewMatchView .cm .ovx-mvs{ display:grid; grid-template-columns:repeat(auto-fit,minmax(238px,1fr));
    gap:8px; align-content:start; }
}
/* CARD soft */
#overviewMatchView .ovx-card{ position:relative; background:var(--surface); border:1px solid var(--mh-line); border-radius:16px;
  box-shadow:0 2px 10px rgba(15,27,51,.06); overflow:hidden; min-width:0; }
#overviewMatchView .ovx-card::before{ content:""; position:absolute; inset:0 0 auto 0; height:4px; background:var(--ac,#2563eb); }
#overviewMatchView .ca{ --ac:var(--match); } #overviewMatchView .cr{ --ac:var(--results); }
#overviewMatchView .cm{ --ac:var(--moves); } #overviewMatchView .cd{ --ac:var(--deadlines); }
#overviewMatchView .cu{ --ac:var(--unav); } #overviewMatchView .cc{ --ac:var(--comps); } #overviewMatchView .cn{ --ac:var(--nav); }
#overviewMatchView .ovx-hd{ display:flex; align-items:center; gap:8px; padding:12px 14px 8px; color:var(--ac,#2563eb); }
#overviewMatchView .ovx-hd h4{ margin:0; font-family:var(--font-title,inherit); font-size:13.5px; color:var(--mh-ink); }
#overviewMatchView .ovx-dot{ width:9px; height:9px; border-radius:50%; background:var(--ac,#2563eb); }
#overviewMatchView .ovx-body{ padding:6px 14px 14px; }
#overviewMatchView .ovx-body--caro{ padding:4px 8px 10px; }
#overviewMatchView .ovx-empty,#overviewMatchView .ovx-skel{ color:var(--mh-mute); font-size:13px; text-align:center; padding:16px 8px; }
#overviewMatchView .ovx-goto{ display:block; width:100%; margin-top:8px; border:0; background:transparent; color:var(--mh-accent);
  font:inherit; font-weight:700; font-size:12.5px; text-align:right; cursor:pointer; padding:4px 2px 0; }
/* MATCH */
#overviewMatchView .ovx-match{ padding:4px 0 12px; }
#overviewMatchView .ovx-mtop{ display:flex; align-items:center; gap:8px; padding:0 14px 6px; font-size:12.5px; color:var(--mh-mute); font-weight:600; }
#overviewMatchView .ovx-mcomp{ white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
#overviewMatchView .ovx-mmid{ display:grid; grid-template-columns:1fr auto 1fr; align-items:center; gap:8px; padding:8px 12px 6px; }
#overviewMatchView .ovx-side{ display:flex; flex-direction:column; align-items:center; gap:6px; text-align:center; min-width:0; }
#overviewMatchView .ovx-crest{ width:66px; height:66px; border-radius:15px; display:grid; place-items:center; background:var(--c,#334155);
  box-shadow:0 2px 8px rgba(15,27,51,.14); overflow:hidden; }
#overviewMatchView .ovx-crest img{ width:100%; height:100%; object-fit:contain; padding:7px; }
#overviewMatchView .ovx-crest .mh-team-logo--fallback{ color:#fff; font-weight:800; font-family:var(--font-title,inherit); font-size:21px; }
#overviewMatchView .ovx-sn{ font-weight:700; font-size:13px; max-width:150px; line-height:1.15; }
#overviewMatchView .ovx-st{ font-size:11px; color:var(--mh-mute); }
#overviewMatchView .ovx-vs{ font-family:var(--font-title,inherit); font-weight:700; color:var(--mh-mute); }
#overviewMatchView .ovx-mcta{ padding:6px 14px 0; }
#overviewMatchView .ovx-tg{ display:flex; align-items:center; justify-content:center; gap:8px; width:100%; background:#229ED9; color:#fff;
  border:0; border-radius:12px; padding:11px; font:inherit; font-weight:700; font-size:14px; text-decoration:none; cursor:pointer; }
#overviewMatchView .ovx-tg--off{ background:#eef2f7; color:#94a3b8; }
#overviewMatchView .ovx-chips{ display:flex; flex-wrap:wrap; gap:8px; padding:12px 14px 0; }
#overviewMatchView .ovx-chip{ display:flex; align-items:center; gap:7px; background:#f3f6fb; border:1px solid var(--mh-line); border-radius:10px; padding:6px 9px; font-size:12px; font-weight:600; }
#overviewMatchView .ovx-chip small{ color:var(--mh-mute); font-weight:500; }
#overviewMatchView .ovx-chipnm{ max-width:120px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
#overviewMatchView .ovx-vn{ font-style:normal; font-weight:800; font-size:9.5px; padding:2px 6px; border-radius:999px; }
#overviewMatchView .ovx-vn.casa{ background:rgba(22,163,74,.14); color:var(--mh-home); }
#overviewMatchView .ovx-vn.tras{ background:rgba(217,119,6,.16); color:var(--mh-away); }
#overviewMatchView .ovx-chiptg{ color:#229ED9; text-decoration:none; font-size:13px; }
/* RESULTS */
#overviewMatchView .ovx-rblock{ margin-bottom:8px; }
#overviewMatchView .ovx-rh{ font-size:11px; color:var(--mh-mute); font-weight:700; text-transform:uppercase; letter-spacing:.3px; margin-bottom:3px; }
#overviewMatchView .ovx-rrow{ display:flex; align-items:center; gap:8px; font-size:13px; padding:5px 0; border-top:1px dashed var(--mh-line); }
#overviewMatchView .ovx-rblock .ovx-rrow:first-of-type{ border-top:0; }
#overviewMatchView .ovx-tt{ flex:1; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
#overviewMatchView .ovx-sc{ font-family:var(--font-title,inherit); font-weight:800; background:#eef2f7; border-radius:7px; padding:2px 8px; font-size:12.5px; }
#overviewMatchView .ovx-sc.win{ background:rgba(22,163,74,.14); color:#15803d; }
#overviewMatchView .ovx-sc.lose{ background:rgba(220,38,38,.12); color:#b91c1c; }
/* MOVES */
#overviewMatchView .ovx-mv{ display:flex; align-items:center; gap:9px; font-size:12.5px; padding:7px 0; border-top:1px dashed var(--mh-line); }
#overviewMatchView #ovxMoves .ovx-mv:first-of-type{ border-top:0; }
#overviewMatchView .ovx-mnm{ font-weight:700; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; max-width:45%; }
#overviewMatchView .ovx-mtx{ margin-left:auto; color:var(--mh-mute); white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
/* DEADLINES */
#overviewMatchView .ovx-dl{ display:flex; align-items:center; gap:10px; padding:8px 0; border-top:1px dashed var(--mh-line); }
#overviewMatchView #ovxDeadlines .ovx-dl:first-of-type{ border-top:0; }
#overviewMatchView .ovx-dlc{ min-width:48px; text-align:center; font-family:var(--font-title,inherit); font-weight:800; color:var(--deadlines); font-size:12.5px; }
#overviewMatchView .ovx-dlc.today{ color:#fff; background:var(--unav); border-radius:999px; padding:3px 8px; font-size:10.5px; }
#overviewMatchView .ovx-dltx{ font-size:12.5px; } #overviewMatchView .ovx-dltx small{ color:var(--mh-mute); display:block; font-size:11px; }
/* UNAV */
#overviewMatchView .ovx-uv{ display:flex; align-items:center; gap:10px; padding:8px 0; border-top:1px dashed var(--mh-line); }
#overviewMatchView .cu .ovx-uv:first-of-type{ border-top:0; }
#overviewMatchView .ovx-av{ width:32px; height:32px; border-radius:50%; background:#f1f5f9; display:grid; place-items:center; font-size:14px; flex:0 0 auto; }
#overviewMatchView .ovx-upn{ font-weight:700; font-size:13px; } #overviewMatchView .ovx-upr{ font-size:11px; color:var(--mh-mute); }
#overviewMatchView .ovx-ubd{ margin-left:auto; background:rgba(220,38,38,.1); color:var(--unav); font-weight:800; font-size:10.5px; padding:4px 9px; border-radius:999px; text-align:right; flex:0 0 auto; }
#overviewMatchView .ovx-cnt{ opacity:.85; }
/* NAV shortcuts */
#overviewMatchView .ovx-navg{ display:grid; grid-template-columns:repeat(auto-fill,minmax(92px,1fr)); gap:9px; }
#overviewMatchView .ovx-navt{ background:#f7f9fc; border:1px solid var(--mh-line); border-radius:12px; padding:12px 8px; text-align:center;
  font:inherit; font-size:12px; font-weight:700; color:var(--mh-ink); cursor:pointer; }
#overviewMatchView .ovx-navt:hover{ background:#eef2fb; }
#overviewMatchView .ovx-ic{ display:block; font-size:19px; margin-bottom:5px; }
/* comps card: carosello più stretto dentro il bento */
#overviewMatchView .ovx .mh-caro .mh-ccard{ flex:0 0 240px; }
/* 19/10/2026 — card "Prossima partita": footer-link al Calendario (I miei impegni) */
#overviewMatchView .ovx-gofoot{ padding:0 14px 14px; }
#overviewMatchView .ovx-gofoot .ovx-goto{ margin-top:0; background:#f1f5fb; border:1px solid var(--mh-line); border-radius:10px;
  padding:10px 12px; font:inherit; font-size:12.5px; font-weight:700; color:var(--mh-accent); cursor:pointer; }
#overviewMatchView .ovx-gofoot .ovx-goto:hover{ background:#e7eefb; }
/* 19/10/2026 — card FAQ (sostituisce le scorciatoie) */
#overviewMatchView .ovx-faq{ display:flex; align-items:center; gap:11px; width:100%; text-align:left; cursor:pointer;
  background:#f7f9fc; border:1px solid var(--mh-line); border-radius:12px; padding:12px; font:inherit; color:var(--mh-ink); }
#overviewMatchView .ovx-faq:hover{ background:#eef2fb; }
#overviewMatchView .ovx-faq-ic{ width:38px; height:38px; flex:0 0 auto; border-radius:10px; display:grid; place-items:center;
  background:rgba(71,85,105,.12); font-size:18px; }
#overviewMatchView .ovx-faq-tx{ min-width:0; display:flex; flex-direction:column; }
#overviewMatchView .ovx-faq-tx strong{ font-size:13.5px; }
#overviewMatchView .ovx-faq-tx small{ font-size:11px; color:var(--mh-mute); }
#overviewMatchView .ovx-faq-go{ margin-left:auto; color:var(--mh-mute); font-size:20px; font-weight:800; flex:0 0 auto; }
/* ===================== /PANORAMICA UNIFICATA ===================== */

/* 19/10/2026 — CALENDARIO unificato: tab "I miei impegni" / "Calendario" */
#calendarView .caltabs{ display:flex; gap:8px; margin:0 0 14px; flex-wrap:wrap; }
#calendarView .caltab{ background:var(--surface-2,#eef3f9); border:1px solid var(--line,var(--line)); border-radius:999px;
  padding:9px 16px; font:inherit; font-size:13px; font-weight:700; color:var(--muted,#66758d); cursor:pointer; transition:background .15s,color .15s,border-color .15s; }
#calendarView .caltab:hover{ background:#e4ecf6; }
#calendarView .caltab.on{ background:var(--brand,#2563eb); border-color:var(--brand,#2563eb); color:#fff; }
#calendarView .caltab-panel{ min-width:0; }

/* ===================== PANORAMICA — ritocchi movimenti/risultati/prossime (2026-10-17) ===================== */
/* Prossime partite sotto la hero */
#overviewMatchView .ovx-nextwrap{ padding:12px 14px 2px; }
#overviewMatchView .ovx-nexth{ font-size:11px; font-weight:800; letter-spacing:.3px; text-transform:uppercase; color:var(--mh-mute); margin-bottom:8px; }
#overviewMatchView .ovx-next{ display:flex; flex-direction:column; gap:7px; }
#overviewMatchView .ovx-nrow{ display:flex; align-items:center; gap:10px; background:#f7f9fc; border:1px solid var(--mh-line); border-radius:11px; padding:7px 10px; }
#overviewMatchView .ovx-ninfo{ min-width:0; }
#overviewMatchView .ovx-nopp{ font-weight:700; font-size:13px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
#overviewMatchView .ovx-nsub{ font-size:11px; color:var(--mh-mute); white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
#overviewMatchView .ovx-ntg{ width:30px; height:30px; border-radius:8px; }
#overviewMatchView .ovx-nonote{ font-size:12.5px; color:var(--mh-mute); background:#f7f9fc; border:1px dashed var(--mh-line); border-radius:11px; padding:10px; text-align:center; }
/* Ultimi movimenti — foto + loghi + freccia, riempie la card */
#overviewMatchView .cm .ovx-body{ display:flex; flex-direction:column; height:100%; }
#overviewMatchView .ovx-mvs{ display:flex; flex-direction:column; gap:8px; flex:1 1 auto; }
#overviewMatchView .ovx-mv2{ display:flex; align-items:center; gap:11px; background:#f7f9fc; border:1px solid var(--mh-line); border-radius:12px; padding:8px 10px; }
#overviewMatchView .ovx-mv2 .transfer-player-face{ width:40px; height:40px; border-radius:50%; object-fit:cover; background:#e2e8f0; flex:0 0 auto; }
#overviewMatchView .ovx-mv2 .transfer-player-face-fallback{ display:grid; place-items:center; color:#94a3b8; font-size:16px; }
#overviewMatchView .ovx-mv2info{ min-width:0; flex:1 1 auto; }
#overviewMatchView .ovx-mv2nm{ font-weight:700; font-size:13.5px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
#overviewMatchView .ovx-mv2teams{ display:flex; align-items:center; gap:7px; margin-top:3px; }
/* 18/10/2026 — badge tipo (DEFINITIVO/…) sulla riga dei loghi, a destra: così il
   nome usa tutta la larghezza della card e non viene più tagliato. */
#overviewMatchView .ovx-mv2type{ margin-left:auto; }
#overviewMatchView .ovx-mlogo{ width:22px; height:22px; border-radius:5px; object-fit:contain; background:var(--surface); flex:0 0 auto; }
#overviewMatchView .ovx-mlogo--fb{ display:grid; place-items:center; font-size:9px; font-weight:800; color:#64748b; background:#eef2f7; }
#overviewMatchView .ovx-mv2arr{ color:var(--moves); font-weight:800; font-size:14px; }
#overviewMatchView .ovx-mv2type{ font-size:10px; font-weight:800; color:var(--moves); background:rgba(22,163,74,.1); border-radius:999px; padding:3px 8px; flex:0 0 auto; text-transform:uppercase; letter-spacing:.2px; }
/* Ultimi risultati — card competizione compatte */
#overviewMatchView .cr .ovx-body{ padding-bottom:10px; }
#overviewMatchView .ovx-rescards{ display:flex; flex-wrap:wrap; gap:10px; }
#overviewMatchView .ovx-rescard{ flex:1 1 220px; min-width:200px; background:#f7f9fc; border:1px solid var(--mh-line); border-radius:12px; padding:8px 10px; }
#overviewMatchView .ovx-rech{ display:flex; align-items:center; gap:8px; margin-bottom:6px; }
#overviewMatchView .ovx-reclogo{ width:24px; height:24px; border-radius:6px; object-fit:contain; background:var(--surface); flex:0 0 auto; }
#overviewMatchView .ovx-reclogo--fb{ display:grid; place-items:center; font-size:10px; font-weight:800; color:#3657b5; background:#eef2ff; }
#overviewMatchView .ovx-rect{ font-family:var(--font-title,inherit); font-weight:700; font-size:12.5px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
#overviewMatchView .ovx-rm{ display:grid; grid-template-columns:1fr auto 1fr; align-items:center; gap:6px; padding:4px 0; font-size:12px; border-top:1px dashed var(--mh-line); }
#overviewMatchView .ovx-rescard .ovx-rm:first-of-type{ border-top:0; }
#overviewMatchView .ovx-rm--me{ font-weight:700; }
#overviewMatchView .ovx-rmt{ white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
#overviewMatchView .ovx-rmt--a{ text-align:right; }
#overviewMatchView .ovx-rmsc{ font-family:var(--font-title,inherit); font-weight:800; font-size:12px; background:#eef2f7; border-radius:6px; padding:1px 7px; }
#overviewMatchView .ovx-rmsc.win{ background:rgba(22,163,74,.14); color:#15803d; }
#overviewMatchView .ovx-rmsc.lose{ background:rgba(220,38,38,.12); color:#b91c1c; }
/* ===================== /PANORAMICA ritocchi ===================== */


/* ===================== CALENDARIO IMPEGNI DEL MESE — CAL-L1 ===================== */
/* ====== CALENDARIO IMPEGNI (rework 19/10/2026) — stile allineato all'app ====== */
#calImpegniView .cali2{max-width:100%}
#calImpegniView .cali2-head{display:flex;align-items:center;justify-content:space-between;gap:14px;flex-wrap:wrap;margin:0 0 14px}
#calImpegniView .cali2-title h2{margin:0;font-size:20px;font-weight:800;color:var(--text);letter-spacing:-.01em}
#calImpegniView .cali2-title p{margin:3px 0 0;font-size:13px;font-weight:600;color:var(--muted)}
#calImpegniView .cali-mnav{display:inline-flex;align-items:center;gap:10px}
#calImpegniView .cali-mnav button{width:34px;height:34px;border-radius:10px;border:1px solid var(--line);background:var(--surface);color:var(--text);font-size:18px;font-weight:700;cursor:pointer;line-height:1}
#calImpegniView .cali-mnav button:hover:not(:disabled){border-color:var(--brand);color:var(--brand)}
#calImpegniView .cali-mnav button:disabled{opacity:.35;cursor:not-allowed}
#calImpegniView .cali-mlabel{font-weight:800;font-size:15px;min-width:132px;text-align:center;color:var(--text)}

#calImpegniView .cali-toolbar{display:flex;align-items:center;gap:12px;flex-wrap:wrap;margin:0 0 14px}
#calImpegniView .cali-teamsel{display:inline-flex;align-items:center;gap:8px;font-size:11px;font-weight:700;letter-spacing:.06em;text-transform:uppercase;color:var(--muted)}
#calImpegniView .cali-teamsel select{font-size:13px;font-weight:600;color:var(--text);background:var(--surface);border:1px solid var(--line);border-radius:10px;padding:7px 10px;max-width:240px}
#calImpegniView .cali-filters{display:flex;flex-wrap:wrap;gap:7px}
#calImpegniView .cali-chip{display:inline-flex;align-items:center;gap:7px;padding:7px 12px;border-radius:999px;border:1px solid var(--line);background:var(--surface);color:var(--text);font-weight:700;font-size:12.5px;cursor:pointer;transition:background .12s,border-color .12s,color .12s}
#calImpegniView .cali-chip:hover{border-color:var(--brand)}
#calImpegniView .cali-chip .cali-cdot{width:10px;height:10px;border-radius:3px;background:var(--cc,#334)}
#calImpegniView .cali-chip .cali-cic{font-size:13px;line-height:1}
#calImpegniView .cali-chip[aria-pressed="true"]{background:var(--cc);border-color:var(--cc);color:#fff}
#calImpegniView .cali-chip[aria-pressed="true"] .cali-cdot{background:rgba(255,255,255,.9)}
#calImpegniView .cali-chip--all{--cc:#1f3350}
#calImpegniView .cali-chip--camp{--cc:#185FA5} #calImpegniView .cali-chip--coppa{--cc:#A32D2D} #calImpegniView .cali-chip--eu{--cc:#534AB7}
#calImpegniView .cali-chip--super{--cc:#BA7517} #calImpegniView .cali-chip--merc{--cc:#3B6D11} #calImpegniView .cali-chip--save{--cc:#5F5E5A}

#calImpegniView .cali-board{background:var(--surface);border:1px solid var(--line);border-radius:16px;box-shadow:var(--shadow);padding:16px}
#calImpegniView .cali-wk{display:grid;grid-template-columns:repeat(7,1fr);gap:7px;margin-bottom:8px}
#calImpegniView .cali-wk span{font-size:11px;font-weight:700;letter-spacing:.06em;text-transform:uppercase;color:var(--muted);text-align:center}
#calImpegniView .cali-grid{display:grid;grid-template-columns:repeat(7,1fr);gap:7px}

#calImpegniView .cali-cell{position:relative;border-radius:11px;border:1px solid var(--line);background:var(--surface);aspect-ratio:1/1;overflow:hidden;transition:opacity .2s,filter .2s}
#calImpegniView .cali-cell .cali-dn{position:absolute;top:5px;left:7px;font-weight:700;font-size:11px;color:var(--muted);z-index:4}
/* evidenziazione Oggi/Domani (sempre aggiornata) */
#calImpegniView .cali-cell .cali-dn--today,
#calImpegniView .cali-cell .cali-dn--tomorrow{top:4px;left:4px;display:inline-flex;align-items:center;gap:3px;padding:1px 6px;border-radius:7px;background:var(--surface);box-shadow:0 1px 3px rgba(0,0,0,.18);text-shadow:none}
#calImpegniView .cali-cell .cali-dn--today{color:var(--brand) !important;border:1.5px solid var(--brand)}
#calImpegniView .cali-cell .cali-dn--today b{color:var(--brand);font-size:9.5px;text-transform:uppercase;letter-spacing:.03em}
#calImpegniView .cali-cell .cali-dn--tomorrow{color:var(--text) !important;border:1px solid var(--muted)}
#calImpegniView .cali-cell .cali-dn--tomorrow b{color:var(--muted);font-size:9.5px;text-transform:uppercase;letter-spacing:.03em}
/* anello attorno alla cella di oggi — :has la aggancia senza toccare ogni div */
#calImpegniView .cali-cell:has(.cali-dn--today){box-shadow:0 0 0 2.5px var(--brand)}
#calImpegniView .cali-cell:has(.cali-dn--tomorrow){box-shadow:0 0 0 1.5px var(--muted)}
#calImpegniView .cali-cell.cali-out{background:transparent;border-style:dashed;border-color:#e6ebf3}
#calImpegniView .cali-cell.cali-out .cali-dn{color:#c2ccdb}
#calImpegniView .cali-cell.cali-neutral{background:var(--surface-2)}
#calImpegniView .cali-cell.cali-ev{border:none}
#calImpegniView .cali-cell.cali-ev .cali-dn{color:#fff;text-shadow:0 1px 2px rgba(0,0,0,.35)}
#calImpegniView .cali-cell.cali-dim{opacity:.3}

/* strisce verticali ME1 */
#calImpegniView .cali-strips{position:absolute;inset:0;display:flex;z-index:1}
#calImpegniView .cali-strip{flex:1 1 0;min-width:0;position:relative;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;padding:3px;color:#fff;overflow:hidden}
#calImpegniView .cali-strip + .cali-strip{box-shadow:inset 1px 0 0 rgba(255,255,255,.4)}
/* CL-A: barra-accento col colore secondario del MASTER, in alto nella striscia,
   per distinguere competizioni con primario simile (Serie C vs Coppa FMTO ecc.) */
#calImpegniView .cali-stripacc{position:absolute;top:0;left:0;right:0;height:3px;z-index:2}
/* SG-A: sigla competizione in BASSO (non collide col numero del giorno) */
#calImpegniView .cali-stripsig{position:absolute;bottom:3px;left:0;right:0;margin:0 auto;width:max-content;max-width:92%;text-align:center;font-weight:800;font-size:8px;letter-spacing:.03em;background:rgba(0,0,0,.18);padding:1px 5px;border-radius:5px;line-height:1.3}
#calImpegniView .cali-stripmain{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;margin-top:3px}
#calImpegniView .cali-crest{position:relative;width:26px;height:26px;border-radius:50%;overflow:hidden;background:var(--surface);display:grid;place-items:center;box-shadow:0 2px 6px rgba(0,0,0,.28);flex:none}
#calImpegniView .cali-crest img{position:absolute;inset:0;width:100%;height:100%;object-fit:contain;z-index:2}
#calImpegniView .cali-crest b{display:none;font-weight:800;font-size:9px;color:#1f3350}
#calImpegniView .cali-crest--fb b{display:block}
#calImpegniView .cali-venue{font-size:12px;line-height:1}
#calImpegniView .cali-vic{width:12px;height:12px;fill:currentColor;display:inline-block;vertical-align:middle}
#calImpegniView .cali-lrow .cali-vic,#calImpegniView .cali-dt-vn .cali-vic{width:14px;height:14px;margin-right:2px}
#calImpegniView .cali-venue.cali-ar{font-size:8.5px;font-weight:800;letter-spacing:.02em;background:rgba(255,255,255,.26);padding:1px 4px;border-radius:5px}
#calImpegniView .cali-phlabel{font-weight:800;font-size:11px;text-align:center;line-height:1.1;padding:0 2px}

/* mercato/save come protagonista (filtro) */
#calImpegniView .cali-task{gap:2px;margin-top:0}
#calImpegniView .cali-taskic{font-size:19px;line-height:1}
#calImpegniView .cali-tasklbl{font-weight:800;font-size:9px;letter-spacing:.02em;text-transform:uppercase;text-align:center;line-height:1.1;padding:0 2px}

/* marcatore discreto mercato/save (angolo in alto a destra, non collide con la
   sigla in basso) */
#calImpegniView .cali-mk{position:absolute;top:5px;right:5px;display:flex;gap:3px;z-index:5}
#calImpegniView .cali-mk i{width:7px;height:7px;border-radius:50%}
#calImpegniView .cali-ev .cali-mk i{box-shadow:0 0 0 1.5px rgba(255,255,255,.9)}
#calImpegniView .cali-mk--merc{background:#3B6D11}
#calImpegniView .cali-mk--save{background:#5F5E5A}

/* MB-A: pallini per telefono (nascosti su desktop) */
#calImpegniView .cali-dots-m{display:none}

/* pannello dettaglio del giorno (tap) + fascia Coppa FMTO */
#calImpegniView .cali-detail{display:none;margin-top:12px;background:var(--surface);border:1px solid var(--line);border-radius:14px;box-shadow:var(--shadow);padding:10px 12px}
#calImpegniView .cali-detail.open{display:block}
#calImpegniView .cali-dt-head{display:flex;align-items:center;justify-content:space-between;font-weight:800;font-size:14px;text-transform:capitalize;margin-bottom:8px}
#calImpegniView .cali-dt-x{border:none;background:var(--surface-2);color:var(--muted);width:28px;height:28px;border-radius:8px;font-size:18px;line-height:1;cursor:pointer}
#calImpegniView .cali-dt-x:hover{color:var(--text)}
#calImpegniView .cali-dt-row{display:flex;align-items:center;gap:10px;border:1px solid var(--line);border-left-width:5px;border-radius:10px;padding:8px 11px;margin-bottom:7px}
#calImpegniView .cali-dt-row:last-child{margin-bottom:0}
#calImpegniView .cali-dt-badge{font-size:10px;font-weight:800;color:#fff;padding:3px 7px;border-radius:999px;white-space:nowrap;min-width:20px;text-align:center}
#calImpegniView .cali-dt-crest{width:30px;height:30px;margin-top:0;box-shadow:none;border:1px solid var(--line)}
#calImpegniView .cali-dt-crest b{color:#333}
#calImpegniView .cali-dt-main{flex:1;min-width:0}
#calImpegniView .cali-dt-main b{display:block;font-size:14px;font-weight:700;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
#calImpegniView .cali-dt-main small{display:block;font-size:11.5px;color:var(--muted)}
#calImpegniView .cali-dt-vn{font-weight:800;font-size:12px;white-space:nowrap}
#calImpegniView .cali-dt-empty{color:var(--muted);font-size:13px;padding:6px 2px}

#calImpegniView .cali-fmto{margin-top:12px;background:var(--surface);border:1px solid var(--line);border-radius:14px;box-shadow:var(--shadow);padding:10px 12px}
#calImpegniView .cali-fmto-h{display:flex;align-items:center;gap:8px;font-weight:800;font-size:13px;margin-bottom:8px}
#calImpegniView .cali-fmto-h .cali-cdot{width:11px;height:11px;border-radius:3px}
#calImpegniView .cali-fmto .cali-dt-row:last-child{margin-bottom:0}

#calImpegniView .cali-legend{display:flex;flex-wrap:wrap;align-items:center;gap:14px;margin:14px 2px 0}
#calImpegniView .cali-lrow{display:inline-flex;align-items:center;gap:6px;font-size:12.5px;color:var(--muted);font-weight:600}
#calImpegniView .cali-lrow i{width:9px;height:9px;border-radius:50%}
#calImpegniView .cali-note{color:var(--muted);font-style:italic;font-weight:500;font-size:12px;margin-left:auto}

@media(min-width:900px){
  #calImpegniView .cali-cell{aspect-ratio:auto;height:72px}
}
@media(min-width:1280px){ #calImpegniView .cali-cell{height:80px} }
@media(max-width:899px){
  #calImpegniView .cali-board{padding:12px;border-radius:14px}
  #calImpegniView .cali-wk{gap:5px;margin-bottom:6px}
  #calImpegniView .cali-wk span{font-size:10px}
  #calImpegniView .cali-grid{gap:5px}
  #calImpegniView .cali-cell{aspect-ratio:auto;height:62px;border-radius:9px}
  #calImpegniView .cali-cell .cali-dn{font-size:10px;top:4px;left:5px}
  #calImpegniView .cali-stripmain{margin-top:4px;gap:2px}
  #calImpegniView .cali-crest{width:20px;height:20px}
  #calImpegniView .cali-crest b{font-size:7.5px}
  #calImpegniView .cali-venue{font-size:10px}
  #calImpegniView .cali-stripsig{font-size:6.5px;padding:1px 3px;bottom:2px}
  #calImpegniView .cali-taskic{font-size:15px}
  #calImpegniView .cali-tasklbl{font-size:7px;letter-spacing:0}
  #calImpegniView .cali-mlabel{font-size:14px;min-width:120px}
  #calImpegniView .cali-mnav button{width:32px;height:32px;font-size:16px}
}
/* MB-A: telefono stretto → niente strisce testuali, solo pallini + tap per il
   dettaglio del giorno. */
@media(max-width:560px){
  #calImpegniView .cali-cell{height:48px;border-radius:8px}
  #calImpegniView .cali-strips{display:none}
  #calImpegniView .cali-mk{display:none}
  #calImpegniView .cali-cell.cali-ev .cali-dn,
  #calImpegniView .cali-cell.cali-neutral .cali-dn{color:var(--text);text-shadow:none}
  #calImpegniView .cali-dots-m{display:flex;gap:4px;justify-content:center;position:absolute;left:0;right:0;bottom:6px}
  #calImpegniView .cali-dots-m i{width:9px;height:9px;border-radius:50%}
  #calImpegniView .cali-wk span{font-size:9px}
  #calImpegniView .cali-grid{gap:4px}
  /* su telefono lo spazio è poco: nelle celle Oggi/Domani tengo solo il numero
     in pill, l'etichetta testuale è di troppo */
  #calImpegniView .cali-cell .cali-dn--today b,
  #calImpegniView .cali-cell .cali-dn--tomorrow b{display:none}
  #calImpegniView .cali-cell .cali-dn--today,
  #calImpegniView .cali-cell .cali-dn--tomorrow{padding:0 4px}
}

/* ===================== FAQ (19/10/2026) ===================== */
#faqView .faq2{max-width:880px}
#faqView .faq-head{margin:0 0 14px}
#faqView .faq-head h2{margin:0;font-size:20px;font-weight:800;color:var(--text);letter-spacing:-.01em}
#faqView .faq-head p{margin:3px 0 0;font-size:13px;font-weight:600;color:var(--muted)}
#faqView .faq-search{position:relative;margin:0 0 16px}
#faqView .faq-search input{width:100%;font-size:14px;color:var(--text);background:var(--surface);border:1px solid var(--line);border-radius:12px;padding:11px 14px}
#faqView .faq-search input:focus{outline:none;border-color:var(--brand);box-shadow:0 0 0 3px rgba(37,99,235,.12)}
#faqView .faq-noresult{display:block;color:var(--muted);font-size:13px;margin-top:8px}
#faqView .faq-noresult[hidden]{display:none}
#faqView .faq-cat{margin:0 0 18px}
#faqView .faq-cat h3{font-size:12px;font-weight:800;letter-spacing:.07em;text-transform:uppercase;color:var(--brand);margin:0 0 8px}
#faqView .faq-item{background:var(--surface);border:1px solid var(--line);border-radius:12px;margin-bottom:8px;overflow:hidden}
#faqView .faq-item:last-child{margin-bottom:0}
#faqView .faq-q{width:100%;display:flex;align-items:center;gap:12px;justify-content:space-between;text-align:left;background:none;border:none;cursor:pointer;padding:13px 15px;font-size:14.5px;font-weight:700;color:var(--text);line-height:1.35}
#faqView .faq-q:hover{color:var(--brand)}
#faqView .faq-chev{flex:none;width:22px;height:22px;border-radius:7px;background:var(--surface-2);color:var(--muted);display:grid;place-items:center;font-size:17px;font-weight:700;line-height:1;transition:transform .18s ease,background .18s ease,color .18s ease}
#faqView .faq-item.open .faq-chev{transform:rotate(45deg);background:var(--brand);color:#fff}
#faqView .faq-a{max-height:0;overflow:hidden;transition:max-height .22s ease}
#faqView .faq-item.open .faq-a{max-height:1200px}
#faqView .faq-a-in{padding:0 15px 14px;font-size:14px;line-height:1.55;color:var(--muted)}
@media(max-width:560px){
  #faqView .faq-q{font-size:13.5px;padding:11px 12px}
  #faqView .faq-a-in{font-size:13px;padding:0 12px 12px}
}

/* DATA refertazione movimenti — chip card + cella tabella (23/10/2026) */
.tr-op__head .tr-op__date{ font-size:11.5px; font-weight:700; color:#5b6b85; background:#eef2f8; border:1px solid #e2e8f2; border-radius:999px; padding:2px 9px; margin-left:8px; white-space:nowrap; }
.tr-table .tr-td-date{ white-space:nowrap; color:#475569; font-variant-numeric:tabular-nums; font-size:12.5px; }

/* Nome squadra cliccabile → Club Hub (sezione rosa) — 23/10/2026 */
.team-nav-link{ cursor:pointer; }
.team-nav-link:hover,.team-nav-link:focus-within{ text-decoration:underline; text-decoration-thickness:1px; text-underline-offset:2px; }
.fb-team.team-nav-link:hover .fb-team-name{ text-decoration:underline; text-underline-offset:2px; }

/* Vetrina: tasto "Copia" sulle pubblicazioni passate — precompila il modulo offerta (24/10/2026) */
.mgr-showcase-row .mgr-showcase-copy{ margin-left:10px; flex:0 0 auto; align-self:center; border:1px solid #c7d2fe; background:#eef2ff; color:#1d4ed8; font-weight:700; font-size:12px; padding:6px 10px; border-radius:8px; cursor:pointer; white-space:nowrap; }
.mgr-showcase-row .mgr-showcase-copy:hover{ background:#e0e7ff; }

/* Vetrina Cedibili — card V3 (mobile, <=760px) — 24/10/2026 */
@media (min-width: 761px){ .showcase-cards{ display:none; } }
.sc-card{ background:var(--surface); border:1px solid var(--line); border-left:4px solid #16a34a; border-radius:14px; box-shadow:0 1px 4px rgba(16,36,70,.06); padding:11px 13px; margin-bottom:10px; }
.sc-card.sc-sold{ border-left-color:#dc2626; }
.sc-card.sc-released{ border-left-color:#d97706; }
.sc-card.sc-off{ border-left-color:#94a3b8; }
.sc-c-top{ display:flex; align-items:center; gap:8px; margin-bottom:7px; min-width:0; }
.sc-c-crest{ display:inline-flex; flex:0 0 auto; }
.sc-c-crest .transfer-team-logo, .sc-c-crest .transfer-team-fallback{ width:24px; height:24px; }
.sc-c-team{ font-size:13.5px; font-weight:800; color:#0f2747; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; min-width:0; }
.sc-c-date{ margin-left:auto; color:var(--muted); font-size:12px; font-weight:600; white-space:nowrap; flex:0 0 auto; }
.sc-c-top .showcase-state{ flex:0 0 auto; }
.sc-c-namerow{ display:flex; align-items:baseline; justify-content:space-between; gap:8px; margin-bottom:8px; min-width:0; }
.sc-c-name{ font-size:16px; font-weight:800; color:var(--brand); background:none; border:0; padding:0; cursor:pointer; text-align:left; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; min-width:0; }
.sc-c-sub{ color:var(--muted); font-size:12px; font-weight:600; white-space:nowrap; flex:0 0 auto; }
.sc-c-offer{ display:grid; grid-template-columns:1fr 1fr 1fr; background:#f7f9fc; border:1px solid var(--line); border-radius:10px; overflow:hidden; margin-bottom:8px; }
.sc-c-offer > div{ padding:7px 10px; border-right:1px solid var(--line); display:flex; flex-direction:column; gap:2px; min-width:0; }
.sc-c-offer > div:last-child{ border-right:0; }
.sc-c-lbl{ font-size:9px; font-weight:800; letter-spacing:.03em; text-transform:uppercase; color:#94a3b8; }
.sc-c-val{ font-size:13px; font-weight:800; color:#0f2747; line-height:1.2; overflow-wrap:break-word; }
.sc-c-foot{ display:flex; align-items:flex-start; justify-content:space-between; gap:10px; }
.sc-c-contact{ color:var(--brand); font-size:12.5px; font-weight:800; text-decoration:none; flex:0 0 auto; }
.sc-c-contact-missing{ color:var(--muted); flex:0 0 auto; }
.sc-c-note{ color:#475569; font-size:12.5px; line-height:1.35; text-align:right; display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden; cursor:pointer; min-width:0; }
.sc-c-note.open{ -webkit-line-clamp:unset; display:block; }


/* Barra di switch competizioni (vista competizione, stile Referti Staff) */
.competition-switch{
  display:flex; align-items:center; gap:8px; overflow-x:auto; -webkit-overflow-scrolling:touch;
  padding:4px 2px 10px; margin:0 0 10px; scrollbar-width:thin;
}
.competition-switch__chip{
  flex:0 0 auto; display:inline-flex; align-items:center; gap:7px;
  padding:6px 11px; border-radius:999px; border:1px solid var(--line);
  background:var(--surface); color:#2a3b57; font-size:12.5px; font-weight:800;
  cursor:pointer; white-space:nowrap; transition:border-color .15s, box-shadow .15s, background .15s;
}
.competition-switch__chip:hover{ border-color:#c7d3e4; box-shadow:0 4px 12px rgba(31,49,79,.08); }
.competition-switch__chip.is-current{
  background:#eef4ff; border-color:#9bbcf0; color:#1e4fa3; cursor:default;
}
.competition-switch__logo{ width:20px; height:20px; object-fit:contain; flex:0 0 auto; }
.competition-switch .competition-fallback{
  width:20px; height:20px; display:inline-grid; place-items:center; font-size:9px; font-weight:800;
  background:var(--surface-2); color:#607089; border-radius:6px;
}

/* =====================================================================
   DARK MODE — DK1 "Nero OLED"
   Attivo con <html data-theme="dark">. Additivo: non tocca il tema chiaro.
   Gli export PNG (ce-*, fmto-club-export, roster-export, pbx, rkh) restano
   chiari di proposito (sono immagini generate). Da raffinare sezione per
   sezione con gli screenshot su deploy-test.
   ===================================================================== */
:root[data-theme="dark"]{
  --bg:#000000;
  --surface:#0e0f12;
  --surface-2:#17181d;
  --text:#f2f4f8;
  --muted:#8b93a1;
  --line:#262830;
  --brand:#3b82f6;
  --brand-dark:#1e40af;
  --success:#34d399;
  --warning:#fbbf24;
  --shadow:0 18px 44px rgba(0,0,0,.7);
  color-scheme:dark;
}
:root[data-theme="dark"] body{ background:var(--bg); }

/* --- superfici "bianche" hardcoded -> superficie scura --- */
:root[data-theme="dark"] .status-card,
:root[data-theme="dark"] .club-panel,
:root[data-theme="dark"] .club-kpi,
:root[data-theme="dark"] .roster-card,
:root[data-theme="dark"] .player-search-panel,
:root[data-theme="dark"] .player-result,
:root[data-theme="dark"] .player-adv-panel,
:root[data-theme="dark"] .compare-picker,
:root[data-theme="dark"] .compare-pick-result,
:root[data-theme="dark"] .compare-card,
:root[data-theme="dark"] .compare-summary-card,
:root[data-theme="dark"] .compare-table-wrap,
:root[data-theme="dark"] .club-directory-card,
:root[data-theme="dark"] .club-loading,
:root[data-theme="dark"] .detail-drawer,
:root[data-theme="dark"] .adv-results-table tbody tr,
:root[data-theme="dark"] .adv-results-table tbody td{
  background: var(--surface);
  color: var(--text);
}

/* --- bottone secondario / select compatta / chip --- */
:root[data-theme="dark"] .secondary-button,
:root[data-theme="dark"] .compact-select,
:root[data-theme="dark"] .competition-chip.clickable{
  background: var(--surface-2);
  color: var(--text);
  border-color: var(--line);
}

/* --- campi di input generici --- */
:root[data-theme="dark"] input,
:root[data-theme="dark"] select,
:root[data-theme="dark"] textarea{
  background: var(--surface-2);
  color: var(--text);
  border-color: var(--line);
}
:root[data-theme="dark"] input::placeholder,
:root[data-theme="dark"] textarea::placeholder{ color: var(--muted); }

/* --- stati status-card (verde/giallo/rosso) in versione scura --- */
:root[data-theme="dark"] .status-card.success{ background:rgba(52,211,153,.12); color:#6ee7b7; border-color:rgba(52,211,153,.32); }
:root[data-theme="dark"] .status-card.warning{ background:rgba(251,191,36,.12); color:#fcd34d; border-color:rgba(251,191,36,.32); }
:root[data-theme="dark"] .status-card.error{ background:rgba(248,113,113,.12); color:#fca5a5; border-color:rgba(248,113,113,.32); }
:root[data-theme="dark"] .status-card.loading{ background:var(--surface); color:var(--text); }

/* =====================================================================
   Toggle TEMA nel footer della sidebar (Chiaro / Scuro / Auto)
   La sidebar è già scura in entrambi i temi: testo chiaro.
   ===================================================================== */
.fmto-theme-row{ margin:12px 0 4px; }
.fmto-theme-row__lbl{ display:block; font-size:10px; letter-spacing:.08em; text-transform:uppercase; font-weight:800; color:#8ea0bd; margin:0 2px 5px; }
.fmto-theme-toggle{ display:flex; gap:3px; background:rgba(255,255,255,.06); border:1px solid rgba(255,255,255,.12); border-radius:10px; padding:3px; }
.fmto-theme-toggle button{ flex:1; border:0; background:transparent; color:#cdd6e4; font-size:12px; font-weight:700; padding:6px 0; border-radius:7px; cursor:pointer; font-family:inherit; }
.fmto-theme-toggle button.is-active{ background:#3b82f6; color:#fff; }
.fmto-theme-toggle button:not(.is-active):hover{ background:rgba(255,255,255,.08); }

/* Dark Fase 2 — zebra tabelle (pastelli #f8fafc/#f7f9fc non legati a token) */
:root[data-theme="dark"] .mkt-table tbody tr:nth-child(even),
:root[data-theme="dark"] .cal-table tbody tr:nth-child(even),
:root[data-theme="dark"] .showcase-table tbody tr:nth-child(even),
:root[data-theme="dark"] .buste-mtable tbody tr:nth-child(even) td,
:root[data-theme="dark"] .managers-table--premium tbody tr:nth-child(even) td{
  background: rgba(255,255,255,.045);
}
/* hover righe tabelle in dark */
:root[data-theme="dark"] .managers-table--premium tbody tr:hover td,
:root[data-theme="dark"] .mkt-table tbody tr:hover,
:root[data-theme="dark"] .showcase-table tbody tr:hover{ background: rgba(59,130,246,.12); }

/* =====================================================================
   DARK — Fase 3: Panoramica/Home + Sidebar (DK1) — 2026-10-28
   Additivo: non tocca il tema chiaro. Chiude le "card bianche" e i
   testi illeggibili (bianco-su-bianco, blu-su-nero) nella home.
   ===================================================================== */

/* --- Sidebar nera, in linea con DK1 --- */
:root[data-theme="dark"] .sidebar{
  background:#070708;
  border-right:1px solid var(--line);
}

/* --- Home "magazine": hero bianco -> scuro --- */
:root[data-theme="dark"] .overview-home__hero{
  border-color:var(--line);
  background:
    radial-gradient(circle at 88% 18%, rgba(59,130,246,.12), transparent 29%),
    linear-gradient(135deg, var(--surface) 0%, var(--surface-2) 70%, var(--surface) 100%);
  box-shadow:var(--shadow);
}
:root[data-theme="dark"] .overview-home__greeting-text strong{ color:var(--text); }
:root[data-theme="dark"] .overview-home__greeting-text small{ color:var(--muted); }

/* --- Card "featured" oro -> card scura con accento oro leggibile --- */
:root[data-theme="dark"] .overview-featured-card{
  background:linear-gradient(150deg, #241d0b 0%, #1a1708 100%);
  border-color:#4a3c16;
  box-shadow:var(--shadow);
}
:root[data-theme="dark"] .overview-featured-card__kicker,
:root[data-theme="dark"] .overview-featured-card__copy span,
:root[data-theme="dark"] .overview-widget__empty--light{ color:#e3c770; }
:root[data-theme="dark"] .overview-featured-card__copy strong{ color:#f3e4b0; }

/* --- Griglia nav-card: bordi/testi/icone + accenti schiariti --- */
:root[data-theme="dark"] .overview-nav-card{
  --overview-accent:#60a5fa;
  border-color:var(--line);
  color:var(--text);
  box-shadow:var(--shadow);
}
:root[data-theme="dark"] .overview-nav-card strong{ color:var(--text); }
:root[data-theme="dark"] .overview-nav-card__meta{ color:var(--muted); }
:root[data-theme="dark"] .overview-nav-card--featured{
  background:
    radial-gradient(circle at 88% 12%, color-mix(in srgb,var(--overview-accent) 22%,transparent), transparent 35%),
    var(--surface);
}
:root[data-theme="dark"] .overview-nav-card__icon{
  background:color-mix(in srgb,var(--overview-accent) 22%, var(--surface-2));
}
:root[data-theme="dark"] .overview-nav-card--managerArea{ --overview-accent:#34d399; }
:root[data-theme="dark"] .overview-nav-card--competitions{ --overview-accent:#f87171; }
:root[data-theme="dark"] .overview-nav-card--clubs{ --overview-accent:#60a5fa; }
:root[data-theme="dark"] .overview-nav-card--transfers{ --overview-accent:#fbbf24; }
:root[data-theme="dark"] .overview-nav-card--players{ --overview-accent:#60a5fa; }
:root[data-theme="dark"] .overview-nav-card--compare{ --overview-accent:#a78bfa; }
:root[data-theme="dark"] .overview-nav-card--finance{ --overview-accent:#2dd4bf; }
:root[data-theme="dark"] .overview-nav-card--managers{ --overview-accent:#94a3b8; }
:root[data-theme="dark"] .overview-nav-card--palmares{ --overview-accent:#e3c770; }

/* =====================================================================
   DARK — Panoramica PARTITA (match-hub #overviewMatchView)
   Ribalto le variabili locali + i pastelli hardcoded.
   ===================================================================== */
:root[data-theme="dark"] #overviewMatchView{
  --mh-card:var(--surface);
  --mh-ink:var(--text);
  --mh-mute:var(--muted);
  --mh-line:var(--line);
  --mh-accent:#60a5fa;
  --mh-home:#4ade80;
  --mh-away:#fbbf24;
  --mh-danger:#f87171;
}
:root[data-theme="dark"] #overviewMatchView .mh-note,
:root[data-theme="dark"] #overviewMatchView .ovx-nonote{ color:var(--muted); }
:root[data-theme="dark"] #overviewMatchView .mh-sheet,
:root[data-theme="dark"] #overviewMatchView .mh-sh{ background:var(--surface-2); color:var(--text); }
:root[data-theme="dark"] #overviewMatchView .mh-x{ background:var(--surface); color:var(--text); }
:root[data-theme="dark"] #overviewMatchView .mh-btn--disabled,
:root[data-theme="dark"] #overviewMatchView .ovx-tg--off{ background:var(--surface-2); color:var(--muted); }
:root[data-theme="dark"] #overviewMatchView .mh-uava,
:root[data-theme="dark"] #overviewMatchView .ovx-av,
:root[data-theme="dark"] #overviewMatchView .ovx-mv2 .transfer-player-face{ background:var(--surface-2); }
:root[data-theme="dark"] #overviewMatchView .ovx-chip,
:root[data-theme="dark"] #overviewMatchView .ovx-navt,
:root[data-theme="dark"] #overviewMatchView .ovx-nrow,
:root[data-theme="dark"] #overviewMatchView .ovx-mv2,
:root[data-theme="dark"] #overviewMatchView .ovx-nonote,
:root[data-theme="dark"] #overviewMatchView .ovx-gofoot .ovx-goto,
:root[data-theme="dark"] #overviewMatchView .ovx-sc{ background:var(--surface-2); }
:root[data-theme="dark"] #overviewMatchView .ovx-navt:hover,
:root[data-theme="dark"] #overviewMatchView .ovx-faq:hover,
:root[data-theme="dark"] #overviewMatchView .ovx-gofoot .ovx-goto:hover{ background:var(--surface); }
:root[data-theme="dark"] #overviewMatchView .mh-comp-logo--card,
:root[data-theme="dark"] #overviewMatchView .mh-comp-logo--card.mh-comp-logo--fallback{ background:var(--surface-2); }
:root[data-theme="dark"] #overviewMatchView .mh-caro::-webkit-scrollbar-thumb{ background:#3a3d46; }
:root[data-theme="dark"] #overviewMatchView .ovx-sc.win{ background:rgba(74,222,128,.14); color:#6ee7b7; }
:root[data-theme="dark"] #overviewMatchView .ovx-sc.lose{ background:rgba(248,113,113,.14); color:#fca5a5; }

/* --- DARK Fase 3b: result-cards "Ultimi risultati" + FAQ (match-hub) --- */
:root[data-theme="dark"] #overviewMatchView .ovx-rescard{ background:var(--surface-2); border-color:var(--line); }
:root[data-theme="dark"] #overviewMatchView .ovx-rect,
:root[data-theme="dark"] #overviewMatchView .ovx-rmt,
:root[data-theme="dark"] #overviewMatchView .ovx-rm--me{ color:var(--text); }
:root[data-theme="dark"] #overviewMatchView .ovx-rmsc{ background:var(--surface); color:var(--text); }
:root[data-theme="dark"] #overviewMatchView .ovx-rmsc.win{ background:rgba(74,222,128,.14); color:#6ee7b7; }
:root[data-theme="dark"] #overviewMatchView .ovx-rmsc.lose{ background:rgba(248,113,113,.14); color:#fca5a5; }
:root[data-theme="dark"] #overviewMatchView .ovx-reclogo--fb{ background:rgba(96,165,250,.16); color:#8fb3ff; }
:root[data-theme="dark"] #overviewMatchView .ovx-faq{ background:var(--surface-2); color:var(--text); }
:root[data-theme="dark"] #overviewMatchView .ovx-faq:hover{ background:var(--surface); }
:root[data-theme="dark"] #overviewMatchView .ovx-faq-tx strong{ color:var(--text); }
:root[data-theme="dark"] #overviewMatchView .ovx-faq-ic{ background:rgba(148,163,184,.16); }

/* --- DARK Fase 3c: tabella + card "Mister" (management) --- */
:root[data-theme="dark"] .managers-table--premium thead th{ background:var(--surface-2); color:var(--muted); }
:root[data-theme="dark"] .manager-name-cell,
:root[data-theme="dark"] .manager-mobile-card header strong,
:root[data-theme="dark"] .manager-mobile-grid strong,
:root[data-theme="dark"] .manager-mobile-grid a{ color:var(--text); }
:root[data-theme="dark"] .manager-mobile-card{ border-color:var(--line); box-shadow:var(--shadow); }
:root[data-theme="dark"] .manager-mobile-card header{ border-bottom-color:var(--line); }
:root[data-theme="dark"] .manager-chip{ background:var(--surface-2); color:var(--text); }
:root[data-theme="dark"] .manager-chip--telegram{ background:rgba(96,165,250,.16); color:#8fb3ff; }
:root[data-theme="dark"] .manager-chip--forum{ background:rgba(167,139,250,.16); color:#c4b5fd; }
:root[data-theme="dark"] .manager-date-badge{ background:var(--surface-2); color:var(--muted); }
:root[data-theme="dark"] .manager-date-badge--change{ background:rgba(251,191,36,.15); color:#fcd34d; }
:root[data-theme="dark"] .management-select select,
:root[data-theme="dark"] .management-reset{ color:var(--text); border-color:var(--line); }
:root[data-theme="dark"] .management-reset:hover{ background:var(--surface-2); }

/* --- DARK Fase 3d: sfondo chiaro dietro i loghi (anti-mimetismo) --- */
:root[data-theme="dark"] .competition-logo,
:root[data-theme="dark"] .competition-hero-logo,
:root[data-theme="dark"] .competition-chip-logo,
:root[data-theme="dark"] .club-competition-logos .competition-chip-logo,
:root[data-theme="dark"] .club-hero-competitions .competition-chip-logo,
:root[data-theme="dark"] .honour-competition-logo,
:root[data-theme="dark"] .palmares-competition-logo,
:root[data-theme="dark"] #calImpegniView .cali-crest,
:root[data-theme="dark"] #overviewMatchView .mh-comp-logo,
:root[data-theme="dark"] #overviewMatchView .ovx-reclogo{
  background:#eef2f7 !important;
}
:root[data-theme="dark"] .competition-fallback{ background:rgba(255,255,255,.14); color:var(--text); }

/* =====================================================================
   DARK — Fase 4: Competizioni (classifiche/partite/statistiche/rose/
   fairplay/diffidati/premi) + toolbar + token "fantasma" — 2026-10-28
   ===================================================================== */
/* Token mai definiti nel tema chiaro: popolati SOLO in dark, così decine
   di var(--panel/--accent/--shell/--background/--line2) si ribaltano. */
:root[data-theme="dark"]{
  --panel:var(--surface);
  --accent:#60a5fa;
  --shell:var(--surface-2);
  --background:var(--bg);
  --line2:var(--line);
}

/* toolbar "Mister/management" (card bianca) */
:root[data-theme="dark"] .management-toolbar{
  background:linear-gradient(180deg,var(--surface) 0%,var(--surface-2) 100%);
  border-color:var(--line); box-shadow:var(--shadow);
}
:root[data-theme="dark"] .management-search{ border-color:var(--line); color:var(--muted); }
:root[data-theme="dark"] .management-search input{ color:var(--text); }
:root[data-theme="dark"] .management-search:focus-within{ border-color:var(--brand); box-shadow:0 0 0 3px rgba(96,165,250,.18); }

/* riga leader (#1) classifiche + statistiche */
:root[data-theme="dark"] table.fb-cls tr.fb-row--leader td{
  background:rgba(96,165,250,.14); border-color:rgba(96,165,250,.34);
}

/* statistiche (fbs): nomi/squadra/face */
:root[data-theme="dark"] .fbs-pname{ color:var(--text); }
:root[data-theme="dark"] .fbs-team .fb-team-name{ color:var(--muted); }
:root[data-theme="dark"] .fbs-face{ background:var(--surface-2); border-color:var(--line); }

/* ROSE (crt) */
:root[data-theme="dark"] .crt-inp-q,
:root[data-theme="dark"] .crt-sel{ background:var(--surface-2); }
:root[data-theme="dark"] table.crt-t thead th{ background:var(--surface-2); }
:root[data-theme="dark"] table.crt-t tbody tr:nth-child(even){ background:rgba(255,255,255,.04); }
:root[data-theme="dark"] table.crt-t tbody tr:hover{ background:rgba(96,165,250,.12); }
:root[data-theme="dark"] .crt-nm{ color:var(--text); }
:root[data-theme="dark"] table.crt-t td.crt-role{ color:var(--muted); }
:root[data-theme="dark"] .crt-face{ background:var(--surface-2); border-color:var(--line); }

/* FAIR PLAY (fp) */
:root[data-theme="dark"] table.fp-t thead th{ background:var(--surface-2); }
:root[data-theme="dark"] table.fp-t tbody tr:nth-child(even){ background:rgba(255,255,255,.04); }
:root[data-theme="dark"] table.fp-t tbody tr:hover{ background:rgba(96,165,250,.12); }
:root[data-theme="dark"] table.fp-t tbody tr.fp-win{ background:rgba(74,222,128,.10); }
:root[data-theme="dark"] table.fp-t tbody tr.fp-win:hover{ background:rgba(74,222,128,.16); }
:root[data-theme="dark"] .fp-pos{ background:var(--surface-2); color:var(--muted); }
:root[data-theme="dark"] .fp-pos.fp-pos--1{ background:rgba(251,191,36,.22); color:#fcd34d; }
:root[data-theme="dark"] .fp-pos.fp-pos--2{ background:rgba(148,163,184,.22); color:#cbd5e1; }
:root[data-theme="dark"] .fp-pos.fp-pos--3{ background:rgba(217,119,6,.22); color:#fdba74; }
:root[data-theme="dark"] .fp-credit{ background:rgba(74,222,128,.16); color:#6ee7b7; }

/* DIFFIDATI (diff) */
:root[data-theme="dark"] .diff-inp,
:root[data-theme="dark"] .diff-sel{ background:var(--surface-2); }
:root[data-theme="dark"] table.diff-t thead th{ background:rgba(251,191,36,.12); color:#fcd34d; border-bottom-color:rgba(251,191,36,.3); }
:root[data-theme="dark"] table.diff-t tbody tr:nth-child(even){ background:rgba(255,255,255,.035); }
:root[data-theme="dark"] table.diff-t tbody tr:hover{ background:rgba(251,191,36,.10); }
:root[data-theme="dark"] .diff-nm{ color:var(--text); }
:root[data-theme="dark"] .diff-role{ color:var(--muted); }
:root[data-theme="dark"] .diff-face{ background:var(--surface-2); border-color:var(--line); }
:root[data-theme="dark"] .diff-risk{ background:rgba(251,191,36,.16); color:#fcd34d; }

/* pill giornate + face premi */
:root[data-theme="dark"] .cmp-day{ background:var(--surface-2); }
:root[data-theme="dark"] .premi-face{ background:var(--surface-2); }

/* grafico posizioni: bande zona attenuate */
:root[data-theme="dark"] .fbpos-band--win{ fill:rgba(246,231,189,.10); }
:root[data-theme="dark"] .fbpos-band--poff{ fill:rgba(74,222,128,.08); }
:root[data-theme="dark"] .fbpos-band--pout{ fill:rgba(251,191,36,.08); }
:root[data-theme="dark"] .fbpos-band--ret{ fill:rgba(248,113,113,.08); }

/* =====================================================================
   DARK — Fase 5a: chip stagione + linee grafici + tab + regolamento
   ===================================================================== */
/* chip "Stagione 20xx" (header, foto2): testo blu brillante come i dati */
:root[data-theme="dark"] .season-context--live .season-context__season{ color:#60a5fa; border-color:rgba(96,165,250,.40); }
:root[data-theme="dark"] .season-context--past .season-context__season{ background:rgba(251,191,36,.14); color:#fcd34d; border-color:rgba(251,191,36,.30); }
:root[data-theme="dark"] .season-context--past .season-context__db{ background:rgba(251,191,36,.12); color:#fcd34d; }
:root[data-theme="dark"] .season-context__flag{ background:rgba(251,191,36,.14); color:#fcd34d; border-color:rgba(251,191,36,.30); }

/* grafico piramide (foto9): linee bianche troppo evidenti -> appena percettibili */
:root[data-theme="dark"] .lpyr-grid{ stroke:rgba(255,255,255,.05) !important; }
:root[data-theme="dark"] .lpyr-sep{ stroke:rgba(255,255,255,.10) !important; }

/* tab Premi risultati / Ranking FMTO (foto13) */
:root[data-theme="dark"] .pbx-tab{ color:var(--muted); }
:root[data-theme="dark"] .pbx-tab:hover{ color:#8fb3ff; }
:root[data-theme="dark"] .pbx-tab.active{ color:var(--text); border-bottom-color:#60a5fa; }

/* regolamento "Tariffe crediti & bonus" (rkc, foto11) */
:root[data-theme="dark"] .rkc-sub,
:root[data-theme="dark"] .rkc-note,
:root[data-theme="dark"] .rkc-gir,
:root[data-theme="dark"] .rkc-ex,
:root[data-theme="dark"] .rkc-none{ color:var(--muted); }
:root[data-theme="dark"] .rkc-bar select,
:root[data-theme="dark"] .rkc-sqlbtn{ background:var(--surface-2); color:var(--text); border-color:var(--line); }
:root[data-theme="dark"] table.rkc-t tbody tr.rkc-r:nth-child(even){ background:rgba(255,255,255,.04); }
:root[data-theme="dark"] table.rkc-t tbody tr.rkc-r:hover{ background:rgba(96,165,250,.12); }
:root[data-theme="dark"] table.rkc-t tbody tr.rkc-d td{ background:var(--surface-2); border-bottom-color:var(--line); }
:root[data-theme="dark"] .rkc-state.on{ background:rgba(74,222,128,.16); color:#6ee7b7; }
:root[data-theme="dark"] .rkc-state.off{ background:rgba(251,191,36,.16); color:#fcd34d; }
:root[data-theme="dark"] .rkc-chip.neg{ background:rgba(248,113,113,.14); color:#fca5a5; border-color:rgba(248,113,113,.3); }

/* =====================================================================
   DARK — Fase 5b: footer sidebar (Esci + toggle su una riga) + voci nav
   ===================================================================== */
/* Esci + toggle tema affiancati, due "card" sulla stessa riga */
.fmto-footer-actions{ display:flex; align-items:stretch; gap:8px; margin:4px 0 8px; }
.fmto-footer-actions .fmto-logout-link{ flex:1 1 auto; margin:0; }
.fmto-footer-actions .fmto-theme-toggle{ flex:0 0 auto; margin:0; padding:2px; gap:2px; align-items:stretch; }
.fmto-footer-actions .fmto-theme-toggle button{ flex:0 0 auto; width:28px; padding:0; font-size:14px; line-height:1; display:grid; place-items:center; }

/* sidebar dark: voci NON selezionate più leggibili */
:root[data-theme="dark"] .sidebar .nav-item small{ color:#9aa8bf; }
:root[data-theme="dark"] .sidebar .nav-acc-head{ color:#c7d0de; }

/* =====================================================================
   DARK — Fase 5c: Palmarès / Bacheca (foto7/8) — oro su base card scura
   ===================================================================== */
:root[data-theme="dark"] .honour-card{
  background:linear-gradient(145deg, var(--surface) 0%, color-mix(in srgb, #c69a2c 15%, var(--surface)) 100%);
  border-color:#4a3c16;
}
:root[data-theme="dark"] .honour-card div span{ color:#e3c770; }
:root[data-theme="dark"] .club-empty{ background:var(--surface-2); border-color:#4a3c16; }
:root[data-theme="dark"] .future-panel{ background:linear-gradient(145deg, var(--surface) 0%, var(--surface-2) 100%); }
/* palmarès "winner card" (storico competizione) */
:root[data-theme="dark"] .palmares-winner-card{
  background:linear-gradient(145deg, var(--surface) 0%, color-mix(in srgb, var(--competition-primary,#c69a2c) 16%, var(--surface)) 100%);
  border-color:var(--line); box-shadow:var(--shadow);
}
:root[data-theme="dark"] .palmares-winner-card strong,
:root[data-theme="dark"] .palmares-winner-team strong{ color:var(--text); }
:root[data-theme="dark"] .palmares-winner-kicker{ color:#e3c770; }
:root[data-theme="dark"] .palmares-competition-card{ background:var(--surface-2); }

/* =====================================================================
   DARK — Fase 6: Mercato/Finanze + Club detail + loghi — 2026-10-28
   Molte sezioni iniettano <style> inline con valori chiari: li vinco
   con :root[data-theme="dark"] (specificità maggiore; !important dove
   l'originale lo usa).
   ===================================================================== */

/* ---------- FINANZE tabella (foto14) ---------- */
:root[data-theme="dark"] .finance-table--grouped .finance-group-row th{ color:var(--text); border-right-color:var(--line); }
:root[data-theme="dark"] .finance-table--grouped .finance-column-row th{ background:var(--surface-2); }
:root[data-theme="dark"] .finance-group--club{ background:#15171c !important; }
:root[data-theme="dark"] .finance-group--roster{ background:rgba(96,165,250,.14) !important; color:#9ec5ff !important; }
:root[data-theme="dark"] .finance-group--in{ background:rgba(52,211,153,.14) !important; color:#6ee7b7 !important; }
:root[data-theme="dark"] .finance-group--out{ background:rgba(248,113,113,.14) !important; color:#fca5a5 !important; }
:root[data-theme="dark"] .finance-group--wages{ background:rgba(45,212,191,.13) !important; color:#5eead4 !important; }
:root[data-theme="dark"] .finance-group--credits{ background:rgba(251,191,36,.14) !important; color:#fcd34d !important; }
:root[data-theme="dark"] .finance-subhead--roster{ background:rgba(96,165,250,.07) !important; }
:root[data-theme="dark"] .finance-subhead--in{ background:rgba(52,211,153,.07) !important; }
:root[data-theme="dark"] .finance-subhead--out{ background:rgba(248,113,113,.07) !important; }
:root[data-theme="dark"] .finance-subhead--wages{ background:rgba(45,212,191,.07) !important; }
:root[data-theme="dark"] .finance-subhead--credits{ background:rgba(251,191,36,.07) !important; }
:root[data-theme="dark"] .finance-cell--roster{ background:rgba(96,165,250,.04); }
:root[data-theme="dark"] .finance-cell--in{ background:rgba(52,211,153,.04); }
:root[data-theme="dark"] .finance-cell--out{ background:rgba(248,113,113,.04); }
:root[data-theme="dark"] .finance-cell--wages{ background:rgba(45,212,191,.04); }
:root[data-theme="dark"] .finance-cell--credits{ background:rgba(251,191,36,.04); }
:root[data-theme="dark"] .finance-flow--in{ color:#34d399; }
:root[data-theme="dark"] .finance-flow--out{ color:#f87171; }
:root[data-theme="dark"] .finance-mobile-card__head{ background:linear-gradient(90deg,var(--surface),var(--surface-2)) !important; }

/* ---------- VETRINA Cedibili (ced-*, foto16) ---------- */
:root[data-theme="dark"] .ced-leg,
:root[data-theme="dark"] .ced-grp,
:root[data-theme="dark"] .ced-t,
:root[data-theme="dark"] .ced-rolepop{ background:var(--surface) !important; }
:root[data-theme="dark"] .ced-t td{ border-bottom-color:var(--line); }
:root[data-theme="dark"] .ced-t tbody tr:hover{ background:rgba(96,165,250,.10); }
:root[data-theme="dark"] .ced-nm{ color:var(--text); }
:root[data-theme="dark"] .ced-inp{ background:var(--surface-2); color:var(--text); }
:root[data-theme="dark"] .ced-switch{ background:var(--surface-2); }
:root[data-theme="dark"] .ced-leg-sep{ background:var(--line); }

/* ---------- PERSO / Capitano & Tattica (foto4 basso) ---------- */
:root[data-theme="dark"] .perso-tac-block,
:root[data-theme="dark"] .perso-lead3,
:root[data-theme="dark"] .perso-ro-card,
:root[data-theme="dark"] .tp-shot,
:root[data-theme="dark"] .perso-shot{ background:var(--surface-2); border-color:var(--line); }
:root[data-theme="dark"] .perso-pill{ background:var(--surface-2); border-color:var(--line); }
:root[data-theme="dark"] .perso-pill.scr{ background:rgba(96,165,250,.14); border-color:rgba(96,165,250,.3); color:#9ec5ff; }
:root[data-theme="dark"] .perso-ro-row .lab{ color:var(--muted); }
:root[data-theme="dark"] .pf{ background:var(--surface-2); }
:root[data-theme="dark"] .pf .pf-badge{ background:var(--surface-2); }
:root[data-theme="dark"] .perso-missing,
:root[data-theme="dark"] .perso-lock{ background:rgba(251,146,60,.12); border-color:rgba(251,146,60,.35); color:#fdba74; }
:root[data-theme="dark"] .tp-li:hover{ background:rgba(96,165,250,.10); }
:root[data-theme="dark"] .tp-li.sel{ background:rgba(96,165,250,.14); }
:root[data-theme="dark"] .tp-form input,
:root[data-theme="dark"] .tp-form select{ background:var(--surface-2); color:var(--text); }
:root[data-theme="dark"] .tp-add{ background:rgba(96,165,250,.12); border-color:rgba(96,165,250,.4); color:#9ec5ff; }

/* ---------- BUSTE config (bcfg-*) ---------- */
:root[data-theme="dark"] .bcfg-type{ background:var(--surface-2); border-color:var(--line); }
:root[data-theme="dark"] .bcfg-type:hover{ background:var(--surface); border-color:rgba(96,165,250,.4); }
:root[data-theme="dark"] .bcfg-type.on{ background:rgba(96,165,250,.14); border-color:#60a5fa; }
:root[data-theme="dark"] .bcfg-type-tt{ color:var(--text); }
:root[data-theme="dark"] .bcfg-f input{ background:var(--surface-2); color:var(--text); }
:root[data-theme="dark"] .bcfg-f input[readonly]{ background:var(--surface); color:var(--muted); }
:root[data-theme="dark"] .bcfg-rules{ background:var(--surface-2); border-color:var(--line); }
:root[data-theme="dark"] .bcfg-seasonsel{ background:rgba(96,165,250,.10); border-color:rgba(96,165,250,.3); }
:root[data-theme="dark"] .bcfg-seasonsel select{ background:var(--surface-2); color:var(--text); border-color:var(--line); }

/* ---------- MERCATO pannello CR / conguaglio (mkt-*, foto15) ---------- */
:root[data-theme="dark"] .mkt-crmode-opt{ color:var(--muted); border-color:var(--line); }
:root[data-theme="dark"] .mkt-crmode-opt.on{ background:rgba(96,165,250,.14); border-color:#60a5fa; color:#9ec5ff; }
:root[data-theme="dark"] .mkt-conta-n{ background:var(--surface-2); color:var(--muted); }
:root[data-theme="dark"] .mkt-conta-n.on{ background:rgba(52,211,153,.18); color:#6ee7b7; }
:root[data-theme="dark"] .mkt-congw{ background:var(--surface-2); color:var(--text); }
:root[data-theme="dark"] .mkt-congnet{ background:rgba(52,211,153,.12); border-color:rgba(52,211,153,.3); color:#6ee7b7; }
:root[data-theme="dark"] .mkt-congnet--empty{ background:var(--surface-2); border-color:var(--line); color:var(--muted); }

/* ---------- CALCIATORI roster globale (calc-*, foto19) ---------- */
:root[data-theme="dark"] .calc-seg{ background:var(--surface-2); }
:root[data-theme="dark"] .calc-seg button.on{ background:var(--surface); color:#60a5fa; }
:root[data-theme="dark"] .calc-fbar,
:root[data-theme="dark"] .calc-scroll{ background:var(--surface); border-color:var(--line); }
:root[data-theme="dark"] .calc-inp,
:root[data-theme="dark"] .calc-sel,
:root[data-theme="dark"] .calc-ftoggle,
:root[data-theme="dark"] .calc-fclr{ background:var(--surface-2); color:var(--text); border-color:var(--line); }
:root[data-theme="dark"] table.calc-t thead th{ background:var(--surface-2); }

/* ---------- empty-state grigio (foto18) ---------- */
:root[data-theme="dark"] .empty-state{ background:var(--surface-2); border-color:var(--line); }

/* ---------- TRASFERIMENTI (foto15) ---------- */
:root[data-theme="dark"] .tr-op__head .tr-op__date{ background:var(--surface-2); border-color:var(--line); color:var(--muted); }

/* ---------- CLUB DETAIL testi/loghi (foto4/5/6) ---------- */
:root[data-theme="dark"] .club-manager-card__meta dt{ color:var(--muted); }
:root[data-theme="dark"] .club-top3-card__name{ color:var(--text); }
:root[data-theme="dark"] .club-stadium-card__meta dd{ color:var(--text); }

/* ---------- card market-envelope sfumatura bianca (foto20) ---------- */
:root[data-theme="dark"] .player-result.market-envelope,
:root[data-theme="dark"] .roster-card.market-envelope,
:root[data-theme="dark"] .compare-summary-card.market-envelope{ background:linear-gradient(90deg, var(--surface-2), var(--surface)); }

/* ---------- LOGHI squadra: sfondo chiaro dietro i crest (foto3/12) ---------- */
:root[data-theme="dark"] .team-logo{ background:#e9eef5; border-radius:6px; }

/* =====================================================================
   DARK — Fase 7: correzioni su classi VERIFICATE dal codice — 2026-10-28
   ===================================================================== */

/* ---- Club detail: card MISTER (hero bianca con !important @14364) foto5 ---- */
:root[data-theme="dark"] .club-overview-identity__manager .club-manager-card{
  background:linear-gradient(180deg, var(--surface) 0%, var(--surface-2) 100%) !important;
  border-color:color-mix(in srgb, var(--club-primary) 40%, var(--line)) !important;
  color:var(--text) !important;
}
:root[data-theme="dark"] .club-overview-identity__manager .club-overview-card__title,
:root[data-theme="dark"] .club-overview-identity__manager .club-overview-card__title > span,
:root[data-theme="dark"] .club-overview-identity__manager .club-manager-card__identity strong,
:root[data-theme="dark"] .club-overview-identity__manager .club-manager-card__identity small,
:root[data-theme="dark"] .club-overview-identity__manager .club-manager-card__meta dt,
:root[data-theme="dark"] .club-overview-identity__manager .club-manager-card__meta dd,
:root[data-theme="dark"] .club-overview-identity__manager .club-manager-contact,
:root[data-theme="dark"] .club-overview-identity__manager .club-manager-contact strong{ color:var(--text) !important; }
:root[data-theme="dark"] .club-overview-identity__manager .club-manager-card__identity small,
:root[data-theme="dark"] .club-overview-identity__manager .club-manager-card__meta dt{ color:var(--muted) !important; }
:root[data-theme="dark"] .club-overview-identity__manager .club-overview-svg,
:root[data-theme="dark"] .club-overview-identity__manager .club-manager-avatar{
  color:var(--text) !important;
  background:color-mix(in srgb, var(--club-primary) 20%, var(--surface-2)) !important;
  border-color:color-mix(in srgb, var(--club-primary) 45%, var(--line)) !important;
}
:root[data-theme="dark"] .club-overview-identity__manager .club-manager-contact.is-telegram{ color:#60a5fa !important; }

/* ---- Club detail: Top3 (card @13617-13630) foto5 ---- */
:root[data-theme="dark"] .club-overview-identity__top3 .club-top3-card{ background:var(--surface) !important; color:var(--text) !important; }
:root[data-theme="dark"] .club-overview-identity__top3 .club-top3-card--primary{
  background:linear-gradient(145deg, color-mix(in srgb, var(--club-primary) 24%, var(--surface)), var(--surface) 72%) !important;
  border-color:color-mix(in srgb, var(--club-primary) 38%, var(--line)) !important;
}
:root[data-theme="dark"] .club-overview-identity__top3 .club-top3-card__name{ color:var(--text) !important; }
:root[data-theme="dark"] .club-overview-identity__top3 .club-top3-card__label{ color:var(--muted) !important; }
:root[data-theme="dark"] .club-overview-identity__top3 .club-top3-card__value{ color:#fcd34d !important; }

/* ---- Vetrina Cedibili: righe "in vetrina" verdi @19260 (foto3) ---- */
:root[data-theme="dark"] .showcase-row-active td{ background:rgba(74,222,128,.10) !important; }

/* ---- Perso: testo pill tattica #1e293b (foto4) ---- */
:root[data-theme="dark"] .perso-pill{ color:var(--text); }
:root[data-theme="dark"] .perso-pill.scr{ color:#9ec5ff; }

/* ---- Conguaglio: footer inline chiaro @3442 (foto6) ---- */
:root[data-theme="dark"] .tr-op__cong{ background:rgba(96,165,250,.10) !important; border-top-color:var(--line) !important; color:#9ec5ff !important; }

/* ---- Roster lista-gara: gradienti verso il bianco @3461-3690 -> verso scuro (foto7) ---- */
:root[data-theme="dark"] .roster-card.market-1t,
:root[data-theme="dark"] .player-result.market-1t,
:root[data-theme="dark"] .compare-summary-card.market-1t{ background:linear-gradient(90deg, rgba(250,204,21,.22), var(--surface) 62%) !important; }
:root[data-theme="dark"] .roster-card.market-2t,
:root[data-theme="dark"] .player-result.market-2t,
:root[data-theme="dark"] .compare-summary-card.market-2t{ background:linear-gradient(90deg, rgba(239,68,68,.22), var(--surface) 62%) !important; }
:root[data-theme="dark"] .roster-card.market-loan:not(.market-1t):not(.market-2t),
:root[data-theme="dark"] .player-result.market-loan:not(.market-1t):not(.market-2t),
:root[data-theme="dark"] .compare-summary-card.market-loan:not(.market-1t):not(.market-2t){ background:linear-gradient(90deg, rgba(139,92,246,.22), var(--surface) 66%) !important; }
:root[data-theme="dark"] .roster-card.market-clause:not(.market-1t):not(.market-2t),
:root[data-theme="dark"] .player-result.market-clause:not(.market-1t):not(.market-2t),
:root[data-theme="dark"] .compare-summary-card.market-clause:not(.market-1t):not(.market-2t){ background:linear-gradient(90deg, rgba(168,85,247,.22), var(--surface) 66%) !important; }
:root[data-theme="dark"] .roster-card.market-under-senior:not(.market-1t):not(.market-2t),
:root[data-theme="dark"] .player-result.market-under-senior:not(.market-1t):not(.market-2t),
:root[data-theme="dark"] .compare-summary-card.market-under-senior:not(.market-1t):not(.market-2t){ background:linear-gradient(90deg, rgba(244,63,94,.22), var(--surface) 66%) !important; }
:root[data-theme="dark"] .roster-card.market-under:not(.market-1t):not(.market-2t),
:root[data-theme="dark"] .player-result.market-under:not(.market-1t):not(.market-2t),
:root[data-theme="dark"] .compare-summary-card.market-under:not(.market-1t):not(.market-2t){ background:linear-gradient(90deg, rgba(14,165,233,.22), var(--surface) 66%) !important; }
:root[data-theme="dark"] .roster-card.market-envelope,
:root[data-theme="dark"] .player-result.market-envelope,
:root[data-theme="dark"] .compare-summary-card.market-envelope{ background:linear-gradient(90deg, rgba(59,130,246,.22), var(--surface) 68%) !important; }
:root[data-theme="dark"] .roster-card.market-blocked,
:root[data-theme="dark"] .player-result.market-blocked,
:root[data-theme="dark"] .compare-summary-card.market-blocked{ background:linear-gradient(90deg, rgba(100,116,139,.22), var(--surface) 68%) !important; }

/* ---- Finanze: header subhead sticky residui @3783/13973 (foto2) ---- */
:root[data-theme="dark"] .finance-table thead th.finance-subhead{ background:var(--surface-2) !important; }

/* =====================================================================
   DARK — Fase 8: sidebar via token, righe trasferimenti, loghi ccdir
   ===================================================================== */
/* Sidebar: ridefinisco i token --fmto-sidebar-* (pill attivo scuro, testo
   leggibile anche selezionato). Classi lette @5308-5385. foto3 */
:root[data-theme="dark"] .sidebar{
  --fmto-sidebar-bg:#070708;
  --fmto-sidebar-text:#c7d0de;
  --fmto-sidebar-text-strong:#f2f4f8;
  --fmto-sidebar-border:#23262e;
  --fmto-sidebar-hover:#17181d;
  --fmto-sidebar-active:#1d2430;
  --fmto-sidebar-accent:#60a5fa;
}
:root[data-theme="dark"] .sidebar .nav-item .nav-icon{ color:#8b93a1; }
:root[data-theme="dark"] .sidebar .nav-item:hover .nav-icon{ background:var(--surface-2); color:var(--text); }
:root[data-theme="dark"] .sidebar .nav-item.active .nav-icon{ background:rgba(96,165,250,.18); color:#60a5fa; }

/* Righe trasferimenti: zebra bianca @19688 (desktop) -> appena più chiara del nero. foto1/2 */
:root[data-theme="dark"] .tr-row:nth-child(odd){ background:rgba(255,255,255,.045) !important; }

/* Loghi directory competizioni: img senza sfondo @24880 -> chip chiaro. foto4 */
:root[data-theme="dark"] .ccdir-tile-logo{ background:#eef2f7; border-radius:10px; padding:4px; }

/* =====================================================================
   DARK — Fase 9: scheda giocatore (skin chiara .player-profile @6499+)
   Classi lette dal codice. Preserva heatmap attributi (forte/elite già
   scuri) e i colori dei valori.
   ===================================================================== */
:root[data-theme="dark"] .player-profile{ background:var(--surface) !important; color:var(--text) !important; border-color:var(--line) !important; }
:root[data-theme="dark"] .player-profile .profile-hero{ background:linear-gradient(120deg, var(--surface-2), var(--surface)) !important; color:var(--text) !important; border-bottom-color:var(--line) !important; }
:root[data-theme="dark"] .player-profile .profile-identity > p,
:root[data-theme="dark"] .player-profile .profile-membership-label,
:root[data-theme="dark"] .player-profile .profile-membership-item span,
:root[data-theme="dark"] .player-profile .profile-rating span{ color:var(--muted) !important; }
:root[data-theme="dark"] .player-profile .profile-membership-item{ background:var(--surface-2) !important; border-color:var(--line) !important; }
:root[data-theme="dark"] .player-profile .profile-membership-item strong,
:root[data-theme="dark"] .player-profile .profile-identity h2,
:root[data-theme="dark"] .player-profile .profile-rating strong{ color:var(--text) !important; }
:root[data-theme="dark"] .player-profile .profile-rating{ background:rgba(255,255,255,.05) !important; border-color:var(--line) !important; }

/* tabs SCHEDA/CRESCITA/CARRIERA */
:root[data-theme="dark"] .profile-tabs{ background:var(--surface-2) !important; border-bottom-color:var(--line) !important; }
:root[data-theme="dark"] .profile-tab{ color:var(--muted); }
:root[data-theme="dark"] .profile-tab:hover{ color:var(--text); }
:root[data-theme="dark"] .profile-tab.is-active{ color:var(--text); }
:root[data-theme="dark"] .profile-tab-panel{ background:var(--surface) !important; }

/* attributi: righe deboli chiare -> scure; forte/elite restano; nomi leggibili */
:root[data-theme="dark"] .profile-attributes .attribute-group h3{ color:var(--muted); }
:root[data-theme="dark"] .attribute-row span{ color:var(--text) !important; }
:root[data-theme="dark"] .skill-missing{ background:var(--surface-2) !important; color:var(--muted) !important; }

/* Posizioni + Carriera */
:root[data-theme="dark"] .profile-role-panel{ border-right-color:var(--line); }
:root[data-theme="dark"] .profile-career-panel{ background:var(--surface) !important; color:var(--text) !important; }

/* =====================================================================
   DARK — Fase 10: fix residui scheda giocatore + sub-righe carriera
   ===================================================================== */
/* nomi attributi spenti: batte .player-profile ... span @6607 (0,2,1) */
:root[data-theme="dark"] .player-profile .attribute-row span{ color:var(--text) !important; }
:root[data-theme="dark"] .player-profile .attribute-group h3{ color:var(--muted) !important; border-bottom-color:var(--line) !important; }
/* badge ID: scuro e staccato dal nome (profile-id @1481) */
:root[data-theme="dark"] .profile-id{ background:var(--surface-2) !important; color:var(--muted) !important; }
:root[data-theme="dark"] .player-profile .profile-id-inline{ margin-left:8px !important; }
/* sub-righe competizione (Serie A/EL/...) bianche @24561 -> scure */
:root[data-theme="dark"] .stats-comp-subrow td{ background:rgba(255,255,255,.035) !important; }
:root[data-theme="dark"] .fmtx-row:hover td{ background:rgba(96,165,250,.10) !important; }

/* =====================================================================
   DARK — Fase 11: righe attributo (tutte) + testo sub-righe carriera
   ===================================================================== */
/* TUTTE le righe attributo scure (anche .strong/.elite, qui appiattite a
   chiaro da @1808/1811). Batte .attribute-row{#e9edf5} e varianti. foto1 */
/* sub-righe competizione (Serie A/EL/…): testo chiaro. foto2 */
:root[data-theme="dark"] .stats-comp-subrow td{ color:var(--text) !important; }
:root[data-theme="dark"] .stats-subrow-name{ color:var(--text) !important; }

/* =====================================================================
   DARK — Fase 12: il VERO sfondo bianco della scheda = .profile-body
   (@6595 #f4f6fa !important). Era il contenitore dietro gli attributi:
   le righe semi-trasparenti lo lasciavano vedere. foto1
   ===================================================================== */
:root[data-theme="dark"] .player-profile .profile-body{ background:var(--surface) !important; }
:root[data-theme="dark"] .player-profile .attribute-row{ background:var(--surface-2) !important; }

/* =====================================================================
   DARK — Fase 13: contenitori residui scheda (sweep completo)
   attribute-group (colonne) @6599, subsection/INFO @7688/16840,
   Posizioni @7629/7634, club-empty @6600/6608/6615.
   ===================================================================== */
:root[data-theme="dark"] .player-profile .attribute-group,
:root[data-theme="dark"] .player-profile .club-empty{
  background:var(--surface) !important;
  border-color:var(--line) !important;
  color:var(--text) !important;
}
:root[data-theme="dark"] .player-profile .attribute-subsection-title{ color:var(--muted) !important; }
:root[data-theme="dark"] .player-profile .attribute-group h3{ color:var(--muted) !important; border-bottom-color:var(--line) !important; }
:root[data-theme="dark"] .player-profile .role-panel-heading span{ color:var(--text) !important; }
:root[data-theme="dark"] .player-profile .role-position-summary{ color:var(--muted) !important; }
:root[data-theme="dark"] .player-profile .club-empty span{ color:var(--muted) !important; }
:root[data-theme="dark"] .player-profile .club-empty strong{ color:var(--text) !important; }
:root[data-theme="dark"] .player-profile .profile-id-under-name{ color:var(--muted) !important; }

/* =====================================================================
   DARK — Fase 14: valore INFO (es. Altezza) scuro su scuro.
   .attribute-row strong non-skill = #0f1a2b (@11683/6615). I valori
   skill hanno .skill-colored (colore da fascia): li escludo.
   ===================================================================== */
:root[data-theme="dark"] .player-profile .attribute-row strong:not(.skill-colored){ color:var(--text) !important; }

/* =====================================================================
   DARK — Fase 15: Posizioni (role-panel) + numeri Carriera leggibili
   ===================================================================== */
/* role-panel era raggruppato con attribute-group @6599/11668 (#e9edf5) */
:root[data-theme="dark"] .player-profile .profile-role-panel{
  background:var(--surface) !important;
  border-color:var(--line) !important;
  color:var(--text) !important;
}
/* Carriera: totali riga principale (stats-tot = --brand-dark scuro) -> blu brillante */
:root[data-theme="dark"] .stats-tot{ color:#60a5fa !important; }
/* sub-righe competizione: numeri e nome chiari */
:root[data-theme="dark"] .stats-comp-subrow td,
:root[data-theme="dark"] .stats-comp-subrow .stats-num{ color:var(--text) !important; }
/* heading Carriera */
:root[data-theme="dark"] .profile-career-heading h3{ color:var(--text); }


/* 01/11/2026 — Ricerca Avanzata: selettore Ruolo a popover (sostituisce il campetto grande) */
.player-adv-rolefield{display:flex;flex-direction:column;gap:4px;min-width:96px}
.player-adv-rolefield>span{font-weight:600;color:var(--text);font-size:12.5px}
.ced-rolewrap{position:relative;display:inline-block}
.ced-rolebtn{display:inline-flex;align-items:center;gap:6px;border:1px solid #c7d7f5;border-radius:999px;padding:5px 12px;font:inherit;font-size:12px;font-weight:800;background:#eef3ff;color:#1d4ed8;cursor:pointer}
.ced-rolebtn.has{background:#1d4ed8;border-color:#1d4ed8;color:#fff}
.ced-rolepop{position:absolute;top:calc(100% + 6px);left:0;z-index:50;background:#fff;border:1px solid #cbd5e1;border-radius:12px;box-shadow:0 12px 30px rgba(15,23,42,.2);padding:10px;width:228px;display:none}
.ced-rolepop.open{display:block}
.ced-pitch{background:linear-gradient(180deg,#1f9d57,#15803d);border:1px solid rgba(255,255,255,.2);border-radius:10px;padding:10px 8px;display:flex;flex-direction:column;gap:7px}
.ced-prow{display:flex;justify-content:center;gap:7px}
.ced-pdot{min-width:40px;border:1px solid rgba(255,255,255,.35);border-radius:7px;background:rgba(255,255,255,.14);color:#fff;font-size:10px;font-weight:800;padding:5px 6px;cursor:pointer;font-family:ui-monospace,Menlo,monospace}
.ced-pdot:hover{background:rgba(255,255,255,.28)}
.ced-pdot.active{background:#fff;color:#15803d;border-color:#fff}
.ced-popfoot{display:flex;justify-content:space-between;align-items:center;margin-top:9px}
.ced-popfoot button{border:none;background:none;color:#1d4ed8;font-size:12px;font-weight:700;cursor:pointer;padding:2px 4px}


/* 01/11/2026 — Ricerca Avanzata: campi raggruppati per tipo con tinte leggere */
.player-adv-fbar{align-items:flex-start}
.adv-grp{position:relative;border:1px solid var(--adv-gb,var(--line));background:var(--adv-gbg,var(--surface-2));border-radius:12px;padding:9px 12px 10px;display:flex;flex-direction:column;gap:6px}
.adv-grp .adv-gl{font-size:10px;letter-spacing:.07em;text-transform:uppercase;font-weight:800;color:var(--adv-gc,var(--muted))}
.adv-grp .adv-gf{display:flex;gap:10px;align-items:flex-end;flex-wrap:wrap}
.adv-rng-dash{align-self:center;color:var(--muted);font-weight:700;padding-bottom:9px}
.player-adv-actions{display:flex;gap:10px;align-items:flex-end;margin-left:auto;align-self:flex-end;padding-bottom:1px}
.adv-grp--pos{--adv-gbg:rgba(59,91,219,.08);--adv-gb:rgba(59,91,219,.22);--adv-gc:#3b5bdb}
.adv-grp--ident{--adv-gbg:rgba(100,116,139,.09);--adv-gb:rgba(100,116,139,.22);--adv-gc:#64748b}
.adv-grp--pres{--adv-gbg:rgba(124,58,237,.08);--adv-gb:rgba(124,58,237,.22);--adv-gc:#7c3aed}
.adv-grp--carat{--adv-gbg:rgba(14,116,144,.08);--adv-gb:rgba(14,116,144,.22);--adv-gc:#0e7490}
.adv-grp--eta{--adv-gbg:rgba(194,115,12,.10);--adv-gb:rgba(194,115,12,.24);--adv-gc:#c2730c}
.adv-grp--ca{--adv-gbg:rgba(21,128,61,.10);--adv-gb:rgba(21,128,61,.24);--adv-gc:#15803d}


/* 01/11/2026 — Ricerca Avanzata: valori per-ruolo nel popover + range altezza popover */
.ced-rolepop{max-height:72vh;overflow:auto}
.ced-rolevals{display:flex;flex-direction:column;gap:5px;margin-top:9px}
.ced-rolevals:empty{display:none}
.ced-rolevals-h{font-size:10px;font-weight:800;letter-spacing:.04em;text-transform:uppercase;color:#64748b}
.ced-roleval{display:flex;align-items:center;justify-content:space-between;gap:8px;font-size:12px;font-weight:700;color:#0f1a2b}
.ced-roleval input{width:64px;padding:4px 7px;border:1px solid #cbd5e1;border-radius:7px;font:inherit;font-size:12px;background:#fff;color:#0f1a2b}


/* 01/11/2026 — Ricerca Avanzata A1: griglia a celle uguali + celle collassabili su smartphone */
/* FIX: neutralizzo la vecchia regola (@media min-width:861px) che rendeva .player-adv-fbar
   una griglia a 5 colonne. Ora il contenitore e un blocco e i 2 figli (griglia A1 +
   riga azioni) stanno a tutta larghezza, uno sotto l'altro — sia desktop che smartphone */
.player-adv-fbar{display:block}
.player-adv-fbar>.adv-grid,.player-adv-fbar>.adv-actions-row{width:100%}
.adv-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:12px;align-items:stretch}
@media(max-width:980px){.adv-grid{grid-template-columns:repeat(2,1fr)}}
@media(max-width:560px){.adv-grid{grid-template-columns:1fr}}
.adv-cell{border:1px solid var(--cb,var(--line));background:var(--cbg,var(--surface-2));border-radius:12px;padding:10px 12px;display:flex;flex-direction:column;gap:6px}
.adv-cell>.adv-gl{appearance:none;background:none;border:none;padding:0;margin:0;font:inherit;font-size:10px;letter-spacing:.06em;text-transform:uppercase;font-weight:800;color:var(--cc,var(--muted));text-align:left;width:100%;display:flex;align-items:center;justify-content:space-between;gap:8px;cursor:default}
.adv-cell>.adv-gl::after{content:"";font-size:11px}
.adv-cell-body{display:flex;flex-direction:column;gap:6px}
.adv-cell .player-adv-field{min-width:0;gap:3px}
.adv-cell .player-adv-field input,.adv-cell .player-adv-field select{max-width:none;width:100%}
.adv-cell .player-adv-rolefield{display:block}
.adv-cell .ced-rolewrap{width:100%}
.adv-cell .ced-rolebtn{width:100%;justify-content:center}
.adv-cell--sel .secondary-button,.adv-cell--sel .primary-button{width:100%}
.adv-range{display:flex;gap:7px;align-items:flex-end}
.adv-range .player-adv-field{flex:1}
.adv-actions-row{display:flex;gap:10px;justify-content:flex-end;margin-top:12px}
.adv-cell--ident{--cbg:rgba(100,116,139,.09);--cb:rgba(100,116,139,.22);--cc:#64748b}
.adv-cell--pos{--cbg:rgba(59,91,219,.08);--cb:rgba(59,91,219,.22);--cc:#3b5bdb}
.adv-cell--eta{--cbg:rgba(194,115,12,.10);--cb:rgba(194,115,12,.24);--cc:#c2730c}
.adv-cell--naz{--cbg:rgba(219,39,119,.08);--cb:rgba(219,39,119,.22);--cc:#be185d}
.adv-cell--piede{--cbg:rgba(14,116,144,.08);--cb:rgba(14,116,144,.22);--cc:#0e7490}
.adv-cell--ca{--cbg:rgba(21,128,61,.10);--cb:rgba(21,128,61,.24);--cc:#15803d}
.adv-cell--pres{--cbg:rgba(124,58,237,.08);--cb:rgba(124,58,237,.22);--cc:#7c3aed}
.adv-cell--sel{--cbg:rgba(29,78,216,.08);--cb:rgba(29,78,216,.22);--cc:#1d4ed8}
/* smartphone: card sempre aperte (nessun accordion) */


/* 01/11/2026 — Ricerca Avanzata: da >=768 Salva/Ricerche salvate (sx) e Azzera/Cerca (dx) sulla stessa riga */
.adv-footer{display:flex;flex-direction:column;gap:10px}
@media(min-width:768px){
  .adv-footer{flex-direction:row;align-items:center;justify-content:space-between;gap:16px;flex-wrap:wrap}
  .adv-footer>.player-adv-saved{order:1;margin-top:0;flex:1 1 auto}
  .adv-footer>.adv-actions-row{order:2;margin-top:0}
}


/* 02/11/2026 — picker formazione "Scegli il titolare": facce, bandiere, ordine per ruolo */
.mgr-pick{align-items:center;gap:11px}
.mgr-pick__group{font-size:10px;font-weight:800;letter-spacing:.06em;text-transform:uppercase;color:var(--muted);padding:11px 4px 3px}
.mgr-picker__list > .mgr-pick__group:first-child{padding-top:2px}
.mgr-pick__face{flex:0 0 auto;display:inline-flex}
.mgr-pick-face{width:40px;height:40px;min-width:40px;border-radius:10px;object-position:center top}
.mgr-pick__face .face-flag-overlay{width:18px;height:18px;right:-3px;bottom:-3px}
.mgr-pick__face .face-flag-overlay .flag-icon,.mgr-pick__face .face-flag-overlay .flag-placeholder{width:14px;height:14px}
.mgr-pick__main{display:flex;flex-direction:column;gap:2px;min-width:0;flex:1 1 auto;text-align:left}
.mgr-pick__name{font-size:13.5px;font-weight:700;color:var(--text);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.mgr-picker__item .mgr-pick__pos{font-size:11px;color:var(--muted)}
.mgr-pick__ca{flex:0 0 auto;font-size:12px;font-weight:800;color:var(--brand);background:var(--surface-2);border:1px solid var(--line);border-radius:999px;padding:3px 10px;white-space:nowrap}


/* 02/11/2026 — picker Sostituti: stesso stile del picker titolare (ruolo + faccia + bandiera + CA) con spunta */
.fx-subpick--rich{display:flex;flex-direction:column;gap:7px}
.fx-subitem{display:flex;align-items:center;gap:11px;border:1px solid var(--line);background:var(--surface);border-radius:10px;padding:8px 12px;cursor:pointer}
.fx-subitem:hover{border-color:var(--brand);background:var(--surface-2)}
.fx-subitem input[type=checkbox]{flex:0 0 auto;width:18px;height:18px;accent-color:var(--brand);margin:0;cursor:pointer}
.fx-subitem .mgr-pick__pos{font-size:11px;color:var(--muted)}
.fx-subitem:has(input:checked){border-color:var(--brand);background:rgba(29,78,216,.06)}

/* FIX 04/11/2026 — nav: menu hamburger unico fino a 1024, menu aperto in-flow con footer/tema visibile */
@media (max-width: 1024px){
  .sidebar.nav-open .nav-list{ position: static !important; max-height: 72vh !important; margin: 0 !important; border-radius: 0 0 14px 14px !important; }
  .sidebar.nav-open .sidebar-footer{ display: grid !important; order: 5 !important; width: 100% !important; flex: 0 0 100% !important; gap: 8px !important; padding: 10px 14px 12px !important; margin: 0 !important; background: var(--surface) !important; border-top: 1px solid var(--line) !important; }
  .sidebar.nav-open .sidebar-footer__divider{ display: none !important; }
  .sidebar.nav-open .fmto-footer-actions{ display: flex !important; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: nowrap; }
  .sidebar.nav-open .fmto-logout-link{ flex: 0 0 auto !important; width: auto !important; min-width: 0 !important; padding: 9px 18px !important; }
  .sidebar.nav-open #fmtoThemeToggle{ flex: 0 0 auto !important; }
  .sidebar.nav-open .fmto-sidebar-privacy{ color: var(--muted) !important; text-align: left; }
  .sidebar.nav-open .version{ display: none !important; }
}

/* === Selezionati: colore personalizzato stella + accento card (2026-11-07) === */
.shortlist-star.sl-colored .sl-ic{color:var(--sl-color)!important}
.sl-card-colored{position:relative}
.sl-card-colored::after{content:"";position:absolute;top:8px;bottom:8px;right:0;width:4px;border-radius:4px 0 0 4px;background:var(--sl-color);pointer-events:none;z-index:1}
.sl-choice{display:inline-flex;align-items:center;background:var(--surface-2,#f1f5f9);border:1px solid var(--line,#e2e8f0);border-radius:11px;padding:3px;gap:3px;flex:0 0 auto}
.sl-choice-opt{display:inline-flex;align-items:center;gap:7px;border:0;background:transparent;color:var(--muted,#64748b);font-weight:700;font-size:12.5px;padding:7px 12px;border-radius:9px;cursor:pointer}
.sl-choice-opt .st{font-size:14px;line-height:1}
.sl-choice-opt.is-active{background:var(--surface,#fff);color:var(--text,#15233a);box-shadow:0 1px 3px rgba(15,35,58,.12)}
.sl-opt-star.is-active .st{color:#f2b705}
.sl-opt-color.is-active .st{color:var(--sl-color,#f59e0b)}
.sl-swatch{width:16px;height:16px;border-radius:50%;border:2px solid var(--surface,#fff);box-shadow:0 0 0 1px var(--line,#cbd5e1);background:var(--sl-color,#2563eb)}
.sl-color-input{position:absolute;width:0;height:0;opacity:0;pointer-events:none}
/* SLV2 — Lista selezionati v2 (riga ricca + gruppi) 2026-11-07 */
.sl2-bar{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin:0 0 12px}
.sl2-bar .sl2-count{font-weight:700;font-size:13px;color:var(--muted);margin-right:auto}
.sl2-sel{display:inline-flex;align-items:center;gap:6px;font-size:12.5px;font-weight:700;color:var(--muted)}
.sl2-sel select{border:1px solid var(--line);background:var(--surface);border-radius:9px;padding:7px 9px;font-size:12.5px;font-weight:700;color:var(--text)}
.sl2-manage-btn{border:1px solid var(--line);background:var(--surface);color:#1d4ed8;border-radius:10px;padding:8px 12px;font-size:12.5px;font-weight:800;cursor:pointer}
.sl2-legend{display:flex;gap:7px;flex-wrap:wrap;margin:0 0 14px}
.sl2-gchip{display:inline-flex;align-items:center;gap:7px;border:1px solid var(--line);background:var(--surface);border-radius:999px;padding:5px 11px;font-size:12px;font-weight:700;color:var(--text);cursor:pointer}
.sl2-gchip.on{border-color:#1d4ed8;box-shadow:inset 0 0 0 1px #1d4ed8}
.sl2-gchip .dot{width:11px;height:11px;border-radius:50%;background:var(--c,#cbd5e1);flex:0 0 auto}
.sl2-gchip .n{color:var(--muted);font-weight:700}
.sl2-list{display:grid;gap:10px}
.sl2-rowwrap{position:relative}
.sl2-row.player-result{min-height:66px}
.sl2-row .roster-name-block{display:flex;flex-direction:column;min-width:0}
.sl2-id{color:var(--muted);font-size:11px}
.sl2-note{flex:1;min-width:120px;display:flex;align-items:center;gap:7px}
.sl2-note input{flex:1;min-width:0;border:1px solid var(--line);border-radius:9px;padding:9px 12px;font-size:12.5px;background:var(--surface-2);color:var(--text)}
.sl2-saved{color:#16a34a;font-weight:800;opacity:0;transition:opacity .2s;flex:0 0 auto}
.sl2-saved.show{opacity:1}
.sl2-actions{flex:0 0 auto}
.sl2-tag{display:inline-flex;align-items:center;gap:6px;border:1px solid var(--line);background:var(--surface);border-radius:999px;padding:6px 10px;font-weight:700;font-size:12px;cursor:pointer;color:var(--text);white-space:nowrap}
.sl2-tag .dot{width:12px;height:12px;border-radius:50%;background:var(--c,#cbd5e1);flex:0 0 auto}
.sl2-tag .st{font-size:14px;color:var(--c,#94a3b8)}
.sl2-tag .cv{font-size:9px;opacity:.5}
.sl2-pop{position:absolute;right:12px;top:58px;z-index:30;background:var(--surface);border:1px solid var(--line);border-radius:12px;box-shadow:0 14px 40px rgba(15,35,58,.2);width:230px;overflow:hidden;display:none}
.sl2-pop.open{display:block}
.sl2-ph{font-size:11px;font-weight:800;text-transform:uppercase;letter-spacing:.04em;color:var(--muted);padding:10px 12px 4px}
.sl2-pi{display:flex;align-items:center;gap:9px;padding:8px 12px;font-size:12.5px;font-weight:700;cursor:pointer;color:var(--text)}
.sl2-pi:hover{background:var(--surface-2)}
.sl2-pi .dot{width:12px;height:12px;border-radius:50%;background:var(--c,#cbd5e1)}
.sl2-pi .st2{color:#94a3b8;font-size:14px}
.sl2-custom{display:flex;align-items:center;gap:8px;padding:8px 12px;font-size:12.5px;font-weight:700;cursor:pointer;color:var(--text)}
.sl2-custom input[type=color]{width:26px;height:24px;border:1px solid var(--line);border-radius:6px;background:#fff;padding:1px}
.sl2-sep{height:1px;background:var(--surface-2);margin:4px 0}
.sl2-managelink{color:#1d4ed8}
.sl2-gman{background:var(--surface-2);border:1px solid var(--line);border-radius:12px;padding:14px;margin:0 0 14px}
.sl2-gman-h{font-weight:800;font-size:13px;margin:0 0 10px}
.sl2-gman-empty{color:var(--muted);font-size:12.5px}
.sl2-grow{display:flex;align-items:center;gap:8px;padding:7px 0;border-top:1px solid var(--line);flex-wrap:wrap}
.sl2-grow .dot{width:14px;height:14px;border-radius:50%;background:var(--c);flex:0 0 auto}
.sl2-gname{flex:1;min-width:120px;border:1px solid var(--line);border-radius:8px;padding:7px 10px;font-size:12.5px;background:var(--surface);color:var(--text)}
.sl2-gcolor{width:34px;height:30px;border:1px solid var(--line);border-radius:8px;background:#fff;padding:2px}
.sl2-gcreate{display:flex;align-items:center;gap:8px;margin-top:12px;padding-top:12px;border-top:2px solid var(--line);flex-wrap:wrap}
.sl2-gcreate input[type=text]{flex:1;min-width:140px;border:1px solid var(--line);border-radius:9px;padding:8px 11px;font-size:12.5px;background:var(--surface);color:var(--text)}
.sl2-gcreate input[type=color]{width:34px;height:34px;border:1px solid var(--line);border-radius:8px;background:#fff;padding:2px}
@media (max-width:640px){.sl2-note{width:100%;order:3}.sl2-actions{width:100%;justify-content:flex-start;flex-wrap:wrap}.sl2-pop{right:8px;left:8px;width:auto}}
/* NA — Notifiche (bell NA1 + pagina NA2) 2026-11-07 */
.na-bell-wrap{position:relative;display:inline-flex}
.na-bell{position:relative;width:38px;height:38px;border-radius:10px;background:var(--surface-2);border:1px solid var(--line);display:inline-flex;align-items:center;justify-content:center;font-size:17px;cursor:pointer;color:var(--text)}
.na-bell-badge{position:absolute;top:-5px;right:-5px;min-width:18px;height:18px;padding:0 4px;border-radius:9px;background:#ef4444;color:#fff;font-size:11px;font-weight:800;display:flex;align-items:center;justify-content:center;border:2px solid var(--surface)}
.na-dropdown{position:absolute;top:46px;right:0;width:360px;max-width:92vw;background:var(--surface);border:1px solid var(--line);border-radius:14px;box-shadow:0 18px 50px rgba(15,35,58,.22);overflow:hidden;z-index:60}
.na-dd-h{display:flex;align-items:center;justify-content:space-between;padding:12px 14px;border-bottom:1px solid var(--line);font-weight:800;font-size:13px;color:var(--text)}
.na-dd-h a{font-size:11.5px;color:#1d4ed8;font-weight:700;cursor:pointer}
.na-dd-body{max-height:360px;overflow:auto}
.na-dd-f{display:flex;align-items:center;justify-content:space-between;padding:10px 14px;border-top:1px solid var(--line)}
.na-dd-f a{font-size:12.5px;color:#1d4ed8;font-weight:800;cursor:pointer}
.na-dd-f .na-gear{font-size:12px;color:var(--muted);font-weight:700;cursor:pointer}
.na-row{display:flex;gap:11px;padding:11px 14px;border-bottom:1px solid var(--surface-2);align-items:flex-start}
.na-row.is-unread{background:var(--surface-2)}
.na-ic{width:34px;height:34px;border-radius:9px;display:flex;align-items:center;justify-content:center;font-size:15px;flex:0 0 auto}
.na-add{background:rgba(245,158,11,.16);color:#b45309}
.na-rem{background:rgba(148,163,184,.2);color:#475569}
.na-sys{background:rgba(37,99,235,.14);color:#1d4ed8}
.na-main{flex:1;min-width:0}
.na-txt{font-size:13px;line-height:1.4;color:var(--text)}
.na-time{font-size:11px;color:var(--muted);margin-top:3px}
.na-dot{width:9px;height:9px;border-radius:50%;background:#2563eb;flex:0 0 auto;margin-top:5px}
.na-empty{padding:16px;color:var(--muted);font-size:12.5px;text-align:center}
.na-list{border:1px solid var(--line);border-radius:12px;overflow:hidden;background:var(--surface)}
.na-list .na-row:last-child{border-bottom:0}
.na-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;flex-wrap:wrap}
.na-head-actions{display:flex;gap:9px;align-items:center;flex-wrap:wrap}
.na-optbtn{display:inline-flex;align-items:center;gap:7px;font-size:12.5px;font-weight:800;border:1px solid #fca5a5;background:#fef2f2;color:#b91c1c;border-radius:10px;padding:8px 13px;cursor:pointer}
.na-optbtn.on{border-color:#86efac;background:#f0fdf4;color:#15803d}
@media (max-width:640px){.na-dropdown{position:fixed;left:8px;right:8px;top:62px;width:auto;max-width:none}}
/* LT — Lista selezionati tabella ordinabile + PG menu 2026-11-07 */
.sl-tablewrap{width:100%}
.sl-table{table-layout:auto}
.sl-table .sl-expand{display:none;border:0;background:transparent;color:var(--muted);font-weight:800;font-size:16px;line-height:1;cursor:pointer;margin-right:2px;padding:0 2px}
.sl-groupcell{display:inline-flex;align-items:center;gap:6px}
.sl-gdot{width:11px;height:11px;border-radius:50%;border:1px solid var(--line);flex:0 0 auto;background:transparent}
.sl-groupsel{border:1px solid var(--line);background:var(--surface);border-radius:8px;padding:5px 7px;font-size:12px;font-weight:700;color:var(--text);max-width:150px}
.sl-tnote{border:1px solid var(--line);border-radius:8px;padding:6px 9px;font-size:12px;background:var(--surface-2);color:var(--text);width:100%;box-sizing:border-box}
.sl-tact{display:inline-flex;gap:6px}
.sl-tbtn{font-size:11px;font-weight:700;border:1px solid var(--line);background:var(--surface);border-radius:7px;padding:5px 8px;cursor:pointer;color:#1d4ed8;white-space:nowrap}
.sl-tbtn.rm{color:#ef4444}
.sl-tdetail{display:none}
.sl-detwrap{display:flex;flex-direction:column;gap:10px;padding:4px 2px 12px}
.sl-detrow{display:flex;align-items:center;gap:10px;flex-wrap:wrap}
.sl-detlb{font-size:11px;font-weight:800;color:var(--muted);min-width:56px;text-transform:uppercase;letter-spacing:.03em}
.sl-detact{gap:8px}
@media (max-width:640px){
  .sl-table .sl-c-group,.sl-table .sl-c-note,.sl-table .sl-c-act{display:none}
  .sl-table .sl-expand{display:inline-flex}
  .sl-tdetail.open{display:table-row}
  .sl-detwrap .sl-tnote,.sl-detwrap .sl-groupsel{max-width:none;flex:1}
}
.sl-addmenu{position:fixed;z-index:9999;background:var(--surface);border:1px solid var(--line);border-radius:12px;box-shadow:0 14px 40px rgba(15,35,58,.24);width:230px;overflow:hidden}
.sl-addmenu .ph{font-size:11px;font-weight:800;text-transform:uppercase;letter-spacing:.04em;color:var(--muted);padding:10px 12px 4px}
.sl-addmenu .pi{display:flex;align-items:center;gap:9px;padding:9px 12px;font-size:12.5px;font-weight:700;cursor:pointer;color:var(--text)}
.sl-addmenu .pi:hover{background:var(--surface-2)}
.sl-addmenu .pi .dot{width:12px;height:12px;border-radius:50%;flex:0 0 auto}
.sl-addmenu .pi .st{color:#94a3b8;font-size:14px}
.sl-addmenu .sep{height:1px;background:var(--surface-2);margin:4px 0}
.sl-addmenu .nuovo{color:#1d4ed8}
/* mini-form nuovo gruppo 2026-11-07 */
.sl-newgroup{position:fixed;z-index:10000;background:var(--surface);border:1px solid var(--line);border-radius:12px;box-shadow:0 14px 40px rgba(15,35,58,.24);width:250px;padding:12px}
.sl-newgroup .ph{font-size:11px;font-weight:800;text-transform:uppercase;letter-spacing:.04em;color:var(--muted);margin-bottom:8px}
.sl-newgroup .row{display:flex;align-items:center;gap:8px;margin-bottom:10px}
.sl-newgroup .row input[type=color]{width:34px;height:32px;border:1px solid var(--line);border-radius:8px;background:#fff;padding:2px;flex:0 0 auto}
.sl-newgroup .row input[type=text]{flex:1;min-width:0;border:1px solid var(--line);border-radius:8px;padding:8px 10px;font-size:12.5px;background:var(--surface);color:var(--text)}
.sl-newgroup .acts{display:flex;justify-content:flex-end;gap:8px}
/* badge gruppo accanto alla stella (ricerca rapida/avanzata) 2026-11-07 */
.sl-gbadge{display:inline-flex;align-items:center;gap:5px;border:1px solid var(--line);background:var(--surface-2);border-radius:999px;padding:3px 8px;font-size:11px;font-weight:700;color:var(--text);white-space:nowrap;max-width:130px;vertical-align:middle}
.sl-gbadge[hidden]{display:none}
.sl-gbadge-dot{width:9px;height:9px;border-radius:50%;background:var(--c,#94a3b8);flex:0 0 auto}
.sl-gbadge-nm{overflow:hidden;text-overflow:ellipsis;max-width:100px}
.sl-gbadge--mini{padding:2px 6px;font-size:10px;max-width:96px}
.sl-gbadge--mini .sl-gbadge-nm{max-width:64px}
@media (max-width:640px){.sl-gbadge--mini{padding:2px;border:0;background:transparent}.sl-gbadge--mini .sl-gbadge-nm{display:none}}
/* card filtri Lista selezionati (Ruolo/CA/Ingaggio) 2026-11-07 */
.sl-filters{display:flex;align-items:flex-end;gap:12px;flex-wrap:wrap;background:var(--surface);border:1px solid var(--line);border-radius:12px;padding:12px 14px;margin:0 0 14px}
.sl-fcard{display:flex;flex-direction:column;gap:6px}
.sl-flb{font-size:11px;font-weight:800;text-transform:uppercase;letter-spacing:.03em;color:var(--muted)}
.sl-fchips{display:flex;gap:6px;flex-wrap:wrap}
.sl-fchip{border:1px solid var(--line);background:var(--surface-2);color:var(--muted);border-radius:999px;padding:6px 11px;font-size:12px;font-weight:700;cursor:pointer}
.sl-fchip.on{background:#1d4ed8;border-color:#1d4ed8;color:#fff}
.sl-frange{display:flex;align-items:center;gap:6px}
.sl-frange input{width:66px;border:1px solid var(--line);border-radius:8px;padding:7px 9px;font-size:12.5px;background:var(--surface-2);color:var(--text)}
.sl-frange span{color:var(--muted)}
.sl-facts{display:flex;align-items:center;gap:8px;margin-left:auto}
.sl-fclear{border:1px solid var(--line);background:var(--surface);color:var(--muted);border-radius:9px;padding:8px 12px;font-size:12.5px;font-weight:700;cursor:pointer}
.sl2-manage-btn.is-active{border-color:#1d4ed8;color:#1d4ed8}
@media (max-width:640px){.sl-filters{gap:10px}.sl-facts{margin-left:0;width:100%}.sl-frange input{width:60px}}
/* badge gruppo: cliccabile + avanzata solo pallino 2026-11-07 */
.sl-gbadge{cursor:pointer}
.sl-gbadge--mini{padding:2px;border:0;background:transparent;max-width:none}
.sl-gbadge--mini .sl-gbadge-nm{display:none}
.sl-gbadge--mini .sl-gbadge-dot{width:12px;height:12px;box-shadow:0 0 0 2px var(--surface)}
/* Lista selezionati: scelta avvisi al proprietario (lato mittente) 2026-11-07 */
.sl-privacy{display:flex;align-items:center;justify-content:space-between;gap:14px;flex-wrap:wrap;background:var(--surface);border:1px solid var(--line);border-radius:12px;padding:12px 15px;margin:0 0 14px}
.sl-privacy-txt{display:flex;flex-direction:column;gap:2px;min-width:0;flex:1}
.sl-privacy-txt b{font-size:13px}
.sl-privacy-txt span{font-size:12px;color:var(--muted);line-height:1.45}
.sl-privacy-seg{display:inline-flex;gap:8px;flex:0 0 auto}
.sl-privacy-opt{border:1px solid var(--line);background:var(--surface-2);color:var(--muted);border-radius:10px;padding:9px 14px;font-size:12.5px;font-weight:800;cursor:pointer}
.sl-privacy-opt.yes.on{background:#f0fdf4;border-color:#86efac;color:#15803d}
.sl-privacy-opt.no.on{background:#fef2f2;border-color:#fca5a5;color:#b91c1c}
@media (max-width:640px){.sl-privacy-seg{width:100%}.sl-privacy-opt{flex:1}}

/* ===== Sezione NEWS (Inc 1b) ===== */
.fmto-news-wrap{max-width:720px;margin:0 auto;padding:4px 0 24px}
.fmto-news-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:4px 2px 14px}
.fmto-news-head h2{margin:0;font-size:20px}
.fmto-news-head p{margin:2px 0 0;font-size:13px;color:var(--muted)}
.fmto-news-reload{border:1px solid var(--line);background:var(--surface-2);color:var(--muted);width:36px;height:36px;border-radius:10px;font-size:16px;cursor:pointer;flex:0 0 auto}
.fmto-news-reload:hover{color:var(--text)}
.fmto-news-devnote{background:#fff7ed;border:1px solid #fed7aa;color:#9a3412;border-radius:10px;padding:8px 12px;font-size:12.5px;font-weight:700;margin:0 2px 12px}
.fmto-news-feed{display:flex;flex-direction:column;gap:12px}
.fmto-news-card{background:var(--surface-2);border:1px solid var(--line);border-radius:14px;padding:13px 14px}
.fmto-news-top{display:flex;gap:12px;align-items:flex-start}
.fmto-news-crest{flex:0 0 auto;width:42px;height:42px;border-radius:11px;display:flex;align-items:center;justify-content:center;color:#fff;font-weight:800;font-size:14px;letter-spacing:.3px}
.fmto-news-main{min-width:0;flex:1}
.fmto-news-pill{display:inline-block;font-size:11px;font-weight:800;border-radius:6px;padding:2px 8px;letter-spacing:.2px}
.fmto-news-pill--match{background:#e6f1fb;color:#0c447c}
.fmto-news-pill--market{background:#eaf3de;color:#27500a}
.fmto-news-title{margin:6px 0 0;font-size:15px;line-height:1.3;font-weight:800;color:var(--text)}
.fmto-news-meta{margin-top:5px;font-size:12px;color:var(--muted)}
.fmto-news-body{margin:10px 0 0;font-size:13.5px;line-height:1.5;color:var(--text)}
.fmto-news-quote{display:flex;gap:9px;margin:11px 0 0;padding:9px 11px;background:var(--surface-1,rgba(0,0,0,.03));border-left:3px solid #3984ff;border-radius:0 10px 10px 0}
.fmto-news-quote-crest{flex:0 0 auto;width:26px;height:26px;border-radius:50%;display:flex;align-items:center;justify-content:center;color:#fff;font-weight:800;font-size:10px}
.fmto-news-quote-txt{font-style:italic;font-size:12.5px;line-height:1.4;color:var(--text)}
@media(max-width:640px){.fmto-news-wrap{padding:4px 0 20px}.fmto-news-crest{width:38px;height:38px}}
.fmto-news-crest--logo{background:#fff;padding:3px}
.fmto-news-crest img{width:100%;height:100%;object-fit:contain;display:block}
.fmto-news-cl{width:15px;height:15px;object-fit:contain;vertical-align:-3px;margin-right:5px}
.fmto-news-quote-who{display:block;font-style:normal;font-size:11px;color:var(--muted);margin-bottom:2px;font-weight:800}
.fmto-news-quote-crest--logo{background:#fff}
.fmto-news-quote-crest img{width:100%;height:100%;object-fit:contain;border-radius:50%}
.fmto-news-cform{display:flex;gap:8px;margin:11px 0 0;align-items:flex-end}
.fmto-news-cinput{flex:1;border:1px solid var(--line);background:var(--surface-2);color:var(--text);border-radius:10px;padding:8px 10px;font-size:13px;font-family:inherit;resize:vertical;min-height:38px}
.fmto-news-csend{flex:0 0 auto;border:1px solid #3984ff;background:#3984ff;color:#fff;border-radius:10px;padding:9px 14px;font-size:13px;font-weight:800;cursor:pointer}
.fmto-news-csend:disabled{opacity:.6;cursor:default}
/* ===== News L1 layout + filtro + widget (NC5) ===== */
.fmto-news-layout{display:grid;grid-template-columns:minmax(0,1fr) 300px;gap:20px;max-width:1120px;margin:0 auto;padding:4px 0 24px;align-items:start}
.fmto-news-maincol{min-width:0}
.fmto-news-rail{position:sticky;top:12px;display:flex;flex-direction:column;gap:12px}
@media(max-width:900px){.fmto-news-layout{grid-template-columns:1fr}.fmto-news-rail{position:static}}
.fmto-news-filter{display:inline-flex;background:var(--surface-1,#e9edf5);border:1px solid var(--line);border-radius:12px;padding:4px;gap:4px;margin:0 0 14px}
.fmto-nf{border:0;background:transparent;color:var(--muted);font-weight:800;font-size:13px;padding:7px 15px;border-radius:9px;cursor:pointer;display:inline-flex;align-items:center;gap:5px}
.fmto-nf.on{background:var(--surface-2);color:var(--text);box-shadow:0 1px 3px rgba(20,32,51,.12)}
.fmto-nf-n{font-size:11px;opacity:.7}
/* NF1 — chip filtro competizioni NEWS: pillole che vanno a capo (niente menù a discesa) */
.fmto-news-compbar{display:flex;flex-wrap:wrap;background:transparent;border:0;padding:0;gap:6px;width:100%}
.fmto-news-compbar .fmto-nf{border:1px solid var(--line);background:var(--surface-2);border-radius:999px;padding:6px 12px;font-size:12px;box-shadow:none}
.fmto-news-compbar .fmto-nf.on{background:var(--brand,#173b82);color:#fff;border-color:transparent}
.fmto-news-pills{display:flex;align-items:center;gap:6px;flex-wrap:wrap}
.fmto-news-chip{display:inline-flex;align-items:center;gap:4px;background:var(--surface-1,#e9edf5);border:1px solid var(--line);border-radius:6px;padding:1px 7px 1px 3px;font-size:11px;font-weight:800;color:var(--text)}
.fmto-news-chip .fmto-news-cl{width:14px;height:14px;margin:0}
.fmto-news-feed.filter-match .fmto-news-card[data-newstype="market"]{display:none}
.fmto-news-feed.filter-market .fmto-news-card[data-newstype="match"]{display:none}
.fmto-news-widget{background:var(--surface-2);border:1px solid var(--line);border-radius:12px;padding:12px 13px}
.fmto-nw-head{font-size:12px;font-weight:800;text-transform:uppercase;letter-spacing:.4px;color:var(--muted);margin:0 0 9px}
.fmto-nw-muted{font-size:12px;color:var(--muted);padding:3px 0}
.fmto-nw-sel{width:100%;margin:0 0 9px;border:1px solid var(--line);background:var(--surface-2);color:var(--text);border-radius:8px;padding:7px 9px;font-size:12.5px;font-weight:700}
.fmto-nw-row{display:flex;align-items:center;gap:8px;font-size:12.5px;padding:6px 0;border-top:1px solid var(--line)}
.fmto-nw-row:first-child{border-top:0}
.fmto-nw-txt{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.fmto-nw-cr{color:var(--muted);font-weight:800;font-size:11.5px}
.fmto-nw-crow{display:flex;align-items:center;gap:8px;font-size:12.5px;padding:6px 0;border-top:1px solid var(--line)}
.fmto-nw-crow:first-child{border-top:0}
.fmto-nw-crow.is-me{font-weight:800}
.fmto-nw-pos{width:16px;text-align:center;color:var(--muted);font-weight:800}
.fmto-nw-tname{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.fmto-news-tc{width:22px;height:22px;border-radius:6px;flex:0 0 auto;display:flex;align-items:center;justify-content:center;color:#fff;font-weight:800;font-size:9px}
.fmto-news-tc--logo{background:#fff}
.fmto-news-tc img{width:100%;height:100%;object-fit:contain;border-radius:5px}
/* News nel bento Panoramica (scroll, più recenti in alto) */
.ovx-body--news{max-height:340px;overflow-y:auto}
.ovx-nwi{display:flex;align-items:center;gap:9px;padding:8px 2px;border-top:1px solid var(--line)}
.ovx-nwi:first-child{border-top:0}
.ovx-nwtag{width:4px;align-self:stretch;border-radius:2px;flex:0 0 auto;min-height:30px}
.ovx-nwtag--match{background:#3984ff}.ovx-nwtag--market{background:#639922}
.ovx-nwtx{min-width:0;flex:1}
.ovx-nwti{font-size:13px;font-weight:700;line-height:1.3;overflow:hidden;text-overflow:ellipsis;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical}
.ovx-nwmt{font-size:11px;color:var(--muted);margin-top:2px}
.ovx-more{margin-left:auto;border:1px solid var(--line);background:var(--surface-2);color:var(--muted);border-radius:8px;padding:3px 10px;font-size:12px;font-weight:800;cursor:pointer}
/* Panoramica con News: nuova disposizione (5 blocchi) + filtri/selettore */
.ovx-newsbar{display:flex;flex-wrap:wrap;gap:8px;align-items:center;margin:0 0 10px}
.ovx-compsel{border:1px solid var(--line);background:var(--surface-2);color:var(--text);border-radius:8px;padding:6px 9px;font-size:12px;font-weight:700}
.ovx-compmini{margin:8px 0}
.ovx-compopen{display:block;width:100%;margin-top:6px;border:0;background:transparent;color:var(--muted);font-weight:800;font-size:12px;text-align:right;cursor:pointer}
#overviewMatchView .ovx-grid--news{ grid-template-areas:"match match results" "unav deadlines comps"; }
@media (max-width:820px){ #overviewMatchView .ovx-grid--news{ grid-template-areas:"match" "results" "unav" "deadlines" "comps"; } }
@media (min-width:1400px){ #overviewMatchView .ovx-grid--news{ grid-template-areas:"match match results results" "unav deadlines comps comps"; } }

/* ===== Tema "Amber Staff" (ST2) — tutte le viste dello staff ===== */
body.fmto-staff-view .main{ background:#fff7ec; }
/* Larghezza piena su tutte le sezioni staff (niente cap, niente spazio sprecato) */
body.fmto-staff-view .ref-wrap,
body.fmto-staff-view .mkt-wrap,
body.fmto-staff-view .breg-wrap,
body.fmto-staff-view .bnd-wrap{ max-width:none !important; }
body.fmto-staff-view .btn-primary,
body.fmto-staff-view .primary-button{ background:#ea580c !important; border-color:#ea580c !important; color:#fff !important; }
body.fmto-staff-view .btn-primary:hover,
body.fmto-staff-view .primary-button:hover{ background:#c2410c !important; border-color:#c2410c !important; }

/* ===== Pari merito in classifica (CL1) — 11/11/2026 =====
   Chip inline col criterio che mette la squadra avanti a pari punti + banda di
   gruppo sulle righe a pari punti + riquadro REG (criteri) a scomparsa.
   Responsive: il chip va a capo sotto il nome quando manca spazio; sotto 420px
   resta la sola icona (dettaglio su tap/hover). Niente overflow orizzontale. */
:root{ --fb-tie-band:#ea580c; }
@media (prefers-color-scheme: dark){ :root:not([data-theme="light"]){ --fb-tie-band:#fb923c; } }
:root[data-theme="dark"]{ --fb-tie-band:#fb923c; }

/* cella nome: contenitore flessibile che manda il chip a capo quando serve */
table.fb-cls td.fb-teamcell{
  display:flex; flex-wrap:wrap; align-items:center; gap:4px 6px; min-width:0;
}

/* chip criterio */
.fb-tiechip{
  display:inline-flex; align-items:center; gap:3px;
  padding:1px 8px 1px 6px; border-radius:999px;
  background:#fff3e6; border:1px solid #f3c58f; color:#b45309;
  font-size:10.5px; font-weight:800; line-height:1.55;
  white-space:nowrap; vertical-align:middle; cursor:help; flex:0 0 auto;
}
.fb-tiechip__ic{ font-size:11px; line-height:1; }
.fb-tiechip__txt{ letter-spacing:.01em; }
@media (prefers-color-scheme: dark){
  :root:not([data-theme="light"]) .fb-tiechip{
    background:rgba(234,88,12,.18); border-color:rgba(234,88,12,.42); color:#ffb469;
  }
}
:root[data-theme="dark"] .fb-tiechip{
  background:rgba(234,88,12,.18); border-color:rgba(234,88,12,.42); color:#ffb469;
}

/* banda di gruppo sulle righe a pari punti */
table.fb-cls tr.fb-row--tie td:first-child{
  border-left:3px solid var(--fb-tie-band);
}

/* riquadro REG — criteri di parità, a scomparsa */
.fb-rules{
  margin:0 0 10px; border:1px solid var(--line); border-radius:10px;
  background:var(--surface); overflow:hidden;
}
.fb-rules__sum{
  display:flex; align-items:center; gap:8px; flex-wrap:wrap;
  padding:9px 12px; cursor:pointer; font-size:12px; font-weight:800;
  color:var(--text); list-style:none;
}
.fb-rules__sum::-webkit-details-marker{ display:none; }
.fb-rules__ic{ font-size:14px; line-height:1; }
.fb-rules__hint{ color:var(--muted); font-weight:600; font-size:11px; }
.fb-rules__sum::after{ content:"\25BE"; margin-left:auto; color:var(--muted); transition:transform .15s ease; }
.fb-rules[open] .fb-rules__sum::after{ transform:rotate(180deg); }
.fb-rules__body{
  padding:10px 12px 12px; display:flex; flex-direction:column; gap:8px;
  border-top:1px solid var(--line);
}
.fb-rules__row{ display:flex; flex-wrap:wrap; align-items:center; gap:6px; }
.fb-rules__lbl{
  font-size:10px; font-weight:800; text-transform:uppercase; letter-spacing:.04em;
  color:var(--muted); min-width:84px;
}
.fb-rules__chain{
  list-style:none; display:flex; flex-wrap:wrap; gap:6px; margin:0; padding:0;
  counter-reset:fbr;
}
.fb-rules__chain li{
  counter-increment:fbr; display:inline-flex; align-items:center; gap:5px;
  background:var(--chip,#eef2f8); border:1px solid var(--line); border-radius:999px;
  padding:2px 9px 2px 7px; font-size:11px; font-weight:600; color:var(--text);
}
.fb-rules__chain li::before{
  content:counter(fbr); display:inline-flex; align-items:center; justify-content:center;
  min-width:15px; height:15px; border-radius:50%; background:var(--brand,#3984ff);
  color:#fff; font-size:9px; font-weight:800; flex:0 0 auto;
}

/* mobile: il chip va a capo sotto il nome (flex-wrap); sotto 360px resta solo
   l'icona come ultima risorsa, così non sfora mai in orizzontale */
@media (max-width:480px){ .fb-rules__lbl{ min-width:0; } }
@media (max-width:360px){
  .fb-tiechip__txt{ display:none; }
  .fb-tiechip{ padding:1px 6px; }
}

/* ===== Chiusura posizioni campionato (Area Staff) — 13/11/2026 ===== */
.cpz-box{ display:flex; flex-direction:column; gap:10px; }
.cpz-state{ font-size:12.5px; font-weight:700; padding:8px 11px; border-radius:9px; border:1px solid var(--line); }
.cpz-state.on{ background:#ecfdf3; border-color:#bbf7d0; color:#1a7f45; }
.cpz-state.off{ background:#fff7ec; border-color:#f3c58f; color:#b45309; }
.cpz-list{ display:flex; flex-direction:column; gap:5px; }
.cpz-row{ display:flex; align-items:center; justify-content:space-between; gap:10px; padding:7px 10px; border:1px solid var(--line); border-radius:8px; background:var(--surface); }
.cpz-nm{ font-size:12.5px; font-weight:700; color:var(--text); }
.cpz-st{ font-size:11px; font-weight:800; padding:2px 9px; border-radius:999px; white-space:nowrap; }
.cpz-st.ok{ background:#ecfdf3; color:#1a7f45; border:1px solid #bbf7d0; }
.cpz-st.wait{ background:var(--chip,#eef2f8); color:var(--muted); border:1px solid var(--line); }
.cpz-foot{ display:flex; flex-wrap:wrap; align-items:center; gap:10px; }
.cpz-btn{ border:none; border-radius:9px; padding:9px 16px; font-size:13px; font-weight:800; cursor:pointer; color:#fff; }
.cpz-btn.close{ background:#ea580c; }
.cpz-btn.close:hover:not(:disabled){ background:#c2410c; }
.cpz-btn.reopen{ background:#64748b; }
.cpz-btn.reopen:hover:not(:disabled){ background:#475569; }
.cpz-btn:disabled{ opacity:.55; cursor:not-allowed; }
.cpz-hint{ font-size:11.5px; color:var(--muted); margin:0; }
.cpz-hint.warn{ color:#b45309; }
@media (prefers-color-scheme: dark){
  :root:not([data-theme="light"]) .cpz-state.on{ background:rgba(26,127,69,.16); border-color:rgba(26,127,69,.4); color:#6ee7a8; }
  :root:not([data-theme="light"]) .cpz-state.off{ background:rgba(234,88,12,.16); border-color:rgba(234,88,12,.4); color:#ffb469; }
  :root:not([data-theme="light"]) .cpz-st.ok{ background:rgba(26,127,69,.18); color:#6ee7a8; border-color:rgba(26,127,69,.4); }
}
:root[data-theme="dark"] .cpz-state.on{ background:rgba(26,127,69,.16); border-color:rgba(26,127,69,.4); color:#6ee7a8; }
:root[data-theme="dark"] .cpz-state.off{ background:rgba(234,88,12,.16); border-color:rgba(234,88,12,.4); color:#ffb469; }
:root[data-theme="dark"] .cpz-st.ok{ background:rgba(26,127,69,.18); color:#6ee7a8; border-color:rgba(26,127,69,.4); }
