/* Portail FHSW : dense, pleine largeur, sans dépendance graphique externe. */
.login-panel{max-width:540px;padding:18px}.login-panel form{display:grid;gap:10px}.login-panel label{font-weight:700}.login-panel input,.login-panel select,.login-panel button{font:inherit;min-width:0;padding:10px;border:1px solid var(--bordure);border-radius:4px;background:var(--fond2);color:var(--texte)}.login-panel button{cursor:pointer;font-weight:700}.login-panel [role=alert]{border-left:3px solid #df765e;padding:10px}.login-panel p{margin-bottom:16px}
.portal-home{width:100%;padding:18px 20px 26px;max-width:none}
.portal-heading{display:flex;align-items:flex-end;justify-content:space-between;gap:16px;margin-bottom:16px}
.portal-heading h1{font-size:clamp(22px,calc(2.2vw / var(--zf,1)),32px);line-height:1.15;letter-spacing:-.7px;margin:6px 0 0}
.eyebrow{font-size:10px;font-weight:800;letter-spacing:1.8px;color:var(--bleu-clair)}
.muted{color:var(--texte-doux);font-size:12px}.portal-heading .muted{margin:0}
.section-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:10px}
.section-heading h2{font-size:16px;margin:0;font-weight:800}.section-heading a{font-size:11px;color:var(--bleu-clair);font-weight:700}
.scoreboard{border:1px solid var(--bordure);background:var(--fond2);padding:12px;margin-bottom:18px;border-radius:6px}
.scores{display:flex;overflow-x:auto;gap:8px;padding-bottom:4px}.score-card{min-width:132px;flex:0 0 132px;border:1px solid var(--bordure);padding:9px;background:var(--carte);border-radius:4px}
.score-card>span:not(.eyebrow){display:flex;gap:8px;align-items:center;font-size:12px;font-weight:700;margin-top:5px}.score-card img{width:24px;height:24px;object-fit:contain}.score-card b{margin-left:auto}
.pill{font-size:10px;font-weight:500;padding:3px 7px;border:1px solid var(--bordure);border-radius:4px;color:var(--texte-doux);margin-left:5px}
.home-grid{display:grid;grid-template-columns:220px minmax(0,1fr) 340px;grid-template-areas:"leaders news race";gap:12px;align-items:start}.home-leaders{grid-area:leaders}.home-feed{grid-area:news}.home-race{grid-area:race}
.home-sidebar .portal-panel{padding:9px}.home-sidebar .section-heading{gap:5px;flex-wrap:wrap;margin-bottom:7px}.home-sidebar .section-heading h2{font-size:13px}.home-sidebar .section-heading a{font-size:10px}.home-sidebar .compact-table{font-size:11px}.home-sidebar .compact-table th,.home-sidebar .compact-table td{padding:4px 3px}.home-sidebar .mini-team{gap:4px}.home-sidebar .muted,.home-sidebar .empty-state{font-size:11px}.home-sidebar .compact-table td:first-child{overflow-wrap:anywhere}
.home-feed,.home-sidebar{min-width:0}.news-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.news-tile{padding:18px;background:var(--carte);border:1px solid var(--bordure);border-radius:6px;min-width:0;overflow-wrap:anywhere}
.news-feature{grid-column:1/-1;border-top:3px solid var(--bleu);background:linear-gradient(120deg,var(--carte),var(--fond2))}
.news-tile h2{font-size:clamp(23px,calc(2.3vw / var(--zf,1)),36px);letter-spacing:-.7px;line-height:1.17;max-width:850px;margin:12px 0}
.news-tile h3{font-size:19px;line-height:1.25;margin:10px 0}.news-tile p{font-size:14px;line-height:1.65;color:var(--texte-doux);margin:10px 0;max-width:95ch}
.news-meta{font-size:11px;color:var(--texte-doux);margin-top:14px}.read-more{display:inline-block;font-size:12px;font-weight:700;color:var(--bleu-clair);margin-top:14px}
.portal-panel{border:1px solid var(--bordure);padding:12px;background:var(--fond2);border-radius:6px;margin-bottom:12px}
.portal-panel h3{font-size:11px;text-transform:uppercase;letter-spacing:1px;color:var(--texte-doux);margin:16px 0 6px}
.compact-table{border-collapse:collapse;width:100%;font-size:12px;text-align:left;font-variant-numeric:tabular-nums}
.compact-table th{font-size:10px;color:var(--texte-doux);font-weight:700}.compact-table th,.compact-table td{padding:5px 6px;border-bottom:1px solid var(--bordure);text-align:left}
.compact-table td:first-child,.compact-table th:first-child{padding-left:0}.compact-table small{display:block;font-size:10px}
.mini-team{display:flex;align-items:center;gap:7px}.mini-team img{object-fit:contain}

