/* =====================================================================
   So Coaching Football — thème visuel
   Marine (base) · bleu roi (actions) · or (accents) · vert (terrain)
   Chargé après style.css : il en redéfinit l'apparence.
   ===================================================================== */
:root {
  --navy: #0B1F3A;
  --navy-2: #13294B;
  --ink: #0B1F3A;
  --blue: #2457D6;
  --blue-d: #1B44AC;
  --sky: #EAF0FD;
  --gold: #E3B23C;
  --gold-d: #9A6E12;
  --gold-l: #FBF1D6;
  --green: #1F8A5B;
  --green-l: #E5F4EC;
  --muted: #5B6475;
  --line: #E4E1D8;
  --soft: #F1EFE8;
  --bg: #F6F4EE;
  --card: #FFFFFF;
  --accent: var(--blue);
  --radius: 16px;
  --shadow: 0 1px 2px rgba(11, 31, 58, 0.05), 0 6px 18px rgba(11, 31, 58, 0.06);
  --shadow-h: 0 2px 4px rgba(11, 31, 58, 0.06), 0 10px 26px rgba(11, 31, 58, 0.1);
  --display: 'Barlow Condensed', 'Arial Narrow', sans-serif;
}
body { background: var(--bg); color: var(--ink); -webkit-font-smoothing: antialiased; }
a { color: var(--blue); }
::selection { background: var(--gold-l); }

/* ---------- titres façon maillot ---------- */
h1 { font-family: var(--display); font-weight: 800; font-style: italic; font-size: 40px; letter-spacing: 0.005em; text-transform: uppercase; }
.kicker { color: var(--gold-d); letter-spacing: 0.12em; }
.section-title, .day-title, .block-title h2, .theme-input, .sc-title strong { font-style: italic; font-weight: 800 !important; }
.section-title { color: var(--navy); }