.empty-state{font-size:13px;color:var(--texte-doux);padding:15px 0;margin:0}.empty-state a{color:var(--bleu-clair)}
.fhsw-header{position:relative}.fhsw-header-inner{padding:9px 20px;gap:10px}.fhsw-logo .saison{display:none}.fhsw-logo .titre span{display:none}.fhsw-logo img{width:44px;height:44px;object-fit:contain;border-radius:0}
.fhsw-nav>.item>a,.fhsw-nav>.item>button.lien{padding:7px 8px;font-size:12px}.fhsw-actions{flex-shrink:0}
.fhsw-teamstrip{padding:6px 0}.fhsw-teamstrip .conteneur{gap:12px;padding:0 20px}.fhsw-teamstrip img{width:28px;height:28px;object-fit:contain}.fhsw-teamstrip a{flex-shrink:0}
a:focus-visible,button:focus-visible{outline:2px solid var(--bleu-clair);outline-offset:3px}
html[data-theme="clair"] .eyebrow,html[data-theme="clair"] .section-heading a,html[data-theme="clair"] .read-more{color:#2255b4}
@media(min-width:1700px){.home-grid{grid-template-columns:230px minmax(0,1fr) 340px}.news-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.news-feature{grid-column:span 2;grid-row:span 2}.home-sidebar{display:grid;gap:0}}
@media(max-width:1000px){.home-grid{grid-template-columns:1fr 1fr;grid-template-areas:"news news" "leaders race"}.news-grid{grid-template-columns:1fr 1fr}.portal-heading{align-items:flex-start;flex-direction:column;gap:8px}}
@media(max-width:520px){.portal-home{padding:12px 10px}.fhsw-header-inner{padding:8px 10px}.fhsw-actions{margin-left:0;flex:1;justify-content:flex-end;gap:5px}.fhsw-actions a,.fhsw-theme-btn{font-size:11px;padding:7px}.fhsw-espace-dg small{display:none}.fhsw-logo .titre{display:none}.fhsw-logo img{width:34px;height:34px}.home-grid{grid-template-columns:1fr;grid-template-areas:"news" "leaders" "race"}.news-grid{grid-template-columns:1fr}.news-tile{padding:14px}.section-heading{gap:7px}.section-heading h2{font-size:14px}.fhsw-teamstrip .conteneur{padding:0 10px}}

.race-group th{padding-top:10px;padding-bottom:4px;color:var(--texte-doux);letter-spacing:.7px;font-size:9px}.race-group.wild-card th{color:var(--bleu-clair);border-top:1px solid var(--bleu)}

.home-race .mini-team img{flex:0 0 20px;width:20px;height:20px}.home-race .mini-team span{line-height:1.25}.home-race .compact-table td:not(:first-child){white-space:nowrap}

.news-editor{display:grid;gap:10px}.news-editor input,.news-editor textarea,.news-editor select,.news-editor button,.news-reactions button{font:inherit;padding:9px;background:var(--fond2);color:var(--texte);border:1px solid var(--bordure);border-radius:4px}.news-editor textarea{width:100%;resize:vertical}.news-body{white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.7}.news-reactions{display:flex;flex-wrap:wrap;gap:8px;margin-top:20px}.news-reactions button[aria-pressed=true]{border-color:var(--bleu-clair);background:var(--carte)}.news-reactions button:disabled{opacity:.7}

.news-body{white-space:normal}.news-body img{max-width:100%;height:auto}.news-body table{display:block;max-width:100%;overflow-x:auto;border-collapse:collapse}.news-body th,.news-body td{padding:6px;border:1px solid var(--bordure)}.news-body pre{white-space:pre-wrap}.news-video{display:block;width:min(100%,900px);aspect-ratio:16/9;border:0;margin:18px 0}

#home-news{display:block}.news-switcher{display:flex;overflow-x:auto;gap:7px;padding:0 0 10px;margin-bottom:8px}.news-switcher button{flex:0 0 190px;text-align:left;font:inherit;font-size:12px;line-height:1.35;padding:9px;color:var(--texte);background:var(--carte);border:1px solid var(--bordure);border-radius:4px;cursor:pointer}.news-switcher button[aria-pressed=true]{border-color:var(--bleu-clair);box-shadow:inset 0 -2px var(--bleu-clair)}.news-current{min-width:0}.news-current .news-body{margin-top:20px}.news-current .news-feature{display:block}.news-body blockquote{margin:16px 0;padding-left:16px;border-left:3px solid var(--bleu)}

.schedule-filters{display:flex;flex-wrap:wrap;gap:12px;align-items:end}.schedule-filters label{display:grid;gap:4px;font-size:12px}.schedule-filters select,.schedule-filters button{padding:7px;font:inherit;background:var(--carte);color:var(--texte);border:1px solid var(--bordure);border-radius:4px}.schedule-scroll{overflow-x:auto}.schedule-table{width:auto;min-width:850px}.schedule-table td,.schedule-table th{padding:6px 12px;white-space:nowrap}.schedule-pagination{display:flex;gap:16px;align-items:center}

.schedule-column-options{display:flex;flex-wrap:wrap;gap:9px 18px;margin:12px 0}.schedule-column-options label{font-size:12px}.schedule-table [hidden]{display:none}

.news-document{display:block;width:100%;height:calc(85vh / var(--zf,1));min-height:650px;border:0;background:white}.news-current .news-tile:has(.news-document){padding:10px}.news-current .news-body:has(.news-document){margin-top:10px}

/* Navigation du portail : familles au-dessus, sous-onglets dessous. */
.fhsw-header-inner{flex-wrap:nowrap;gap:8px;padding:7px 12px}
.fhsw-logo{flex:0 0 auto}.fhsw-logo img{width:36px;height:36px}
.fhsw-nav{flex:0 0 auto;flex-wrap:nowrap;gap:0;margin-left:4px}
.fhsw-nav>.item>a,.fhsw-nav>.item>button.lien{white-space:nowrap;font-size:11px;padding:6px}
.fhsw-header-inner>.fhsw-teamstrip{flex:1 1 auto;min-width:70px;margin-left:auto;border:0;background:transparent;padding:3px 0;overflow-x:auto}
.fhsw-teamstrip .conteneur{width:max-content;min-width:100%;justify-content:flex-end;padding:0;gap:4px}
.fhsw-teamstrip img{width:24px;height:24px}.fhsw-teamstrip a{flex:0 0 24px}
.fhsw-actions{flex:0 0 auto;margin-left:6px;gap:5px}
.fhsw-actions a,.fhsw-theme-btn{font-size:11px;padding:6px 8px}.fhsw-espace-dg small{display:none}
.fhsw-subnav{border-top:1px solid var(--bordure);background:var(--fond2);padding:4px 12px;overflow-x:auto}
.fhsw-subgroup{display:flex;align-items:center;gap:4px;width:max-content;min-width:100%}
.fhsw-subgroup[hidden]{display:none}
.fhsw-subgroup a{white-space:nowrap;font-size:11.5px;padding:4px 10px;border-radius:4px;color:var(--texte-doux);border:1px solid transparent}
.fhsw-subgroup a:hover,.fhsw-subgroup a.selected{background:var(--carte2);color:var(--texte);border-color:var(--bordure)}
.fhsw-nav>.item>button.selected{color:var(--bleu-clair);background:var(--carte2)}
@media(max-width:1200px){
  .fhsw-header-inner{flex-wrap:wrap}.fhsw-nav{flex:1 1 auto}
  .fhsw-header-inner>.fhsw-teamstrip{order:4;flex-basis:100%;width:100%;margin:0}
  .fhsw-teamstrip .conteneur{justify-content:flex-start}
}
@media(max-width:980px){
  .fhsw-header-inner .fhsw-actions{margin-left:auto;flex:0 1 auto}
  .fhsw-header-inner .fhsw-nav{order:5;flex-basis:100%;flex-direction:row;overflow-x:auto;align-items:center}
  .fhsw-nav>.item{width:auto;flex:0 0 auto}.fhsw-subnav{padding:4px 10px}
}

/* Sous-menu nettement rattaché à la rubrique active. */
.fhsw-subnav{background:var(--carte);border-top:1px solid var(--bordure);border-bottom:1px solid var(--bordure);padding:3px 12px}
.fhsw-subgroup{gap:4px;min-height:22px}
.fhsw-subgroup::before{content:attr(data-label) "  ›";font-size:10px;text-transform:uppercase;font-weight:800;letter-spacing:.6px;color:var(--bleu-clair);padding-right:6px;white-space:nowrap}
.fhsw-subgroup a{font-size:11px;line-height:1.2;padding:3px 7px;background:var(--fond2);border:1px solid var(--bordure);border-radius:5px}
.fhsw-subgroup a:hover,.fhsw-subgroup a.selected{border-color:var(--bleu-clair);color:var(--bleu-clair)}
.fhsw-nav>.item>button.selected{box-shadow:inset 0 -2px var(--bleu-clair);border-radius:4px 4px 0 0}
.home-race .mini-team,.home-race .mini-team span{white-space:nowrap;overflow-wrap:normal;word-break:normal}
.home-race .portal-panel{overflow-x:auto}

.editor-toolbar{display:flex;flex-wrap:wrap;align-items:center;gap:10px;padding:12px;margin:0 0 18px;background:var(--carte);border:1px solid var(--bordure);border-left:3px solid var(--bleu-clair);border-radius:5px}.editor-toolbar strong{font-size:13px;margin-right:8px}.editor-toolbar a,.editor-primary{display:inline-block;font-size:12px;padding:7px 11px;border:1px solid var(--bordure);border-radius:4px;background:var(--fond2)}a.editor-primary{background:var(--bleu);color:#fff;font-weight:700}.fhsw-nav>.item>a.editor-entry{color:var(--bleu-clair)}

.home-feed>.section-heading{margin-bottom:6px}.home-feed>.section-heading h2{font-size:11px;font-weight:600;color:var(--texte-doux);letter-spacing:.3px}.home-feed>.section-heading a{font-size:10px;font-weight:500}.news-reactions{margin:8px 0 14px;gap:5px;align-items:center}.news-reactions button{padding:4px 7px;font-size:12px;border-radius:15px;cursor:pointer}.news-reactions a,.reaction-status{font-size:11px;color:var(--texte-doux)}

/* Classement : contenu rapproché du sous-menu. */
.page-pleine{padding-top:12px}.clst-entete{margin-bottom:10px}.clst-entete h1{margin:0 0 8px;font-size:24px;line-height:1.2}.clst-entete .intro{margin:4px 0 10px}.clst-onglets{margin-bottom:14px}
.schedule-filters input{padding:7px;font:inherit;background:var(--carte);color:var(--texte);border:1px solid var(--bordure);border-radius:4px}.schedule-filters input[type=number]{width:85px}

.profile-grid{display:grid;grid-template-columns:300px minmax(0,1fr) 220px;gap:12px;align-items:start}.profile-grid .portal-panel{overflow-x:auto}.profile-grid h2{font-size:16px;margin:0 0 12px}@media(max-width:1000px){.profile-grid{grid-template-columns:1fr 1fr}}@media(max-width:600px){.profile-grid{grid-template-columns:1fr}}

.team-heading-logo{width:36px;height:36px;object-fit:contain;vertical-align:middle}.team-picker{margin-bottom:8px}.team-tabs{display:flex;gap:5px;overflow-x:auto;margin:8px 0 12px;padding-bottom:4px}.team-tabs a{white-space:nowrap;padding:5px 9px;border:1px solid var(--bordure);border-radius:4px;font-size:12px}.team-tabs a.selected{background:var(--fond2);border-color:var(--bleu-clair);color:var(--bleu-clair)}.team-summary-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;max-width:950px}.team-lines-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.team-page h2{font-size:15px;margin:0 0 8px}.team-line-slot{display:block;white-space:nowrap}.team-line-slot small{color:var(--texte-doux);display:inline-block;width:32px;font-size:10px}.team-lines-table th,.team-lines-table td{padding:5px 7px}.team-lines-table td:not(:nth-child(2)){width:38px}.team-lines-table th:first-child{white-space:nowrap}@media(max-width:1000px){.team-lines-grid{grid-template-columns:1fr}}@media(max-width:600px){.team-summary-grid{grid-template-columns:1fr}}

.team-stat-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(250px,1fr));gap:10px}.team-stat-grid th{font-weight:500}.team-stat-grid td{text-align:right}

/* Carte joueur commune à tous les liens du portail. */
.player-card{padding:0;border:1px solid var(--bordure);border-radius:10px;width:min(1180px,calc(96vw / var(--zf,1)));max-width:none;height:min(900px,calc(92dvh / var(--zf,1)));max-height:calc(92dvh / var(--zf,1));background:var(--fond);color:var(--texte);box-shadow:0 20px 80px #0009}.player-card::backdrop{background:#030815bb}.player-card-shell{height:100%;display:flex;flex-direction:column}.player-card-header{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:10px 14px;background:var(--carte);border-bottom:1px solid var(--bordure)}.player-card-header h2{font-size:18px;margin:0}.player-card-header>div{display:flex;align-items:center;gap:12px}.player-card-header a{font-size:11px;white-space:nowrap}.player-card-header button{font:inherit;background:var(--fond2);color:var(--texte);border:1px solid var(--bordure);border-radius:5px;padding:5px 10px;cursor:pointer}.player-card-body{overflow:auto;overscroll-behavior:contain;flex:1;padding:0}.player-card-body>.player-profile{padding:12px}.player-card-body .portal-heading h1{display:none}.player-card-body .portal-heading{margin-bottom:10px}.player-card-open{overflow:hidden}.player-contract-type{display:inline-block;padding:5px 10px;border:1px solid var(--bordure);border-radius:5px;font-size:14px;white-space:nowrap}.player-contract-type.one-way{color:var(--texte);background:var(--fond2)}.player-contract-type.two-way{color:var(--bleu-clair);border-color:var(--bleu-clair)}.player-profile .portal-heading{flex-wrap:wrap}.player-profile .profile-grid{grid-template-columns:260px minmax(0,1fr) 260px}.profile-trade-assets{white-space:normal!important;min-width:220px}.player-profile .portal-panel{margin-bottom:10px}.player-profile .profile-ratings{padding:12px}.player-profile .profile-ratings .compact-table{min-width:100%}@media(max-width:1050px){.player-profile .profile-grid{grid-template-columns:1fr 1fr}.player-profile .profile-ratings{grid-column:1/-1;grid-row:1}}@media(max-width:600px){.player-card{width:calc(100vw / var(--zf,1));max-height:calc(100dvh / var(--zf,1));height:calc(100dvh / var(--zf,1));border-radius:0;border:0}.player-profile .profile-grid{grid-template-columns:1fr}.player-profile .profile-ratings{grid-column:auto}.player-card-header{padding:8px}.player-card-header h2{font-size:15px}.player-card-body>.player-profile{padding:8px}.player-card-header a{font-size:10px}}

.player-rating-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(46px,1fr));gap:6px}.player-rating{display:flex;flex-direction:column;align-items:center;gap:3px;background:var(--fond2);border:1px solid var(--bordure);border-radius:5px;padding:6px 4px}.player-rating>span{font-size:10px;color:var(--texte-doux)}.player-rating>strong{font-size:18px}.player-rating .high{color:#38a86c}.player-rating .medium{color:var(--bleu-clair)}.player-rating .low{color:#bc8627}.player-profile-photo{width:52px;height:52px;object-fit:cover;border-radius:50%;background:var(--fond2)}.player-profile-identity{font-size:12px;color:var(--texte-doux)}

.waivers-grid{display:grid;grid-template-columns:minmax(0,1fr) 280px;gap:12px}.waivers-grid h2{font-size:15px;margin:0 0 8px}@media(max-width:1000px){.waivers-grid{grid-template-columns:1fr}}

.finance-negative{color:#e66969;font-weight:700}

.transaction-text{white-space:normal!important;min-width:280px}

.coach-club{display:block}

.clst-circuits{display:flex;gap:4px;margin:4px 0 8px}.clst-circuits a{padding:3px 10px;border:1px solid var(--bordure);border-radius:4px;font-size:12px}.clst-circuits a[aria-current]{color:var(--bleu-clair);font-weight:700}

.playoff-rounds{display:flex;gap:12px;overflow-x:auto;align-items:flex-start;margin:12px 0}.playoff-round{flex:1 0 240px;min-width:240px;max-width:360px}.playoff-round>h2{font-size:14px}.playoff-pair{margin-bottom:10px;padding:10px}.playoff-pair h3{margin:0 0 6px;font-size:10px;color:var(--texte-doux)}.playoff-team{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:5px 0}.playoff-team a{display:flex;align-items:center;gap:7px;font-size:12px}.playoff-team img{width:24px;height:24px;object-fit:contain}.playoff-winner{color:var(--bleu-clair);font-weight:800}.playoff-pair details{font-size:11px;margin-top:6px}.playoff-champion{font-weight:800;font-size:20px}.game-scoreboard{display:flex;gap:20px;padding:12px 0}.game-scoreboard>div{display:flex;align-items:center;gap:15px}.game-scoreboard strong{font-size:28px}.game-scoreboard a{display:flex;align-items:center;gap:7px;font-weight:700}.game-scoreboard img{width:32px;height:32px;object-fit:contain}.game-section{margin:10px 0;padding:12px;scroll-margin-top:110px}.game-section h1,.game-section h2{font-size:18px}.game-section h3{font-size:15px}.game-section h4{font-size:11px;color:var(--texte-doux)}.game-section table{border-collapse:collapse;max-width:100%;font-size:12px;margin:6px 0}.game-section td,.game-section th{padding:4px 7px;border-bottom:1px solid var(--bordure);vertical-align:top;text-align:left}.game-section th{background:var(--fond2)}.game-section{line-height:1.6;font-size:12px}.game-section a{color:var(--bleu-clair)}
@media(max-width:650px){.game-scoreboard{gap:10px}.game-scoreboard>div{flex:1;align-items:flex-start;flex-direction:column;gap:4px}.playoff-round{min-width:220px}}

.draft-candidates{display:grid;grid-template-columns:repeat(auto-fill,minmax(180px,1fr));gap:3px 12px;font-size:12px;padding:6px 0}.draft-candidates span{padding:4px 0;border-bottom:1px solid var(--bordure)}

.salary-summary{display:flex;gap:12px 24px;flex-wrap:wrap;font-size:12px;padding:8px 0 12px}.salary-summary b{display:block;margin-top:3px}.salary-over{color:#ff7272;font-weight:700}

.compare-table{width:auto;min-width:520px}.compare-table th,.compare-table td{min-width:130px;padding:5px 10px;text-align:left}.compare-table th:first-child{min-width:150px}.compare-table small{display:block;font-size:10px;color:var(--texte-doux)}.compare-photo{display:block;width:54px;height:54px;object-fit:contain;margin-bottom:4px}

.roster-rating-search{flex-basis:100%;font-size:12px}.roster-rating-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(120px,1fr));gap:6px;padding:8px 0}.roster-rating-grid span{display:flex;gap:3px}.roster-rating-grid input{width:55px;min-width:0}

.schedule-table tfoot th,.schedule-table tfoot td{border-top:1px solid var(--bordure);font-weight:700}.schedule-table th a{white-space:nowrap}

.line-editor-toolbar{display:flex;align-items:center;gap:12px;position:static;background:var(--fond);padding:6px 0;z-index:auto}.line-unit-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(290px,1fr));gap:8px}.line-unit-grid fieldset{border:1px solid var(--bordure);border-radius:6px;padding:8px}.line-unit-grid label{display:flex;align-items:center;gap:6px;margin:6px 0}.line-unit-grid select{min-width:0;flex:1}.line-editor .team-tabs button{font:inherit;font-size:12px;cursor:pointer;background:transparent;color:var(--texte);border:0;padding:8px}.line-editor .team-tabs button.selected{color:var(--bleu);border-bottom:2px solid currentColor}.line-editor [hidden]{display:none!important}

.line-strategies{display:flex;flex-wrap:wrap;gap:8px}.line-strategies label{font-size:11px;flex-direction:column;align-items:flex-start}.line-strategies input{width:56px}

.line-editor select,.line-editor input[type=number]{font:inherit;font-size:12px;padding:5px;border:1px solid var(--bordure);border-radius:4px;background:var(--fond2);color:var(--texte)}.line-unit-grid{grid-template-columns:repeat(auto-fit,minmax(min(100%,290px),1fr))}

main[aria-busy=true]{opacity:.6;cursor:progress;transition:opacity .12s}main h1:focus{outline:none}

.portal-search-dialog{background:var(--fond2);color:var(--texte);border:1px solid var(--bordure);border-radius:8px;width:min(800px,calc(95vw / var(--zf,1)));max-height:calc(85vh / var(--zf,1));padding:12px}.portal-search-dialog::backdrop{background:#000a}.portal-search-dialog form{display:flex;gap:6px}.portal-search-dialog input{min-width:0;flex:1;background:var(--carte);color:var(--texte);border:1px solid var(--bordure);padding:8px}.portal-search-results{display:grid;grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:12px}.portal-search-results h2{font-size:12px}.portal-search-results a{display:block;padding:5px;border-bottom:1px solid var(--bordure);font-size:12px}.portal-search-results small{display:block;color:var(--texte-doux);font-size:10px}

.line-live-check{font-size:11px;margin:4px 0 8px;color:var(--texte-doux)}.line-live-check p{margin:4px 0}.line-live-check ul{max-height:180px;overflow:auto}.line-editor-toolbar{flex-wrap:wrap}.line-live-check[aria-busy=true]{opacity:.65}

.line-roster-filters{display:flex;flex-wrap:wrap;align-items:center;gap:6px 12px;margin-bottom:6px;font-size:11px}.line-roster-filters label{display:flex;align-items:center;gap:6px}.line-roster-filters input{background:var(--fond2);color:var(--texte);border:1px solid var(--bordure);border-radius:4px;padding:5px;width:180px}.line-editor .team-tabs{overflow-x:auto;flex-wrap:nowrap}.line-editor .team-tabs button{white-space:nowrap}

.compare-picker{display:flex;gap:5px;flex-wrap:wrap;border:1px solid var(--bordure);border-radius:4px;padding:6px;min-width:0;max-width:100%}.compare-picker legend{font-size:11px;color:var(--texte-doux)}.compare-picker label{min-width:0}.compare-picker select{max-width:240px}.compare-picker input{width:120px}@media(max-width:650px){.compare-picker{width:100%}.compare-picker select{max-width:100%}}

.team-identity{display:inline-flex;align-items:center;gap:5px;white-space:nowrap;vertical-align:middle}.team-identity>img,.inline-team-logo{width:20px;height:20px;object-fit:contain;flex:0 0 20px}.team-identity img{margin:0!important}

/* Matchs : tableaux compacts à gauche, détails accessibles sans alourdir la page. */
.today-page .portal-heading{margin-bottom:8px}.today-page .team-tabs{margin-bottom:8px}
.today-tools{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin:8px 0 12px;font-size:12px}
.today-tools label{display:flex;align-items:center;gap:6px}.today-tools input,.today-tools button{font:inherit;padding:5px 7px;background:var(--carte);color:var(--texte);border:1px solid var(--bordure);border-radius:4px}
.today-page>.portal-panel{width:fit-content;max-width:100%;padding:9px}
.today-page .schedule-table{min-width:0;width:auto}.today-page .schedule-table td,.today-page .schedule-table th{padding:5px 9px}
.today-page h2{font-size:15px;margin:0 0 8px}.today-page .compact-table{font-size:12px}
.today-game-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(min(100%,370px),440px));gap:10px;align-items:start}
.today-game{min-width:0;padding:9px}.today-game-grid .today-game[hidden]{display:none}.today-report{font-size:12px;margin:8px 0}.today-report summary{cursor:pointer;color:var(--bleu-clair);padding:5px 0}.today-report p{margin:6px 0}.today-game>.compact-table{display:table;width:100%}
.today-page [data-match-item][hidden]{display:none}
@media(max-width:520px){.today-tools input{width:180px}.today-page .schedule-table td,.today-page .schedule-table th{padding:5px 6px}.today-game-grid{grid-template-columns:minmax(0,1fr)}}