/* ---------- surfaces ---------- */
.panel, .block, .day, .scard, .tcard, .mcard, .lib-card, .session-head, .match-head, .hrow, .rp-row, .tblock, .rate-row, .tile, .center-card {
  border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); box-shadow: var(--shadow);
}
.scard, .tcard, .mcard, .lib-card, .hrow, .prep-btn, .pcard, .att-btn { transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease; }
.scard:hover, .tcard:hover, .mcard:hover, .lib-card:hover, .hrow:hover { transform: translateY(-2px); box-shadow: var(--shadow-h); background: var(--card); }
.variant, .flist, .grp-row, .compo-row, .qs-side { background: var(--soft); border-radius: 12px; }
.note { background: var(--gold-l); border-color: #EBD38E; }

/* ---------- boutons & puces ---------- */
.btn { border-radius: 12px; border-color: var(--line); background: var(--card); transition: background 0.15s, box-shadow 0.15s, transform 0.1s; }
.btn:hover { background: var(--soft); }
.btn:active { transform: translateY(1px); }
.btn.primary { background: var(--blue); border-color: var(--blue); color: #fff; box-shadow: 0 4px 12px rgba(36, 87, 214, 0.25); }
.btn.primary:hover { background: var(--blue-d); }
.btn.ghost { background: transparent; box-shadow: none; }
.btn.danger { color: #B42318; }
.chip { border-color: var(--line); background: var(--card); transition: background 0.15s, color 0.15s; }
.chip:hover { background: var(--soft); }
.chip.on { background: var(--navy); border-color: var(--navy); color: #fff; }
.pill { background: var(--sky); color: var(--navy); }
.tag { background: var(--gold-l); color: var(--gold-d); }
.icon-btn { border-radius: 10px; border-color: var(--line); }
input:not([type=checkbox]):not([type=color]), textarea, select { border-radius: 10px; border-color: var(--line); background: #fff; }
input:focus-visible, textarea:focus-visible, select:focus-visible, button:focus-visible, a:focus-visible { outline: 3px solid rgba(36, 87, 214, 0.35); outline-offset: 1px; }
.num { background: var(--navy); box-shadow: inset 0 0 0 2px var(--gold); }

/* ---------- en-tête : marine, rayures de pelouse, liseré or ---------- */
.topbar {
  background-color: var(--navy);
  background-image: repeating-linear-gradient(100deg, var(--navy) 0 46px, var(--navy-2) 46px 92px);
  border-bottom: 3px solid var(--gold);
  padding-top: max(10px, env(safe-area-inset-top));
}
.brand { gap: 10px; }
.brand-link { display: flex; align-items: center; gap: 10px; text-decoration: none; color: #fff; }
.brand-logo { width: 38px; height: 38px; flex: none; filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.25)); }
.brand-word { display: flex; flex-direction: column; line-height: 0.95; }
.brand-word b { font-family: var(--display); font-style: italic; font-weight: 800; font-size: 22px; letter-spacing: 0.02em; text-transform: uppercase; }
.brand-word small { font-size: 9.5px; font-weight: 700; letter-spacing: 0.32em; color: var(--gold); text-transform: uppercase; }
.team-name, .team-switch { font-size: 12.5px; color: #C8D3E8; }
.team-name { padding-left: 10px; border-left: 1px solid rgba(255, 255, 255, 0.18); }
.team-switch { background: rgba(255, 255, 255, 0.08); border-color: rgba(255, 255, 255, 0.18); color: #fff; border-radius: 10px; }
.nav { gap: 2px; }
.nav-link { display: inline-flex; align-items: center; gap: 6px; color: #C8D3E8; border-radius: 10px; position: relative; }
.nav-link svg { width: 18px; height: 18px; opacity: 0.85; }
.nav-link:hover { background: rgba(255, 255, 255, 0.08); color: #fff; }
.nav-link.on { background: rgba(255, 255, 255, 0.12); color: #fff; }
.nav-link.on::after { content: ''; position: absolute; left: 12px; right: 12px; bottom: 2px; height: 2px; border-radius: 2px; background: var(--gold); }

/* ---------- barre d'onglets en bas (téléphone) ---------- */
.tabbar { display: none; }
@media (max-width: 720px) {
  .topbar .nav { display: none; }
  .topbar { flex-wrap: nowrap; }
  .tabbar {
    display: grid; grid-auto-flow: column; grid-auto-columns: 1fr;
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 20;
    background: rgba(255, 255, 255, 0.96); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
    border-top: 1px solid var(--line); box-shadow: 0 -6px 18px rgba(11, 31, 58, 0.08);
    padding: 6px 4px calc(6px + env(safe-area-inset-bottom));
  }
  .tab { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 4px 2px; border-radius: 12px; color: var(--muted); text-decoration: none; font-size: 10.5px; font-weight: 600; }
  .tab svg { width: 22px; height: 22px; }
  .tab.on { color: var(--blue); }
  .tab.on svg { background: var(--sky); border-radius: 10px; padding: 3px; width: 32px; height: 28px; margin: -3px 0; }
  .main { padding-bottom: calc(90px + env(safe-area-inset-bottom)); }
  .live-bar { top: 64px; }
  h1 { font-size: 32px; }
  .brand-word small { display: none; }
  .team-name { max-width: 46vw; }
}

/* ---------- semaine & séances ---------- */
.day { padding: 16px; }
.day.today { border-color: var(--gold); box-shadow: 0 0 0 2px var(--gold-l), var(--shadow); }
.day-title { color: var(--navy); }
.day-title .pill { background: var(--gold); color: var(--navy); font-style: normal; font-family: Inter, sans-serif; }
.scard { border-left: 6px solid var(--c); }
.prep-btn { border-radius: 14px; background: var(--card); border-width: 2px; }
.prep-btn:hover { background: var(--card); transform: translateY(-1px); box-shadow: var(--shadow); }
.bchip { background: var(--soft); }
.bchip.filled .dot { background: var(--green); border-color: var(--green); }
.bchip .who { background: var(--navy); }
.session-head .band { height: 8px; background: linear-gradient(90deg, var(--c) 0 70%, var(--gold) 70% 100%); }
.hint { color: var(--muted); }
.schema-add { border-color: #8CC7A5; background: var(--green-l); color: #17603F; border-radius: 14px; }
.schema-add .plus { background: var(--green); }
.mat-box { background: var(--green-l); border-color: #C8E6D4; border-radius: 14px; }
.att-p { background: var(--green-l); }
.att-p .att-st { background: var(--green); }

/* ---------- matchs ---------- */
.match-head { overflow: hidden; }
.mh-top { background: linear-gradient(180deg, #fff 0, #fff 60%, var(--soft) 100%); }
.mh-num { font-style: italic; font-weight: 800; color: var(--navy); }
.mtabs button.on { border-bottom-color: var(--gold); color: var(--navy); background: var(--card); }
.live-bar { background-color: var(--navy); background-image: repeating-linear-gradient(100deg, var(--navy) 0 46px, var(--navy-2) 46px 92px); border: 0; border-bottom: 3px solid var(--gold); }
.live-bar .btn.primary { background: var(--gold); border-color: var(--gold); color: var(--navy); box-shadow: none; }
.clk { font-style: italic; }
.pcard { border-radius: 14px; box-shadow: var(--shadow); }
.pcard.on { background: var(--green-l); border-color: #9BD0B2; }
.mcard.win { border-left-color: var(--green); }
.mcard.draw { border-left-color: var(--gold); }
.mc-score { font-style: italic; font-weight: 800; }
.star.on { color: var(--gold); }
.sheet { border-radius: 22px 22px 0 0; }

/* ---------- effectif, bilans, bibliothèque ---------- */
.tile b { font-style: italic; font-weight: 800; color: var(--navy); }
.pb-fill { background: linear-gradient(90deg, var(--blue), #4F7DF0); }
.lib-card { overflow: hidden; }
.lib-body .tag { background: var(--gold-l); color: var(--gold-d); }
.code-box, .grp-code b { color: var(--navy); font-style: italic; }
.grp-row.mine { background: var(--green-l); }
.quick-cta { background: var(--sky); border-color: #C4D4F8; }

/* ---------- fenêtres ---------- */
.dialog { border-radius: 20px; box-shadow: 0 20px 60px rgba(11, 31, 58, 0.3); }
.dialog::backdrop, .sheet::backdrop { background: rgba(11, 31, 58, 0.5); backdrop-filter: blur(2px); }
.toast { background: var(--navy); border-left: 4px solid var(--gold); border-radius: 12px; }

/* ---------- connexion & accueil ---------- */
.auth-page { min-height: 100vh; background:
  radial-gradient(1200px 500px at 50% -10%, rgba(36, 87, 214, 0.35), transparent 60%),
  repeating-linear-gradient(100deg, var(--navy) 0 60px, var(--navy-2) 60px 120px);
  padding: 6vh 16px 40px; }
.auth-page .center-card { margin: 0 auto; border: 0; border-top: 4px solid var(--gold); box-shadow: 0 30px 80px rgba(0, 0, 0, 0.35); }
.auth-brand { display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; margin-bottom: 4px; }
.auth-brand img { width: 120px; height: 120px; filter: drop-shadow(0 6px 14px rgba(11, 31, 58, 0.3)); }
.auth-brand b { font-family: var(--display); font-style: italic; font-weight: 800; font-size: 34px; line-height: 0.95; text-transform: uppercase; color: var(--navy); }
.auth-brand small { font-size: 11px; font-weight: 700; letter-spacing: 0.32em; color: var(--gold-d); text-transform: uppercase; }
.auth-tabs { background: var(--soft); border-radius: 12px; }
.auth-tabs button.on { box-shadow: var(--shadow); }

@media print {
  .tabbar, .topbar { display: none !important; }
  .panel, .block, .day, .session-head, .match-head, .tile { box-shadow: none !important; }
  body { background: #fff; }
}

/* ---------- nom de l'exercice ---------- */
.block .ex-name-edit input[type=text] { width: 100%; font-family: var(--display); font-style: italic; font-weight: 700; font-size: 20px; color: var(--navy);
  border: 0; border-bottom: 2px dashed var(--line); border-radius: 0; background: transparent; padding: 4px 2px; }
.block .ex-name-edit input[type=text]:focus { border-bottom-color: var(--gold); outline: none; }
.ex-name-edit input::placeholder { color: #A9A59A; font-weight: 600; }
.ex-name { font-family: var(--display); font-style: italic; font-weight: 800; font-size: 22px; color: var(--navy); margin: 2px 0 6px; }

/* ---------- équipes ---------- */
.team-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; }
.team-card { border: 1px solid var(--line); border-radius: 14px; background: var(--card); overflow: hidden; border-top: 6px solid var(--bib); }
.team-card-head { display: flex; align-items: center; gap: 8px; padding: 8px 10px; background: var(--soft); }
.team-card-head .bib { width: 14px; height: 14px; border-radius: 4px; background: var(--bib); box-shadow: inset 0 0 0 1px rgba(11, 31, 58, 0.25); }
.team-card-head strong { font-family: var(--display); font-style: italic; font-weight: 800; font-size: 18px; text-transform: uppercase; flex: 1; }
.team-card ul { list-style: none; margin: 0; padding: 6px; display: grid; gap: 4px; }
.team-pl { width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 6px; padding: 8px 10px; border: 0; border-radius: 10px; background: transparent; font: inherit; font-weight: 600; color: var(--ink); cursor: pointer; text-align: left; }
.team-pl:hover:not(:disabled) { background: var(--soft); }
.team-pl:disabled { cursor: default; }
.tpos { font-size: 11px; font-weight: 700; color: var(--gold-d); background: var(--gold-l); border-radius: 6px; padding: 1px 6px; }
@media print { .panel.teams { display: block !important; border: 1px solid #ccc; } .panel.teams > * { display: block; } }

/* ---------- chasubles ---------- */
.bib-pick { display: flex; flex-wrap: wrap; gap: 8px; }
.bib-opt { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px 6px 6px; border: 1px solid var(--line); border-radius: 999px; background: var(--card); font: inherit; font-weight: 600; cursor: pointer; }
.bib-opt .sw { width: 26px; height: 26px; border-radius: 8px; background: var(--sw); box-shadow: inset 0 0 0 1px rgba(11, 31, 58, 0.2); display: grid; place-items: center; font-size: 12px; font-weight: 800; color: #fff; text-shadow: 0 0 3px rgba(0, 0, 0, 0.6); }
.bib-opt.on { border-color: var(--navy); box-shadow: 0 0 0 2px var(--navy) inset; }
.guests summary { cursor: pointer; font-weight: 600; color: var(--blue); }

/* ---------- bibliothèque ---------- */
.lib-by { font-size: 12px; font-weight: 600; color: var(--blue); }
.lib-type-row { display: flex; align-items: center; gap: 8px; color: var(--muted); flex-wrap: wrap; }
.block .lib-type-row select { width: auto; padding: 4px 8px; font-size: 13px; }
.photo-strip { display: flex; gap: 8px; flex-wrap: wrap; }
.photo-strip .photo img { width: 140px; height: 140px; object-fit: cover; border-radius: 12px; border: 1px solid var(--line); display: block; }
.check-row { display: flex; align-items: center; gap: 10px; font-weight: 600; }
.check-row input { width: 20px; height: 20px; }
.sc-align { gap: 6px; }
.brand-word b { white-space: nowrap; }
.brand { min-width: 0; }
.team-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }

/* ---------- comportement « appli » sur téléphone ----------
   - pas de zoom au pincement ni au double-tap, pas d'effet élastique ;
   - champs en 16 px : sinon l'iPhone zoome tout seul quand on touche un champ ;
   - fond marine derrière la barre d'état (évite la bande claire en haut). */
html { background: var(--navy); overscroll-behavior: none; touch-action: pan-x pan-y; }
body { min-height: 100vh; min-height: 100dvh; overscroll-behavior: none; touch-action: manipulation; }
#app { background: var(--bg); min-height: 100vh; min-height: 100dvh; }
@media (max-width: 900px) {
  input:not([type=checkbox]):not([type=color]):not([type=radio]):not(.theme-input):not(.ex-name-input), textarea, select { font-size: 16px !important; }
}
.param-tabs { margin-bottom: 4px; }
.param-tabs a { text-decoration: none; }
.add-block { border: 2px dashed #C4D4F8; background: var(--sky); box-shadow: none; }
.add-block .chips .chip { background: #fff; }
.block-tools summary { cursor: pointer; color: var(--muted); }

/* ---------- en-tête fixe : Safari (iPhone) reprend sa couleur pour la zone de l'heure ---------- */
.topbar { position: fixed; top: 0; left: 0; right: 0; z-index: 30; }
body { padding-top: var(--topbar-h, 64px); }
body:has(.auth-page), body:not(:has(.topbar)) { padding-top: 0; }
.live-bar { top: calc(var(--topbar-h, 64px) + 8px); }
@media (max-width: 720px) { .live-bar { top: calc(var(--topbar-h, 64px) + 4px); } }
@media print { body { padding-top: 0 !important; } }

/* ---------- hors connexion ---------- */
.offline-banner { background: var(--gold-l); border: 1px solid #EBD38E; color: var(--gold-d); border-radius: 12px; padding: 10px 14px; font-size: 14px; margin-bottom: 14px; }

/* ---------- mentions légales ---------- */
.legal-wrap { max-width: 760px; margin: 0 auto; }
.legal { max-width: 760px; }
.legal h2 { font-size: 17px; margin: 14px 0 0; color: var(--navy); }
.legal p, .legal li { line-height: 1.6; }
.legal-link { text-decoration: underline; }

/* Rien ne doit dépasser en largeur (sinon la page « glisse » sur le côté sur iPhone) */
html, body { overflow-x: hidden; max-width: 100%; }
@supports (overflow: clip) { html, body { overflow-x: clip; } }
.main, .rp-row, .rp-id, .rp-add, .panel { min-width: 0; max-width: 100%; }
.rp-id > *, .rp-add > * { min-width: 0; }
.rp-id select, .rp-add select { width: 100%; }

/* ---------- matchs par week-end ---------- */
.mgroup { display: flex; flex-direction: column; gap: 12px; }
.mweek { display: flex; flex-direction: column; gap: 8px; }
.mweek-title { display: flex; align-items: center; gap: 8px; margin: 6px 0 0; font-size: 13px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--gold-d); }
.mweek-title::after { content: ''; flex: 1; height: 1px; background: var(--line); }

/* ---------- téléphone en paysage : en-tête sur une ligne, marges hors encoche ---------- */
.main { padding-left: max(16px, env(safe-area-inset-left)); padding-right: max(16px, env(safe-area-inset-right)); }
.topbar { padding-left: max(16px, env(safe-area-inset-left)); padding-right: max(16px, env(safe-area-inset-right)); }
@media (orientation: landscape) and (max-height: 520px) {
  .topbar { flex-wrap: nowrap; padding-top: 6px; padding-bottom: 6px; gap: 10px; }
  .brand-logo { width: 30px; height: 30px; }
  .brand-word b { font-size: 18px; }
  .brand-word small { display: none; }
  .team-name { display: none; }
  .topbar .nav { display: flex; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
  .nav-link { padding: 6px 10px; font-size: 14px; white-space: nowrap; }
  .nav-link svg { width: 16px; height: 16px; }
  .tabbar { display: none !important; }
  .main { padding-top: 12px; padding-bottom: calc(24px + env(safe-area-inset-bottom)); }
  h1 { font-size: 30px; }
  .live-bar { top: calc(var(--topbar-h, 48px) + 4px); }
}
@media (orientation: landscape) and (max-height: 520px) {
  .schema-editor .sc-head { padding-top: 6px; padding-bottom: 6px; padding-left: max(12px, env(safe-area-inset-left)); padding-right: max(12px, env(safe-area-inset-right)); }
  .schema-editor .sc-head .btn { min-height: 34px; padding: 4px 12px; }
  .schema-editor .sc-title span { display: none; }
  .schema-editor .sc-body { padding-left: max(8px, env(safe-area-inset-left)); padding-right: max(8px, env(safe-area-inset-right)); }
}

/* ---------- éditeur de schéma en paysage (téléphone) : terrain à gauche, outils à droite ---------- */
.schema-editor { height: 100dvh; max-height: 100dvh; }
@media (orientation: landscape) and (max-height: 520px) {
  .schema-editor .sc-body { grid-template-columns: minmax(0, 1fr) 250px; grid-template-rows: minmax(0, 1fr); gap: 8px; padding-top: 6px; padding-bottom: max(6px, env(safe-area-inset-bottom)); }
  .schema-editor .sc-stage { order: 0; }
  .schema-editor .sc-stage .schema-svg { width: auto; height: auto; max-width: 100%; max-height: 100%; }
  .schema-editor .sc-side { overflow-y: auto; -webkit-overflow-scrolling: touch; gap: 8px; }
  .schema-editor .sc-tools { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 4px; overflow: visible; }
  .schema-editor .sc-tool { flex: none; padding: 4px 2px; min-height: 0; font-size: 10px; }
  .schema-editor .sc-tool svg { width: 20px; height: 20px; }
  .schema-editor .sc-color { width: 30px; height: 30px; }
  .schema-editor .sc-opts, .schema-editor .sc-selbar { padding: 8px; }
}

/* ---------- effectif : filtres et liste compacte ---------- */
.roster-tools { gap: 10px; }
.roster-tools input[type=search] { flex: 1 1 200px; }
.rt-line select { width: auto; flex: 0 1 220px; }
.rl-list { display: flex; flex-direction: column; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.rl-row { display: grid; grid-template-columns: minmax(0, 1fr) auto auto auto; align-items: center; gap: 10px; padding: 11px 14px; border-bottom: 1px solid var(--line); color: var(--ink); text-decoration: none; }
.rl-row:last-child { border-bottom: 0; }
.rl-row:hover { background: var(--soft); }
.rl-name { font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rl-init { font-weight: 500; color: var(--muted); }
.rl-grp { font-size: 12px; font-weight: 700; color: var(--navy); background: var(--sky); border-radius: 6px; padding: 1px 6px; }
.rl-stats { font-size: 12.5px; color: var(--muted); white-space: nowrap; min-width: 92px; text-align: right; }
.tpos.none { background: var(--soft); color: var(--muted); }
.rl-group { display: flex; flex-direction: column; gap: 6px; }
.add-players > summary { cursor: pointer; color: var(--blue); }
@media (max-width: 420px) { .rl-row { grid-template-columns: minmax(0, 1fr) auto auto; } .rl-stats { grid-column: 1 / -1; text-align: left; margin-top: -6px; } }
.pos-table { display: flex; flex-direction: column; gap: 6px; }
.pos-row { display: grid; grid-template-columns: 80px minmax(0, 1fr) 140px auto auto; gap: 6px; align-items: center; }
.pos-row .pos-code { font-weight: 800; text-transform: uppercase; }
.pos-move { display: flex; gap: 2px; }
@media (max-width: 560px) { .pos-row { grid-template-columns: 70px minmax(0, 1fr) auto; } .pos-row select { grid-column: 1 / 3; } }
.roster-tools .chip { padding: 5px 11px; font-size: 13.5px; }
.lib-filters .row input[type=search] { flex: 1 1 220px; }
.lib-filters .row select { width: auto; flex: 0 1 260px; }

/* ---------- classement FFF ---------- */
.table-wrap { overflow-x: auto; }
.standings { width: 100%; border-collapse: collapse; font-size: 14px; }
.standings th { text-align: left; font-size: 12px; color: var(--muted); font-weight: 700; padding: 6px 8px; border-bottom: 1px solid var(--line); }
.standings td { padding: 8px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.standings td:first-child { font-weight: 800; color: var(--navy); width: 28px; }
.standings .st-team { font-weight: 600; white-space: normal; }
.standings .st-pts { font-weight: 800; }
.standings tr.us td { background: var(--gold-l); }
@media (max-width: 480px) { .standings th:nth-child(8), .standings td:nth-child(8), .standings th:nth-child(9), .standings td:nth-child(9) { display: none; } .standings td, .standings th { padding: 7px 5px; } }
.paste-list { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: 12px; max-height: 40vh; overflow-y: auto; }
.paste-row { display: grid; grid-template-columns: auto 120px minmax(0, 1fr) auto; gap: 8px; align-items: center; padding: 8px 10px; border-bottom: 1px solid var(--line); font-size: 14px; }
.paste-row:last-child { border-bottom: 0; }
.pr-date { color: var(--muted); }
.pr-opp { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pr-score { font-weight: 800; font-style: italic; color: var(--navy); }
.steps { margin: 0; padding-left: 18px; display: grid; gap: 4px; }

/* ---------- filtres repliables (effectif, bibliothèque) ---------- */
.filters-toggle { display: flex; align-items: center; gap: 10px; width: 100%; padding: 2px 0; border: 0; background: transparent; font: inherit; color: var(--ink); cursor: pointer; text-align: left; }
.filters-toggle .ft-label { font-weight: 800; white-space: nowrap; }
.filters-toggle .ft-sum { flex: 1; min-width: 0; color: var(--muted); font-size: 13.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.filters-toggle .ft-arrow { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--soft); color: var(--navy); font-size: 14px; flex: none; }
.roster-tools.closed, .lib-filters:has(> [hidden]) { padding-top: 10px; padding-bottom: 10px; }
.lib-section { display: flex; flex-direction: column; gap: 8px; }
[hidden] { display: none !important; }