/* Dossiers de clubs : identité, rendez-vous et forme en premier. */
.team-page .team-hero{padding:15px 18px;border:1px solid var(--bordure);border-left:4px solid var(--bleu-clair);border-radius:6px;background:linear-gradient(110deg,var(--carte),var(--fond2));align-items:center;margin-bottom:10px}
.team-page .team-hero h1{display:flex;align-items:center;gap:15px;margin:0;font-size:clamp(21px,calc(2vw / var(--zf,1)),30px)}.team-page .team-hero .team-heading-logo{width:70px;height:70px;object-fit:contain;filter:drop-shadow(0 3px 8px #0003)}
.club-pulse{display:flex;flex-wrap:wrap;gap:1px;border:1px solid var(--bordure);border-radius:6px;overflow:hidden;margin-bottom:12px;background:var(--bordure)}.club-pulse a{display:flex;align-items:center;justify-content:space-between;gap:20px;flex:1;min-width:150px;padding:10px 14px;background:var(--fond2);color:var(--texte)}.club-pulse span{font-size:11px;color:var(--texte-doux)}.club-pulse strong{font-size:25px;line-height:1}.club-pulse a:hover{background:var(--carte)}
.club-dashboard{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;align-items:start}.club-dashboard .portal-panel{min-width:0}.club-dashboard h2{font-size:15px}.club-opponent{display:block;font-weight:800;font-size:17px;margin:16px 0}.club-opponent .team-identity{white-space:normal}.club-opponent .team-identity img{width:42px;height:42px;flex-basis:42px}
.club-shortcuts{display:flex;gap:15px;flex-wrap:wrap;border-top:1px solid var(--bordure);padding-top:10px;font-size:12px}.club-form{display:flex;gap:6px;margin-bottom:10px}.form-dot{display:grid;place-items:center;width:28px;height:28px;border-radius:50%;font-size:12px;font-weight:800;border:1px solid var(--bordure)}.form-V{background:#237d4830;color:#48be80}.form-D{background:#a4344430;color:#e9808c}.form-N{background:var(--carte);color:var(--texte)}
.club-game-row{display:flex;align-items:center;gap:8px;border-top:1px solid var(--bordure);padding:6px 0;font-size:11px}.club-game-row>span{color:var(--texte-doux);width:27px}.club-game-row .team-identity{white-space:normal}.club-score{margin-left:auto;white-space:nowrap;font-weight:700}.team-page[aria-busy=true]{opacity:.65;transition:opacity .15s}.team-tabs a{transition:background .15s,color .15s}.team-tabs a:hover{background:var(--carte)}
@media(max-width:1100px){.club-dashboard{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:650px){.club-dashboard{grid-template-columns:minmax(0,1fr)}.team-page .team-hero{padding:10px}.team-page .team-hero .team-heading-logo{width:50px;height:50px}.club-pulse a{min-width:40%;padding:9px}.club-pulse strong{font-size:22px}}

/* Éditeur : choix directs, cartes joueurs et réglages tactiles. */
.roster-status-buttons{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:3px;max-width:235px}.line-editor .roster-status-buttons button{font-size:10px;padding:5px 7px;white-space:nowrap}.roster-status-buttons button.selected{border-color:var(--bleu-clair);background:var(--carte);color:var(--bleu-clair)}
.line-editor .line-slot-card{display:block;width:100%;padding:10px;text-align:left;white-space:normal;font-size:12px;border:1px solid var(--bordure);border-left:3px solid var(--bleu-clair);background:var(--fond2);color:var(--texte);border-radius:5px;cursor:pointer}.line-slot-card:hover{filter:brightness(1.15)}
.line-player-dialog{width:min(780px,calc(calc(100vw / var(--zf,1)) - 24px));max-height:calc(85vh / var(--zf,1));padding:16px;background:var(--fond2);color:var(--texte);border:1px solid var(--bordure);border-radius:8px}.line-player-dialog::backdrop{background:#000a}.line-player-dialog h2{font-size:18px;margin:0}.line-player-dialog input[type=search]{width:100%;padding:9px;margin:8px 0;background:var(--carte);color:var(--texte);border:1px solid var(--bordure);border-radius:4px}.line-player-choices{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px}.line-player-dialog button{background:var(--carte);color:var(--texte);border:1px solid var(--bordure);border-radius:4px;padding:8px;cursor:pointer}.line-player-choice{text-align:left;font-size:12px;line-height:1.6}.line-player-choice[aria-pressed=true]{border-color:var(--bleu-clair);box-shadow:inset 3px 0 var(--bleu-clair)}
.line-stepper{display:flex;align-items:stretch;gap:3px}.line-editor .line-stepper button{width:30px;padding:4px;font-size:18px}.line-editor .line-stepper input{width:50px;text-align:center;appearance:textfield}.line-stepper input::-webkit-inner-spin-button{appearance:none}.line-editor .line-strategy-range{width:100%;padding:0;accent-color:var(--bleu-clair);margin:6px 0;cursor:pointer}.line-editor select[hidden]{display:none}
@media(max-width:600px){.line-player-choices{grid-template-columns:1fr}.line-player-dialog{padding:10px}.line-player-choice{min-height:44px}}

.club-roster-size{font-size:12px;margin-bottom:12px}.club-roster-size strong{font-size:24px;margin-right:7px}.club-rating-strip{display:flex;gap:6px}.club-rating-strip>span{flex:1;display:grid;gap:5px;padding:7px;background:var(--carte);border-radius:4px}.club-rating-strip small{font-size:10px;color:var(--texte-doux)}.club-rating-strip b{font-size:18px}.club-special-teams{display:flex;gap:12px}.club-special-teams>div{flex:1;display:grid;gap:8px}.club-special-teams span,.club-special-teams small{font-size:11px;color:var(--texte-doux)}.club-special-teams strong{font-size:25px}.club-movement{display:flex;align-items:baseline;gap:15px;border-top:1px solid var(--bordure);padding:8px 0;font-size:12px}.club-movement time{font-size:10px;color:var(--texte-doux);flex:0 0 115px}.club-movement div{min-width:0}.club-dashboard-secondary .compact-table td{white-space:nowrap}
@media(max-width:650px){.club-movement{flex-direction:column;gap:4px}.club-movement time{flex-basis:auto}}

/* Compact horizontal player dossier; all source information stays accessible. */
.player-card{width:min(1260px,calc(96vw / var(--zf,1)));height:auto;max-height:calc(86dvh / var(--zf,1))}
.player-card-shell{height:auto;max-height:calc(86dvh / var(--zf,1))}
.player-card-header{padding:6px 10px;flex-shrink:0}.player-card-header h2{font-size:14px}
.player-card-body{min-height:0}.player-card-body>.player-profile{padding:10px}
.player-profile .profile-heading{display:grid;grid-template-columns:68px minmax(0,1fr) auto auto auto;column-gap:10px;row-gap:3px;margin:0 0 8px;align-items:center}
.player-profile .profile-heading h1{grid-column:2;grid-row:1;font-size:23px;margin:0;display:block}
.player-profile .player-profile-photo{grid-column:1;grid-row:1/3;width:64px;height:64px;border-radius:8px}
.player-profile .player-profile-identity{grid-column:2;grid-row:2;font-size:12px}
.player-profile .player-contract-type{grid-column:3;grid-row:1/3;padding:4px 7px;font-size:12px}
.player-profile .profile-heading>a{font-size:11px;grid-row:1/3;white-space:nowrap}
.player-profile .profile-grid{grid-template-columns:minmax(0,1fr) minmax(250px,.65fr);gap:8px;align-items:start}
.player-profile .profile-information{grid-column:1/-1}
.player-profile .portal-panel{padding:9px;margin:0 0 8px}
.player-profile .portal-panel h2{font-size:13px;margin:0 0 6px}
.player-profile .compact-table th,.player-profile .compact-table td{padding:4px 7px;font-size:11px}
.player-profile .profile-details{width:100%;min-width:0}
.player-profile .profile-details tbody{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:0 16px}
.player-profile .profile-details tr{display:flex;align-items:baseline;justify-content:space-between;gap:8px;border-bottom:1px solid var(--bordure);min-width:0}
.player-profile .profile-details th,.player-profile .profile-details td{border:0;padding:5px 0;white-space:normal;overflow-wrap:anywhere}
.player-profile .profile-details th{color:var(--texte-doux);font-weight:500;text-align:left}
.player-profile .profile-details td{text-align:right;font-weight:600}
.player-profile .player-rating-grid{grid-template-columns:repeat(8,minmax(0,1fr));gap:4px}
.player-profile .player-rating{flex-direction:row;justify-content:space-between;padding:5px 7px;gap:3px}
.player-profile .player-rating>strong{font-size:15px}.player-profile .profile-ratings p{margin:5px 0 0;font-size:11px}
.profile-navigation{display:flex;gap:4px;margin:0 0 8px;overflow-x:auto}
.profile-navigation button{font:inherit;font-size:11px;padding:5px 9px;background:var(--fond2);color:var(--texte-doux);border:1px solid var(--bordure);border-radius:5px;white-space:nowrap;cursor:pointer}
.profile-navigation button.selected{color:var(--bleu-clair);border-color:var(--bleu-clair);background:var(--carte)}
.player-profile [hidden]{display:none!important}
@media(max-width:800px){.player-profile .profile-grid{grid-template-columns:1fr}.player-profile .profile-ratings{grid-row:auto;grid-column:auto}.player-profile .profile-details tbody{grid-template-columns:repeat(2,minmax(0,1fr))}.player-profile .profile-heading{grid-template-columns:54px minmax(0,1fr) auto}.player-profile .player-profile-photo{width:50px;height:50px}.player-profile .profile-heading h1{font-size:19px}.player-profile .profile-heading>a{grid-row:3}.player-profile .profile-heading>a:first-of-type{grid-column:2}.player-profile .profile-heading>a:last-of-type{grid-column:3}.player-profile .player-contract-type{grid-column:3}}
@media(max-width:480px){.player-card{width:calc(100vw / var(--zf,1));max-height:calc(96dvh / var(--zf,1));border-radius:8px}.player-card-shell{max-height:calc(96dvh / var(--zf,1))}.player-profile .player-rating-grid{grid-template-columns:repeat(4,minmax(0,1fr))}.player-profile .profile-details tbody{grid-template-columns:1fr}.player-card-header>div{gap:6px}.player-card-header a{font-size:10px}}

.roster-view-controls .club-circuit-switch{display:inline-flex;gap:4px;padding:3px;border:1px solid var(--bordure);border-radius:6px;background:var(--fond2)}
.roster-view-controls .club-circuit-switch a{display:block;padding:5px 14px;border-radius:4px;font-size:12px;font-weight:700}
.roster-view-controls .club-circuit-switch a.selected{background:var(--bleu);color:#fff}
.roster-group-title{font-size:14px;margin:12px 0 6px;padding-left:8px;border-left:3px solid var(--bleu)}
[data-team-roster-section] th button{font:inherit;color:inherit;background:none;border:0;padding:0;cursor:pointer;white-space:nowrap}
[data-team-roster-section] th button:hover{color:var(--bleu-clair)}
[data-team-roster-section] th[aria-sort="ascending"] button::after{content:' ↑'}
[data-team-roster-section] th[aria-sort="descending"] button::after{content:' ↓'}
.roster-status-group[hidden]{display:none}

/* One vertical scroll owner in the dialog, full-width single-row ratings. */
.player-card{overflow:hidden;height:auto;max-height:calc(86dvh / var(--zf,1))}
.player-card-shell{height:calc(86dvh / var(--zf,1));max-height:720px;overflow:hidden;min-height:0}
.player-card-body{flex:1 1 0;min-height:0;overflow-y:auto;overflow-x:hidden}
.player-card-body .player-profile{overflow:visible;min-width:0}
.player-profile .profile-grid{grid-template-columns:minmax(0,1fr)}
.player-profile .profile-grid .portal-panel{min-width:0;overflow-y:hidden}
.player-profile .profile-ratings{grid-column:1/-1;grid-row:auto}
.player-profile .player-rating-grid{display:flex;flex-wrap:nowrap;gap:4px;overflow-x:auto;padding-bottom:2px}
.player-profile .player-rating{flex:1 0 46px;display:flex;flex-direction:column;gap:2px;padding:4px 3px}
.player-profile .player-rating>strong{font-size:15px}
.player-profile .profile-heading{grid-template-columns:68px minmax(150px,1fr) auto auto auto;align-items:center}
.profile-money-summary{grid-column:3;grid-row:1/3;display:flex;gap:12px;align-items:center;font-size:11px}
.profile-money-summary>span{display:flex;flex-direction:column;gap:3px;white-space:nowrap}
.profile-money-summary small{font-size:10px;color:var(--texte-doux)}
.player-profile .profile-money-summary .player-contract-type{padding:4px 6px}
@media(max-width:900px){.player-profile .profile-heading{grid-template-columns:54px minmax(0,1fr) auto}.profile-money-summary{grid-column:2/-1;grid-row:3;flex-wrap:wrap;gap:10px}.player-profile .profile-heading>a{grid-row:4}.player-profile .player-profile-photo{width:50px;height:50px}}
@media(max-width:480px){.player-card-shell{height:calc(94dvh / var(--zf,1));max-height:calc(94dvh / var(--zf,1))}.player-card{max-height:calc(94dvh / var(--zf,1))}.profile-money-summary{gap:7px}.player-profile .player-rating{flex-basis:42px}}

/* Essential line board. Scoped selectors supersede optional cosmetic styles. */
.line-editor-board{--line-tile:#172a48;--line-tile-border:#395b83}
html[data-theme=clair] .line-editor-board{--line-tile:#e7effa;--line-tile-border:#a9bfda}
.line-editor-board .line-unit-grid{display:grid;grid-template-columns:1fr;gap:5px;max-width:1160px;margin-right:auto}
.line-editor-board .line-board-heading{font-size:12px;font-weight:800;letter-spacing:.04em;color:var(--texte-doux);margin:12px 0 3px}
.line-editor-board fieldset:has(.line-position){display:grid;grid-template-columns:repeat(3,minmax(0,1fr)) 205px;gap:5px;align-items:start;background:transparent;border:0;padding:0;min-width:0}
.line-editor-board fieldset:has(.line-position)>legend{font-size:10px;color:var(--texte-doux);padding:0;margin-bottom:3px}
.line-editor-board .line-position{display:flex;flex-direction:column;gap:3px;min-width:0;margin:0;color:var(--texte-doux);font-size:10px}
.line-editor-board .line-position[data-position=AG]{grid-column:1;grid-row:1}
.line-editor-board .line-position[data-position=Centre]{grid-column:2;grid-row:1}
.line-editor-board .line-position[data-position=AD]{grid-column:3;grid-row:1}
.line-editor-board .line-position[data-position=D1]{grid-column:1;grid-row:1}
.line-editor-board .line-position[data-position=D2]{grid-column:2;grid-row:1}
.line-editor-board .line-slot-card{height:auto;min-height:72px;width:100%;display:flex;flex-direction:row;gap:7px;align-items:center;text-align:left;padding:7px;border:1px solid var(--line-tile-border);border-left:3px solid var(--bleu-clair);border-radius:7px;background:linear-gradient(110deg,var(--line-tile),var(--carte));color:var(--texte);cursor:grab}
.line-editor-board .line-slot-card:active{cursor:grabbing}
.line-editor-board .line-player-face,.line-player-dialog .line-player-face{width:38px;height:44px;max-width:38px;max-height:44px;object-fit:cover;border-radius:6px;flex-shrink:0}
.line-card-content{display:flex;flex-direction:column;gap:3px;min-width:0;flex:1}
.line-card-name{font-size:12px;line-height:1.2;color:var(--texte);overflow-wrap:anywhere}
.line-card-meta,.line-card-salary{font-size:10px;line-height:1.25;color:var(--texte-doux)}
.line-card-ratings{display:flex;flex-wrap:wrap;gap:4px}
.line-card-ratings>span{display:inline-block;background:var(--fond2);border-radius:3px;padding:2px 4px;font-size:9px;color:var(--texte)}
.line-editor-board .line-move-button{font:inherit;font-size:9px;line-height:1;padding:3px 5px;margin:0;color:var(--bleu-clair);border:0;background:transparent;cursor:pointer;align-self:flex-start}
.line-editor-board .line-unit-stats{grid-column:4;grid-row:1;min-width:0;border-left:1px solid var(--bordure);padding:5px 0 0 7px}
.line-editor-board .line-unit-stats>strong{display:block;font-size:9px;color:var(--texte-doux);margin-bottom:4px}
.line-editor-board .line-unit-stats table{width:100%;font-size:9px;border-collapse:collapse}
.line-editor-board .line-unit-stats th,.line-editor-board .line-unit-stats td{padding:3px 2px;text-align:right;border-bottom:1px solid var(--bordure)}
.line-editor-board .line-unit-stats th:first-child{text-align:left;font-weight:500;white-space:normal;max-width:110px}
.line-editor-board .line-settings{grid-column:1/-1;margin:0 0 4px;border:0;padding:0}
.line-editor-board .line-settings>summary{font-size:10px;color:var(--texte-doux);cursor:pointer;padding:3px 0}
.line-editor-board .line-strategies{display:flex;flex-wrap:wrap;gap:8px;border:0;padding:3px 0}
.line-editor-board .line-strategies>label{display:flex;flex-direction:column;gap:3px;font-size:10px;width:150px;margin:0}
.line-editor-board .line-stepper{display:flex;gap:3px}.line-editor-board .line-stepper button{background:var(--fond2);color:var(--texte);border:1px solid var(--bordure);border-radius:4px;padding:3px 9px;cursor:pointer}
.line-editor-board .line-stepper input{width:58px}.line-editor-board .line-strategy-range{width:100%;accent-color:var(--bleu)}
.line-player-dialog .line-player-choice{display:flex;gap:8px;align-items:center;text-align:left;font:inherit;font-size:12px;padding:7px;border:1px solid var(--bordure);background:var(--fond2);color:var(--texte);border-radius:6px}
.line-editor-board .roster-card-board{max-width:1160px;margin-right:auto}
.line-editor-board .roster-board-group>h3{font-size:13px;color:var(--texte-doux);margin:12px 0 6px;padding-left:7px;border-left:3px solid var(--bleu-clair)}
.line-editor-board .roster-board-category>h4{font-size:11px;margin:6px 0 4px;color:var(--texte-doux)}
.line-editor-board .roster-board-cards{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:5px}
.line-editor-board .roster-player-card{display:grid;gap:4px;min-width:0;padding:7px;border:1px solid var(--line-tile-border);border-radius:7px;background:linear-gradient(110deg,var(--line-tile),var(--carte));cursor:grab}
.line-editor-board .roster-card-name{display:flex;align-items:center;gap:5px;font-size:12px;font-weight:700;min-width:0}
.line-editor-board .roster-card-name a{overflow-wrap:anywhere}.line-editor-board .roster-card-name .line-move-button{margin-left:auto}
.line-editor-board .roster-face{width:32px;height:32px;max-width:32px;max-height:32px;border-radius:6px;object-fit:cover;flex-shrink:0}
.line-editor-board .roster-player-card small{font-size:9px;color:var(--rouge)}.line-editor-board .roster-player-card small:empty{display:none}
.line-editor-board .roster-status-buttons{display:flex;gap:3px;flex-wrap:wrap}
.line-editor-board .roster-status-buttons button{font:inherit;font-size:9px;line-height:1.2;padding:3px 5px;border:1px solid var(--bordure);border-radius:4px;color:var(--texte-doux);background:var(--fond2);cursor:pointer}
.line-editor-board .roster-status-buttons button.selected{color:var(--bleu-clair);border-color:var(--bleu-clair)}
.line-editor-board .roster-drop-zones{display:flex;gap:5px;flex-wrap:wrap;margin:6px 0}
.line-editor-board .roster-drop-zones button{font:inherit;font-size:10px;color:var(--texte);background:var(--fond2);border:1px dashed var(--bordure);border-radius:5px;padding:5px 10px;cursor:pointer}
.line-editor-board .move-source{outline:2px dashed var(--bleu-clair);outline-offset:2px}.line-editor-board .drop-ready{outline:2px solid var(--vert);background:var(--carte2)!important}
.line-editor-board .line-move-status{font-size:11px;color:var(--bleu-clair);margin:4px 0}.line-editor-board .line-move-status:empty{display:none}
.line-editor-board .line-editor-toolbar button{font:inherit;font-size:11px;padding:5px 10px;background:var(--bleu);color:#fff;border:0;border-radius:5px;cursor:pointer}
@media(max-width:900px){.line-editor-board fieldset:has(.line-position){grid-template-columns:repeat(3,minmax(0,1fr))}.line-editor-board .line-unit-stats{grid-column:1/-1;grid-row:auto;border-left:0;padding:3px 0}.line-editor-board .line-unit-stats table{max-width:400px}}
@media(max-width:600px){.line-editor-board .roster-board-cards{grid-template-columns:repeat(2,minmax(0,1fr))}.line-editor-board .line-slot-card{flex-direction:column;align-items:flex-start;padding:5px;gap:4px;min-height:110px}.line-editor-board .line-card-name{font-size:11px}.line-editor-board .line-player-face{width:30px;height:30px}.line-editor-board .line-editor-toolbar{flex-wrap:wrap;position:static}.line-editor-board .team-tabs{position:static}.line-editor-board .line-move-button{min-height:24px}}
@media(max-width:400px){.line-editor-board .roster-board-cards{grid-template-columns:1fr}}

.line-editor-board .line-column-title{font-size:10px;color:var(--texte-doux)}
.line-editor-board fieldset:has(.line-position){margin:0}
.line-editor-board .line-position{gap:2px}
.line-editor-board .line-settings>summary{padding:1px 0;font-size:9px}
.line-editor-board .line-slot-card{min-height:70px}
.line-editor-board .line-unit-stats{padding-top:3px}

/* Effectif: Pro on the left, Farm on the right; each column keeps its scratchs. */
.line-editor-board .roster-card-board{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;max-width:1440px;align-items:start}
.line-editor-board .roster-circuit-column{min-width:0}
.line-editor-board .roster-circuit-column>h2{font-size:14px;margin:8px 0 5px;color:var(--bleu-clair);padding-bottom:4px;border-bottom:1px solid var(--bordure)}
.line-editor-board .roster-board-group>h3{font-size:11px;margin:8px 0 4px}
.line-editor-board .roster-board-cards{grid-template-columns:repeat(2,minmax(0,1fr));gap:4px}
.line-editor-board .roster-player-card{padding:6px;gap:3px}
.line-editor-board .roster-card-name{font-size:11px}
.line-editor-board .roster-face{width:28px;height:28px;max-width:28px;max-height:28px}
.line-editor-board .roster-player-card .line-card-ratings>span{padding:1px 3px}
.line-editor-board .roster-status-buttons button{font-size:9px;padding:2px 4px}
.line-editor-board .roster-circuit-column[hidden]{display:none}
@media(min-width:1650px){.line-editor-board .roster-board-cards{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:800px){.line-editor-board .roster-card-board{grid-template-columns:1fr;gap:8px}}
@media(max-width:440px){.line-editor-board .roster-board-cards{grid-template-columns:1fr}}

/* Clickable choices throughout the portal; no visible native dropdowns. */
select[data-choice-native]{display:none!important}
.choice-control{display:flex;flex-wrap:wrap;gap:4px;align-items:center;max-width:100%;font-size:11px}
.choice-control .choice-option,.choice-control .choice-open{font:inherit;font-size:11px;padding:5px 9px;line-height:1.2;border:1px solid var(--bordure);background:var(--fond2);color:var(--texte-doux);border-radius:5px;cursor:pointer}
.choice-control .choice-option.selected{border-color:var(--bleu-clair);color:var(--bleu-clair);background:var(--carte)}
.choice-control .choice-open{color:var(--texte);white-space:normal;text-align:left;max-width:300px}
.choice-control .choice-open::after{content:' · Choisir';font-size:9px;color:var(--texte-doux)}
.choice-control button:disabled{opacity:.5;cursor:default}.choice-control.choice-invalid{outline:1px solid var(--rouge);border-radius:5px}
.choice-dialog{width:min(620px,calc(94vw / var(--zf,1)));max-height:calc(85dvh / var(--zf,1));padding:12px;border:1px solid var(--bordure);border-radius:8px;background:var(--fond);color:var(--texte);overflow:auto}
.choice-dialog::backdrop{background:#030815b8}
.choice-dialog-heading{display:flex;justify-content:space-between;align-items:center;gap:10px;margin-bottom:8px;font-size:13px}
.choice-dialog button{font:inherit;font-size:11px;padding:7px;border:1px solid var(--bordure);border-radius:5px;background:var(--fond2);color:var(--texte);cursor:pointer}
.choice-dialog input{width:100%;margin-bottom:8px;padding:7px;font:inherit;font-size:12px;border:1px solid var(--bordure);border-radius:5px;background:var(--fond2);color:var(--texte)}
.choice-options{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:5px}.choice-options button{text-align:left;white-space:normal;overflow-wrap:anywhere}
.choice-options button.selected{border-color:var(--bleu-clair);color:var(--bleu-clair)}
@media(max-width:600px){.choice-options{grid-template-columns:repeat(2,minmax(0,1fr))}.choice-control button{min-height:32px}}

/* Strategies stay visible beside each unit, not behind a disclosure. */
.line-editor-board fieldset:has(.line-unit-side){grid-template-columns:repeat(3,minmax(0,1fr)) 285px}
.line-editor-board .line-unit-side{grid-column:4;grid-row:1;display:flex;flex-direction:column;gap:6px;min-width:0;padding-left:7px;border-left:1px solid var(--bordure)}
.line-editor-board .line-unit-side .line-unit-stats{border:0;padding:0;margin:0;grid-column:auto;grid-row:auto}
.line-editor-board .line-settings{margin:0;padding:0}
.line-editor-board .line-settings>strong{display:block;font-size:10px;color:var(--texte-doux);margin-bottom:4px}
.line-editor-board .line-unit-side .line-strategies{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:5px;padding:0}
.line-editor-board .line-unit-side .line-strategies>label{width:auto;font-size:9px;gap:2px;margin:0}
.line-editor-board .line-unit-side .line-stepper{gap:2px}
.line-editor-board .line-unit-side .line-stepper button{padding:2px 7px;font-size:11px}
.line-editor-board .line-unit-side .line-stepper input{width:42px;padding:2px 4px;font-size:10px;text-align:center}
.line-editor-board .line-unit-side .line-strategy-range{height:10px;margin:0}
.line-editor-board .line-draggable-card{position:relative;padding-right:15px}
.line-editor-board .line-draggable-card::after{content:'⋮⋮';position:absolute;right:4px;top:5px;font-size:11px;color:var(--texte-doux)}
@media(max-width:900px){.line-editor-board fieldset:has(.line-unit-side){grid-template-columns:repeat(3,minmax(0,1fr))}.line-editor-board .line-unit-side{grid-column:1/-1;grid-row:auto;border-left:0;border-top:1px solid var(--bordure);padding:5px 0;display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:10px}}
@media(max-width:550px){.line-editor-board .line-unit-side{grid-template-columns:1fr}.line-editor-board .line-unit-side .line-strategies{grid-template-columns:repeat(2,minmax(0,1fr))}.line-editor-board .line-unit-side .line-stepper button{min-width:30px;min-height:28px}.line-editor-board .line-unit-side .line-strategy-range{height:20px}}

/* Fill the desktop roster width with more compact cards per circuit. */
.line-editor-board .roster-card-board{width:100%;max-width:none;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.line-editor-board .roster-board-cards{grid-template-columns:repeat(auto-fill,minmax(min(100%,190px),1fr))}
.line-notice{padding:9px 12px;border:1px solid;border-left-width:4px;border-radius:6px;font-size:11px;margin:8px 0}
.line-notice>strong{display:block;font-size:12px;margin-bottom:4px}.line-notice p{margin:4px 0}.line-notice ul{padding-left:18px;margin:5px 0}.line-notice li{margin:3px 0}.line-notice small{display:block;font-size:10px;margin-top:5px;color:var(--texte-doux)}
.line-notice-warning{border-color:var(--or);background:color-mix(in srgb,var(--or) 8%,var(--fond2));color:var(--texte)}.line-notice-warning>strong{color:var(--or)}
.line-notice-error{border-color:var(--rouge);background:color-mix(in srgb,var(--rouge) 8%,var(--fond2));color:var(--texte)}.line-notice-error>strong{color:var(--rouge)}
.line-notice-success{border-color:var(--vert);background:color-mix(in srgb,var(--vert) 5%,var(--fond2));color:var(--texte)}.line-notice-success>strong{color:var(--vert)}
.line-live-check:empty{display:none}
@media(max-width:800px){.line-editor-board .roster-card-board{grid-template-columns:1fr}}

.line-roster-filters .line-filter-buttons{gap:3px;max-width:100%}
.line-roster-filters .line-filter-buttons button{padding:4px 7px;font-size:10px}
.line-roster-filters>label{display:flex;align-items:center;gap:5px;flex-wrap:wrap}

/* Editor: full horizontal units and feedback next to the edited content. */
.line-editor-board .line-unit-grid{max-width:none;width:100%}
@media(min-width:1200px){
 .line-editor-board fieldset:has(.line-unit-side){grid-template-columns:repeat(3,minmax(0,1fr)) minmax(440px,1.8fr)}
 .line-editor-board .line-unit-side{display:grid;grid-template-columns:minmax(195px,.8fr) minmax(220px,1fr);gap:10px}
}
#line-panel-feedback:has(.line-live-check:empty):not(:has(#line-initial-check)){display:none}
#line-panel-feedback .line-notice{margin:0 0 8px;padding:8px 10px;font-size:11px}
.line-waiver-dialog{max-width:520px;width:calc(100% - 32px);box-sizing:border-box;padding:20px;background:var(--carte,#101827);color:var(--texte,#fff);border:2px solid #ef4444;border-radius:10px}
.line-waiver-dialog::backdrop{background:rgba(0,0,0,.75)}
.line-waiver-dialog h2{color:#f87171;font-size:20px;margin:0 0 12px}
.line-waiver-dialog p{font-size:13px;line-height:1.5}
.line-waiver-dialog>div{display:flex;gap:8px;justify-content:flex-end;flex-wrap:wrap}
.line-waiver-dialog button{font:inherit;padding:8px 12px;border-radius:5px;border:1px solid var(--bordure,#475569);background:var(--fond2,#172133);color:var(--texte,#fff);cursor:pointer}
.line-waiver-dialog .line-waiver-confirm{background:#b91c1c;color:#fff;border-color:#ef4444}
.line-editor-board .roster-waiver-pending{border-color:#ef4444}
.roster-waiver-badge{color:#f87171;font-size:10px;display:block;margin-top:4px}
.roster-waiver-badge[hidden]{display:none}

.line-editor-board .line-unit-side .line-settings{grid-column:auto;margin:0;min-width:0}


.line-waiver-dialog{position:fixed;inset:0;margin:auto;max-width:480px;max-height:calc(calc(100dvh / var(--zf,1)) - 40px);overflow:auto;box-shadow:0 24px 90px #0009;border-width:3px}
.line-waiver-dialog .line-waiver-confirm[hidden]{display:none}

.line-editor-board .roster-drop-hint{min-height:42px;display:flex;align-items:center;padding:8px 10px;box-sizing:border-box;border:1px dashed var(--bordure);border-radius:5px;color:var(--texte-doux);font-size:11px;background:var(--fond2);opacity:.85}
.line-editor-board .roster-drop-hint[hidden]{display:none}
.line-editor-board .roster-board-group.drop-ready .roster-drop-hint{border-color:var(--bleu-clair);color:var(--bleu-clair);opacity:1}

/* Keep readable roster cards short, with condition in the identity row. */
.line-editor-board .roster-player-card{gap:3px;padding:5px 6px;align-content:start}
.line-editor-board .roster-condition{font-size:10px;font-weight:700;padding:2px 4px;border-radius:4px;white-space:nowrap;margin-left:auto;background:var(--fond2);color:var(--texte-doux)}
.line-editor-board .roster-condition[data-state=good]{color:#32b981}
.line-editor-board .roster-condition[data-state=warning]{color:#e8b44c}
.line-editor-board .roster-condition[data-state=low]{color:#f87171}
.line-editor-board .roster-card-name{font-size:12px;gap:4px}
.line-editor-board .roster-card-name .line-move-button{margin-left:0;font-size:9px}
.line-editor-board .roster-card-name .roster-face{width:24px;height:26px;object-fit:cover}
.line-editor-board .roster-player-card .line-card-meta{font-size:11px;line-height:1.3}
.line-editor-board .roster-status-buttons{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:2px;max-width:none}
.line-editor-board .roster-status-buttons button{font-size:10px;padding:2px 4px;line-height:1.15}
@media(min-width:1000px){
 .line-editor-board .roster-board-group[data-roster-drop-status="2"],.line-editor-board .roster-board-group[data-roster-drop-status="0"]{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:5px;align-items:start}
 .line-editor-board .roster-board-group[data-roster-drop-status="2"]>h3,.line-editor-board .roster-board-group[data-roster-drop-status="0"]>h3{grid-column:1/-1;margin-bottom:0}
 .line-editor-board .roster-board-group[data-roster-drop-status="2"] .roster-board-cards,.line-editor-board .roster-board-group[data-roster-drop-status="0"] .roster-board-cards{grid-template-columns:1fr}
}

/* Compact controls above the roster, without reducing player-name readability. */
body:has(#line-editor) .portal-home{padding-top:8px}
body:has(#line-editor) .portal-heading{margin-bottom:5px;gap:8px}
body:has(#line-editor) .portal-heading h1{font-size:22px;margin:0}
body:has(#line-editor) .schedule-filters{margin:4px 0;gap:8px;padding:0}
body:has(#line-editor) .schedule-filters label{font-size:10px;gap:3px}
body:has(#line-editor) .schedule-filters button{padding:4px 7px;font-size:11px}
.line-editor-board .line-editor-toolbar{gap:7px;padding:4px 0;flex-wrap:wrap;font-size:11px}
.line-editor-board .line-editor-toolbar button{padding:5px 8px;font-size:11px}
.line-editor-board .team-tabs{margin:3px 0 5px}
.line-editor-board .team-tabs button{padding:5px 7px;font-size:11px}
.line-editor-board .line-roster-filters{gap:7px;margin-bottom:4px;font-size:11px}
.line-editor-board .roster-drop-zones{margin:4px 0;gap:4px}
.line-editor-board .line-move-status:empty{display:none}

#line-panel-feedback .line-notice-success{display:flex;align-items:center;gap:10px;flex-wrap:wrap;padding:5px 8px}
#line-panel-feedback .line-notice-success p{margin:0;font-size:10px}
#line-panel-feedback .line-notice-success small{display:none}
.line-editor-board .line-roster-filters{display:flex;align-items:center;flex-wrap:wrap}
.line-editor-board .line-roster-filters .roster-drop-zones{display:flex;margin:0 0 0 auto;padding:0;flex-wrap:wrap}
.line-editor-board .line-roster-filters .roster-drop-zones button{padding:4px 6px;font-size:10px}
.line-editor-board .line-move-status{font-size:10px;margin:2px 0}
body:has(#line-editor) .portal-home>p.muted{margin:3px 0;font-size:10px}

@media(min-width:1400px){.line-editor-board .roster-status-buttons{grid-template-columns:repeat(4,minmax(0,1fr))}.line-editor-board .roster-status-buttons button{padding:3px 1px;font-size:9px}}

/* Waiver confirmation is an in-page overlay, independent of browser popup APIs. */
.line-waiver-shade{position:fixed;inset:0;background:#000b;z-index:2147483000}
.line-waiver-dialog[role=alertdialog]{display:block;z-index:2147483001;inset:auto;top:50%;left:50%;transform:translate(-50%,-50%);margin:0;width:min(480px,calc(calc(100vw / var(--zf,1)) - 32px));max-height:calc(calc(100dvh / var(--zf,1)) - 32px)}
.line-waiver-dialog[hidden],.line-waiver-shade[hidden]{display:none!important}

/* Single compact header: circuit/day beside save/copy controls. */
.line-top-controls{display:flex;align-items:center;gap:12px;flex-wrap:wrap;margin:3px 0 6px}
body:has(#line-editor) .line-top-controls .schedule-filters{margin:0;align-items:center}
body:has(#line-editor) .line-top-controls .schedule-filters>label{display:flex;flex-direction:row;align-items:center;gap:5px}
.line-top-controls .line-editor-toolbar{padding:0;flex:1;min-width:0}
.line-header-state{font-size:10px;color:var(--texte-doux);margin:0 0 0 auto}
.line-top-controls .line-move-status{flex-basis:100%;margin:0;font-size:10px}
#line-panel-feedback .line-notice{display:flex;align-items:center;gap:10px;flex-wrap:wrap;padding:5px 8px;position:relative}
#line-panel-feedback .line-notice p{margin:0;font-size:10px}
#line-panel-feedback .line-notice small{display:none}
.line-warning-details{font-size:11px;margin-left:auto;position:relative}
.line-warning-details>summary{cursor:pointer;color:var(--texte);padding:3px}
.line-warning-details[open]>ul{position:absolute;z-index:40;right:0;top:100%;width:min(540px,calc(80vw / var(--zf,1)));max-height:250px;overflow:auto;box-sizing:border-box;padding:12px 12px 12px 28px;margin:4px 0;border:1px solid #d79d39;border-radius:6px;background:var(--carte);box-shadow:0 8px 30px #0008}
@media(min-width:1600px){
 .line-editor-board .roster-board-group[data-roster-drop-status="3"],.line-editor-board .roster-board-group[data-roster-drop-status="1"]{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:5px;align-items:start}
 .line-editor-board .roster-board-group[data-roster-drop-status="3"]>h3,.line-editor-board .roster-board-group[data-roster-drop-status="1"]>h3{grid-column:1/-1;margin-bottom:0}
 .line-editor-board .roster-board-group[data-roster-drop-status="3"]>[data-roster-drop-kind="F"],.line-editor-board .roster-board-group[data-roster-drop-status="1"]>[data-roster-drop-kind="F"]{grid-column:span 2}
 .line-editor-board .roster-board-group[data-roster-drop-status="3"] .roster-board-cards,.line-editor-board .roster-board-group[data-roster-drop-status="1"] .roster-board-cards{grid-template-columns:repeat(1,minmax(0,1fr))}
 .line-editor-board .roster-board-group[data-roster-drop-status="3"]>[data-roster-drop-kind="F"] .roster-board-cards,.line-editor-board .roster-board-group[data-roster-drop-status="1"]>[data-roster-drop-kind="F"] .roster-board-cards{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:800px){.line-top-controls{display:block}.line-top-controls .line-editor-toolbar{margin-top:5px}.line-header-state{margin-left:0}}

/* One Move command per card; destinations are shared by the roster toolbar. */
.line-editor-board .roster-player-card .roster-status-buttons{display:none}
@media(min-width:1600px){
 .line-editor-board .roster-board-group[data-roster-drop-status="2"],.line-editor-board .roster-board-group[data-roster-drop-status="0"]{grid-template-columns:repeat(4,minmax(0,1fr))}
 .line-editor-board .roster-board-group[data-roster-drop-status="2"]>[data-roster-drop-kind="F"],.line-editor-board .roster-board-group[data-roster-drop-status="0"]>[data-roster-drop-kind="F"]{grid-column:span 2}
 .line-editor-board .roster-board-group[data-roster-drop-status="2"]>[data-roster-drop-kind="F"] .roster-board-cards,.line-editor-board .roster-board-group[data-roster-drop-status="0"]>[data-roster-drop-kind="F"] .roster-board-cards{grid-template-columns:repeat(2,minmax(0,1fr))}
}

/* Portraits : initiales always available while loading or on image failure. */
.player-portrait-fallback{position:relative;display:inline-flex;align-items:center;justify-content:center;flex-shrink:0;overflow:hidden;background:var(--panel,#18243b);border:1px solid #425878;border-radius:50%;color:var(--muted,#b1c3db);font-weight:700;font-size:10px;line-height:1;vertical-align:middle}
.player-portrait-fallback.roster-face{width:24px;height:26px}
.player-portrait-fallback.line-player-face{width:30px;height:34px}
.player-portrait-fallback>img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
.player-portrait-fallback>[hidden]{display:none}

/* Compact editor: remove repeated headings, give strategies their own width. */
body:has(#line-editor) .portal-heading{margin:4px 0}
body:has(#line-editor) .portal-heading h1{font-size:18px;margin:0}
.line-editor-board [data-editor-panel]{padding:6px}
.line-editor-board .line-unit-side .line-stepper{width:100%;min-width:0;box-sizing:border-box}
.line-editor-board .line-unit-side .line-stepper button{flex:0 0 20px;min-width:20px;width:20px;padding:2px 0;box-sizing:border-box}
.line-editor-board .line-unit-side .line-stepper input{flex:1;min-width:0;width:30px;box-sizing:border-box}
.line-editor-board .line-unit-side .line-strategy-range{width:100%;min-width:0;max-width:100%;box-sizing:border-box}
.line-editor-board .line-unit-stats{min-width:0;overflow-x:auto}
.line-editor-board .line-unit-stats table{width:100%;table-layout:auto}
.line-editor-board .line-unit-stats th,.line-editor-board .line-unit-stats td{padding:3px 4px}
@media(min-width:1200px){
 .line-editor-board fieldset:has(.line-unit-side){grid-template-columns:repeat(3,minmax(0,1fr)) minmax(500px,1.8fr)}
 .line-editor-board .line-unit-side{grid-template-columns:minmax(220px,.9fr) minmax(240px,1fr);gap:20px}
}
.line-top-controls #line-panel-feedback{margin-left:auto;max-width:520px;min-width:0}
.line-top-controls #line-panel-feedback .line-notice{padding:4px 6px;margin:0;display:flex;align-items:center;gap:6px;flex-wrap:wrap;font-size:10px}
.line-top-controls #line-panel-feedback .line-notice>strong{font-size:10px;margin:0}
.line-top-controls #line-panel-feedback .line-notice-success p,.line-top-controls #line-panel-feedback small{display:none}

.line-editor label[data-validation=warning] .line-stepper{border:1px solid #eab308;border-radius:4px;background:#eab30818}
.line-editor label[data-validation=error] .line-stepper{border:1px solid #ef4444;border-radius:4px;background:#ef444418}
.line-editor label[data-validation=warning] input[type=range]{accent-color:#eab308}
.line-editor label[data-validation=error] input[type=range]{accent-color:#ef4444}
.line-field-feedback{font-size:9px;line-height:1.2;white-space:normal}
label[data-validation=warning] .line-field-feedback{color:#eab308}
label[data-validation=error] .line-field-feedback{color:#ef4444}

/* Dense desktop lines, while keeping names and numeric controls readable. */
@media(min-width:1200px){
 .line-editor-board .line-unit-grid{gap:3px}
 .line-editor-board .line-board-heading{margin:4px 0 1px;font-size:11px}
 .line-editor-board fieldset:has(.line-position){margin:0;padding:0}
 .line-editor-board fieldset:has(.line-position) legend{font-size:10px;margin-bottom:1px}
 .line-editor-board .line-position{gap:1px}
 .line-editor-board .line-slot-card{min-height:48px;padding:4px 6px;gap:5px}
 .line-editor-board .line-card-content{gap:1px}
 .line-editor-board .line-card-name{font-size:12px;line-height:1.15}
 .line-editor-board .line-card-meta,.line-editor-board .line-card-salary{font-size:10px;line-height:1.15}
 .line-editor-board .line-unit-stats th,.line-editor-board .line-unit-stats td{padding:2px 3px;line-height:1.2}
 .line-editor-board .line-settings>strong,.line-editor-board .line-unit-stats>strong{font-size:10px;margin-bottom:2px}
 .line-editor-board fieldset:has(.line-unit-side){grid-template-columns:repeat(3,minmax(0,1fr)) minmax(620px,2fr)}
 .line-editor-board .line-unit-side{grid-template-columns:minmax(220px,.8fr) minmax(360px,1.2fr);gap:12px}
 .line-editor-board [data-editor-panel="global"] .line-unit-grid{grid-template-columns:repeat(auto-fit,minmax(320px,440px));justify-content:start;gap:8px}
 .line-editor-board [data-editor-panel="global"] fieldset{padding:6px;min-width:0;margin:0}
 .line-editor-board [data-editor-panel="global"] .line-settings>strong{display:none}
 .line-editor-board [data-editor-panel="global"] .line-strategies{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:6px}
}
@media(min-width:1600px){
 .line-editor-board fieldset:has(.line-unit-side){grid-template-columns:repeat(3,minmax(0,1fr)) minmax(720px,2fr)}
 .line-editor-board .line-unit-side{grid-template-columns:minmax(310px,.9fr) minmax(390px,1.1fr)}
 .line-editor-board .line-unit-side .line-strategies{grid-template-columns:repeat(4,minmax(0,1fr));gap:5px}
}

/* Condition (C 97) sur les cartes de case, le choix de joueur et la patinoire — mêmes couleurs que les cartes de formation */
.line-card-condition{display:inline-block;font-size:10px;font-weight:700;padding:1px 5px;border-radius:4px;white-space:nowrap;background:var(--fond2);color:var(--texte-doux);margin-top:2px;align-self:flex-start}
.line-card-condition[data-state=good]{color:#32b981}
.line-card-condition[data-state=warning]{color:#e8b44c}
.line-card-condition[data-state=low]{color:#f87171}
