:root{
    --bg:#0b0f17; --bg-panel:#131a26; --bg-panel-2:#1a2333; --bg-elevated:#1f2937;
    --border:#28344a; --border-light:#354056;
    --text:#e8edf4; --text-muted:#8a97ab; --text-dim:#5c6879;
    --accent:#3b82f6; --accent-2:#60a5fa;
    --success:#22c55e; --warning:#f5a623; --danger:#ef4444;
    --f-color:#3b82f6; --d-color:#22c55e; --g-color:#f5a623;
    --radius:10px; --radius-sm:6px; font-size:15px;
  }
  *{box-sizing:border-box;}
  html,body{margin:0;padding:0;}
  body{background:radial-gradient(ellipse at top, #101827 0%, #0b0f17 60%); color:var(--text);
    font-family:"Segoe UI", -apple-system, BlinkMacSystemFont, Roboto, Arial, sans-serif; min-height:100vh;}
  #app{max-width:1440px; margin:0 auto; padding:0 0 40px 0;}
  a{color:var(--accent-2);}
  button{font-family:inherit; cursor:pointer;}
  input, select, textarea, button{font-family:inherit; color:var(--text);}
  input, select, textarea{background:var(--bg-elevated); border:1px solid var(--border-light); border-radius:var(--radius-sm); padding:7px 10px; font-size:14px; outline:none;}
  input:focus, select:focus, textarea:focus{border-color:var(--accent);}
  h1,h2,h3,h4{margin:0 0 8px 0; font-weight:700;}
  .muted{color:var(--text-muted);} .dim{color:var(--text-dim);} .small{font-size:12.5px;} .hidden{display:none !important;}

  .center-screen{min-height:70vh; display:flex; align-items:center; justify-content:center; padding:24px;}
  .center-card{max-width:460px; text-align:center; background:var(--bg-panel); border:1px solid var(--border); border-radius:var(--radius); padding:32px;}
  .spinner{width:34px; height:34px; border-radius:50%; border:3px solid var(--border-light); border-top-color:var(--accent); margin:0 auto 16px auto; animation:spin 0.8s linear infinite;}
  @keyframes spin{to{transform:rotate(360deg);}}

  header.top{position:sticky; top:0; z-index:20; background:rgba(11,15,23,0.92); backdrop-filter:blur(8px); border-bottom:1px solid var(--border); padding:12px 20px;}
  .top-row{display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap:14px;}
  .brand{display:flex; align-items:center; gap:10px;}
  .brand .logo{width:38px; height:38px; border-radius:9px; background:linear-gradient(135deg, var(--accent), #8b5cf6); display:flex; align-items:center; justify-content:center; font-size:18px; font-weight:800;}
  .brand h1{font-size:17px; line-height:1.1;}
  .brand .sub{font-size:11.5px; color:var(--text-muted); display:flex; align-items:center; gap:6px;}
  .live-dot{width:7px; height:7px; border-radius:50%; background:var(--success); box-shadow:0 0 6px var(--success); display:inline-block; animation:pulse 1.4s infinite;}
  @keyframes pulse{0%{opacity:1;}50%{opacity:0.35;}100%{opacity:1;}}

  .status-cluster{display:flex; align-items:center; gap:10px; flex-wrap:wrap;}
  .pill{background:var(--bg-panel-2); border:1px solid var(--border); border-radius:999px; padding:6px 14px; font-size:12.5px; color:var(--text-muted); display:flex; align-items:center; gap:6px;}
  .pill b{color:var(--text); font-weight:700;}

  .on-clock{display:flex; align-items:center; gap:10px; background:linear-gradient(90deg, rgba(59,130,246,0.18), rgba(139,92,246,0.12)); border:1px solid var(--accent); border-radius:999px; padding:7px 16px 7px 10px; box-shadow:0 0 0 3px rgba(59,130,246,0.08);}
  .on-clock .dot{width:10px; height:10px; border-radius:50%; background:var(--success); box-shadow:0 0 8px var(--success); animation:pulse 1.4s infinite;}
  .on-clock .label{font-size:10.5px; text-transform:uppercase; letter-spacing:0.06em; color:var(--text-muted);}
  .on-clock .team-name{font-weight:800; font-size:15px;}
  .on-clock.complete{border-color:var(--success); background:linear-gradient(90deg, rgba(34,197,94,0.18), rgba(34,197,94,0.06));}

  .timer-widget{display:flex; align-items:center; gap:8px; background:var(--bg-panel-2); border:1px solid var(--border); border-radius:999px; padding:5px 8px 5px 14px;}
  #timerDisplay{font-variant-numeric:tabular-nums; font-weight:800; font-size:16px; min-width:52px; text-align:center;}
  #timerDisplay.timer-danger{color:var(--danger);}
  .icon-btn{background:var(--bg-elevated); border:1px solid var(--border-light); border-radius:999px; width:30px; height:30px; display:flex; align-items:center; justify-content:center; font-size:13px; color:var(--text);}
  .icon-btn:hover{border-color:var(--accent);}

  .btn{background:var(--bg-elevated); border:1px solid var(--border-light); color:var(--text); border-radius:var(--radius-sm); padding:8px 14px; font-size:13px; font-weight:600;}
  .btn:hover{border-color:var(--accent-2);}
  .btn.primary{background:var(--accent); border-color:var(--accent); color:#fff;}
  .btn.primary:hover{background:var(--accent-2);}
  .btn.danger{background:transparent; border-color:var(--danger); color:var(--danger);}
  .btn.danger:hover{background:rgba(239,68,68,0.12);}
  .btn:disabled{opacity:0.35; cursor:not-allowed;}
  .btn.small{padding:5px 10px; font-size:12px;}

  .progress-track{width:100%; height:6px; border-radius:99px; background:var(--bg-elevated); overflow:hidden; border:1px solid var(--border);}
  .progress-fill{height:100%; background:linear-gradient(90deg, var(--accent), var(--accent-2)); transition:width 0.3s;}
  .draft-progress-wrap{padding:10px 20px 0 20px; display:flex; align-items:center; gap:12px;}
  .draft-progress-wrap .progress-track{flex:1;}

  nav.tabs{display:flex; gap:4px; padding:12px 20px 0 20px; flex-wrap:wrap;}
  nav.tabs button{background:transparent; border:1px solid transparent; border-bottom:2px solid transparent; color:var(--text-muted); padding:9px 16px; font-size:13.5px; font-weight:600; border-radius:8px 8px 0 0;}
  nav.tabs button:hover{color:var(--text); background:var(--bg-panel);}
  nav.tabs button.active{color:var(--text); background:var(--bg-panel); border-color:var(--border); border-bottom-color:var(--bg-panel);}

  main.main-content{padding:16px 20px 0 20px;}
  .panel{background:var(--bg-panel); border:1px solid var(--border); border-radius:var(--radius); padding:16px;}
  .panel + .panel{margin-top:16px;}

  .admin-bar{display:flex; align-items:center; gap:16px; flex-wrap:wrap; background:var(--bg-panel-2); border:1px dashed var(--border-light); border-radius:var(--radius); padding:10px 14px; margin-bottom:14px; font-size:13px;}
  .badge-admin{background:rgba(245,166,35,0.16); color:var(--g-color); border:1px solid rgba(245,166,35,0.4); border-radius:999px; padding:1px 8px; font-size:10.5px; font-weight:700; margin-left:4px;}
  .mine-status{flex:1; min-width:180px;}
  label.switch-row{display:flex; align-items:center; gap:8px; cursor:pointer;}
  .admin-target{display:inline-flex; align-items:center; gap:6px; margin-top:6px; font-size:12px; color:var(--text-muted);}

  .teams-strip{display:grid; grid-template-columns:repeat(auto-fill, minmax(110px,1fr)); gap:8px; margin-bottom:14px;}
  .team-chip{background:var(--bg-panel-2); border:1px solid var(--border); border-radius:var(--radius-sm); padding:8px 10px; cursor:pointer; text-align:center;}
  .team-chip:hover{border-color:var(--accent-2);}
  .team-chip .tc-name{font-size:12px; font-weight:700; white-space:nowrap; overflow:hidden; text-overflow:ellipsis;}
  .team-chip .tc-status{font-size:10.5px; color:var(--text-muted); margin-top:2px;}
  .team-chip.on-clock-chip{border-color:var(--accent); box-shadow:0 0 0 2px rgba(59,130,246,0.15);}
  .team-chip.mine-chip{border-color:var(--success);}
  .team-chip.mine-chip .tc-status{color:var(--success);}

  .next-picks{display:flex; gap:8px; overflow-x:auto; margin-bottom:14px; padding-bottom:2px;}
  .next-pick-chip{flex:0 0 auto; background:var(--bg-panel-2); border:1px solid var(--border); border-radius:8px; padding:6px 10px; font-size:11.5px; color:var(--text-muted); white-space:nowrap;}
  .next-pick-chip b{color:var(--text);}
  .next-pick-chip.now{border-color:var(--accent); color:var(--accent-2);}

  .draft-grid{display:grid; grid-template-columns:1fr 420px; gap:16px; align-items:start;}
  @media(max-width:980px){ .draft-grid{grid-template-columns:1fr;} }

  .players-controls{display:flex; gap:8px; flex-wrap:wrap; margin-bottom:12px;}
  .players-controls input[type=text]{flex:1; min-width:160px;}
  .seg{display:flex; border:1px solid var(--border-light); border-radius:var(--radius-sm); overflow:hidden;}
  .seg button{background:var(--bg-elevated); border:none; border-right:1px solid var(--border-light); color:var(--text-muted); padding:7px 12px; font-size:12.5px; font-weight:600;}
  .seg button:last-child{border-right:none;}
  .seg button.active{background:var(--accent); color:#fff;}

  .players-list-head, .player-row{display:grid; grid-template-columns: 2.1fr 0.7fr 0.9fr 1.1fr 1fr; gap:8px; align-items:center; padding:8px 10px; font-size:13px;}
  .players-list-head{color:var(--text-dim); font-size:11px; text-transform:uppercase; letter-spacing:0.04em; border-bottom:1px solid var(--border);}
  .players-list{max-height:600px; overflow-y:auto; border:1px solid var(--border); border-radius:var(--radius-sm);}
  .player-row{border-bottom:1px solid var(--border);}
  .player-row:last-child{border-bottom:none;}
  .player-row:hover{background:var(--bg-panel-2);}
  .player-name{font-weight:600;}
  .badge{display:inline-block; padding:2px 8px; border-radius:999px; font-size:11px; font-weight:700; letter-spacing:0.02em;}
  .badge-F{background:rgba(59,130,246,0.16); color:var(--f-color); border:1px solid rgba(59,130,246,0.4);}
  .badge-D{background:rgba(34,197,94,0.16); color:var(--d-color); border:1px solid rgba(34,197,94,0.4);}
  .badge-G{background:rgba(245,166,35,0.16); color:var(--g-color); border:1px solid rgba(245,166,35,0.4);}
  .cap-cell{font-variant-numeric:tabular-nums; color:var(--text-muted);}
  .draft-btn-wrap{text-align:right;}
  .draft-btn-wrap .reason{display:block; font-size:10.5px; color:var(--danger); margin-top:2px;}
  .empty-note{padding:26px; text-align:center; color:var(--text-muted); font-size:13px;}

  .team-select-row{display:flex; gap:8px; align-items:center; margin-bottom:12px;}
  .team-select-row select{flex:1;}
  .owner-block{background:var(--bg-panel-2); border:1px solid var(--border); border-radius:var(--radius-sm); padding:8px 10px; margin-bottom:12px; font-size:12.5px; display:flex; align-items:center; gap:8px; flex-wrap:wrap;}
  .chip-owned{color:var(--success); font-weight:700;}
  .counts-row{display:flex; gap:8px; margin-bottom:12px; flex-wrap:wrap;}
  .count-chip{flex:1; min-width:90px; background:var(--bg-panel-2); border:1px solid var(--border); border-radius:var(--radius-sm); padding:8px 10px; text-align:center;}
  .count-chip .n{font-size:17px; font-weight:800;}
  .count-chip.full .n{color:var(--success);}
  .count-chip .l{font-size:10.5px; color:var(--text-muted); text-transform:uppercase;}

  .cap-block{background:var(--bg-panel-2); border:1px solid var(--border); border-radius:var(--radius-sm); padding:12px; margin-bottom:12px;}
  .cap-block .row{display:flex; justify-content:space-between; font-size:12.5px; margin-bottom:6px;}
  .cap-block .row b{color:var(--text); font-variant-numeric:tabular-nums;}
  .cap-bar-track{height:10px; border-radius:99px; background:var(--bg-elevated); overflow:hidden; border:1px solid var(--border); margin:8px 0;}
  .cap-bar-fill{height:100%; transition:width 0.3s;}

  .roster-table{width:100%; border-collapse:collapse; font-size:12.5px;}
  .roster-table th{text-align:left; color:var(--text-dim); font-size:10.5px; text-transform:uppercase; padding:6px 8px; border-bottom:1px solid var(--border);}
  .roster-table td{padding:7px 8px; border-bottom:1px solid var(--border);}
  .roster-table tr:last-child td{border-bottom:none;}
  .roster-empty{padding:20px; text-align:center; color:var(--text-dim); font-size:12.5px;}

  .global-scroll{overflow:auto; border:1px solid var(--border); border-radius:var(--radius-sm); max-height:70vh;}
  table.global-grid{border-collapse:collapse; width:100%; font-size:12px;}
  table.global-grid th, table.global-grid td{border:1px solid var(--border); padding:6px 8px; white-space:nowrap;}
  table.global-grid th{position:sticky; top:0; background:var(--bg-panel-2); z-index:2; color:var(--text-muted); font-size:11px;}
  table.global-grid td.round-cell{position:sticky; left:0; background:var(--bg-panel-2); font-weight:700; color:var(--text-muted); z-index:1;}
  table.global-grid td.filled{background:var(--bg-panel-2);}
  table.global-grid td.filled .gname{font-weight:700;}
  table.global-grid td.empty-cell{color:var(--text-dim);}

  .settings-grid{display:grid; grid-template-columns:repeat(auto-fit, minmax(220px,1fr)); gap:14px;}
  .field{display:flex; flex-direction:column; gap:5px;}
  .field label{font-size:12px; color:var(--text-muted); font-weight:600;}
  .field .hint{font-size:11px; color:var(--text-dim);}
  .teams-name-grid{display:grid; grid-template-columns:repeat(auto-fit, minmax(180px,1fr)); gap:10px; margin-top:8px;}
  .checkline{display:flex; align-items:center; gap:8px; font-size:13px;}

  textarea#csvTextarea{width:100%; min-height:160px; resize:vertical; font-family:ui-monospace, monospace; font-size:12.5px;}

  .modal-overlay{position:fixed; inset:0; background:rgba(4,7,12,0.72); backdrop-filter:blur(3px); display:flex; align-items:center; justify-content:center; z-index:100; padding:20px;}
  .modal-box{background:var(--bg-panel); border:1px solid var(--border); border-radius:var(--radius); padding:22px; max-width:440px; width:100%;}
  .modal-box h3{margin-bottom:10px;}
  .modal-actions{display:flex; gap:10px; justify-content:flex-end; margin-top:16px;}

  .toast-container{position:fixed; bottom:16px; right:16px; z-index:200; display:flex; flex-direction:column; gap:8px; max-width:320px;}
  .toast{background:var(--bg-elevated); border:1px solid var(--accent); border-radius:var(--radius-sm); padding:10px 14px; font-size:12.5px; box-shadow:0 6px 18px rgba(0,0,0,0.35); animation:slidein 0.25s ease-out;}
  @keyframes slidein{from{transform:translateX(20px); opacity:0;} to{transform:translateX(0); opacity:1;}}

  footer.app-footer{padding:24px 20px; text-align:center; color:var(--text-dim); font-size:11.5px;}

  ::-webkit-scrollbar{width:9px; height:9px;}
  ::-webkit-scrollbar-thumb{background:var(--border-light); border-radius:99px;}
  ::-webkit-scrollbar-track{background:transparent;}

/* ===== Panneau de suggestions (commissaire seulement) ===== */
.suggest-panel{border-color:var(--accent); box-shadow:0 0 0 3px rgba(59,130,246,0.07);}
.suggest-head{display:flex; align-items:center; justify-content:space-between; gap:12px; flex-wrap:wrap;}
.suggest-head h3{margin:0; display:flex; align-items:center; gap:8px;}
.suggest-ctx{margin:10px 0 4px 0;}
.suggest-stale{background:rgba(245,166,35,0.12); border:1px solid var(--warning); color:var(--warning);
  border-radius:var(--radius-sm); padding:7px 11px; font-size:12.5px; margin:10px 0;}
.suggest-list{display:flex; flex-direction:column; gap:8px; margin-top:12px;}

.sg-row{display:grid; grid-template-columns:34px 1fr auto; gap:12px; align-items:start;
  background:var(--bg-panel-2); border:1px solid var(--border); border-radius:var(--radius); padding:11px 13px;}
.sg-row.sg-forced{border-color:var(--warning);}
.sg-rank{font-weight:800; font-size:17px; color:var(--text-dim); text-align:center; line-height:1.5;}
.sg-title{display:flex; align-items:center; gap:8px; flex-wrap:wrap;}
.sg-reasons{margin:7px 0 0 0; padding-left:17px; color:var(--text-muted); font-size:12.5px;}
.sg-reasons li{margin:2px 0;}

/* Cinq axes désormais : l'écart se resserre pour qu'une ligne en contienne
   le plus possible avant de passer à la suivante. */
.sg-bars{display:flex; gap:10px 13px; margin-top:9px; flex-wrap:wrap;}
.sg-bar{display:flex; align-items:center; gap:6px;}
.sg-bar-label{font-size:10.5px; text-transform:uppercase; letter-spacing:0.05em; color:var(--text-dim); min-width:48px;}
.sg-bar-track{width:66px; height:5px; background:var(--bg-elevated); border-radius:999px; overflow:hidden;}
.sg-bar-fill{display:block; height:100%; background:var(--accent); border-radius:999px;}

/* Commentaire du modèle : visuellement distinct du calcul déterministe
   au-dessus duquel il s'écrit — c'est un avis, pas un résultat. */
.coach-note{margin:12px 0 2px 0; padding:11px 13px; border:1px dashed var(--accent-2);
  border-radius:var(--radius); background:rgba(96,165,250,0.06);}
.coach-note .suggest-head{margin-bottom:6px;}
.coach-text{margin:6px 0 0 0; font-size:13.5px; line-height:1.55; white-space:pre-wrap;}

/* Le total projeté de l'alignement fini : le seul chiffre qui répond à
   « quel choix me donne la meilleure équipe ». Il prend la place d'honneur. */
.plan-band{margin:10px 0 4px 0; padding:8px 12px; border-radius:var(--radius-sm);
  background:var(--bg-elevated); display:flex; align-items:baseline; gap:6px; flex-wrap:wrap;}
.plan-total{font-size:19px; font-weight:800; color:var(--accent-2); font-variant-numeric:tabular-nums;}
.sg-proj{font-variant-numeric:tabular-nums; font-weight:800; font-size:17px; color:var(--accent-2);
  line-height:1.1; text-align:right;}
.sg-proj-u{font-size:10px; font-weight:600; color:var(--text-dim); margin-left:3px;}
.sg-delta{font-variant-numeric:tabular-nums; font-size:11.5px; color:var(--text-dim); text-align:right;}

.sg-act{display:flex; flex-direction:column; align-items:flex-end; gap:7px;}
.sg-score{font-variant-numeric:tabular-nums; font-weight:800; font-size:15px; color:var(--accent-2);}

@media (max-width:720px){
  .sg-row{grid-template-columns:26px 1fr;}
  .sg-act{grid-column:2; flex-direction:row; align-items:center; justify-content:flex-start;}
}

/* ==========================================================================
   CLASSEMENT DE SAISON — l'onglet qui fait vivre le pool le reste de l'année.
   ========================================================================== */
.season-layout{display:grid; grid-template-columns:minmax(0,1fr) 320px; gap:16px; align-items:start;}
@media (max-width:1100px){ .season-layout{grid-template-columns:minmax(0,1fr);} }

/* Bandeau d'état : quand a-t-on regardé, et qu'est-ce qui joue en ce moment. */
.live-bar{display:flex; align-items:center; gap:14px; flex-wrap:wrap;
  background:var(--bg-panel-2); border:1px solid var(--border); border-radius:var(--radius-sm);
  padding:10px 14px; margin-bottom:14px;}
.live-bar .live-when{font-size:12.5px; color:var(--text-muted); font-variant-numeric:tabular-nums;}
.live-bar .live-when b{color:var(--text);}
.live-bar .spacer{flex:1;}
.live-pulse{display:inline-flex; align-items:center; gap:7px; font-size:12.5px; font-weight:700;}
.live-pulse .dot{width:8px; height:8px; border-radius:50%; background:var(--text-dim);}
.live-pulse.on .dot{background:var(--danger); animation:pulse 1.6s ease-in-out infinite;}
.live-pulse.idle .dot{background:var(--success);}
@keyframes pulse{0%,100%{opacity:1; transform:scale(1);} 50%{opacity:.35; transform:scale(1.35);}}
.live-warn{color:var(--warning); font-size:12.5px;}

/* Le tableau du classement. */
table.standings{width:100%; border-collapse:collapse; font-size:13.5px;}
table.standings th{text-align:left; color:var(--text-dim); font-size:10.5px; text-transform:uppercase;
  letter-spacing:.04em; padding:7px 8px; border-bottom:1px solid var(--border); white-space:nowrap;}
table.standings td{padding:9px 8px; border-bottom:1px solid var(--border); vertical-align:middle;}
table.standings tbody tr{cursor:pointer;}
table.standings tbody tr:hover{background:var(--bg-panel-2);}
table.standings tr.open-row{background:var(--bg-panel-2);}
table.standings tr.mine-row td:first-child{box-shadow:inset 3px 0 0 var(--accent);}
.st-rank{font-weight:800; font-size:17px; font-variant-numeric:tabular-nums; width:52px;
  color:var(--text-muted); text-align:right; padding-right:12px !important;}
.st-rank.top1{color:#fbbf24;} .st-rank.top2{color:#cbd5e1;} .st-rank.top3{color:#d08a5a;}
.st-team{font-weight:700;}
.st-owner{color:var(--text-dim); font-size:11.5px; font-weight:400;}
.st-pts{font-variant-numeric:tabular-nums; font-weight:800; font-size:16px; color:var(--accent-2); text-align:right;}
.st-num{font-variant-numeric:tabular-nums; text-align:right; color:var(--text-muted); white-space:nowrap;}
.st-up{color:var(--success);} .st-down{color:var(--danger);} .st-flat{color:var(--text-dim);}
.st-today{font-variant-numeric:tabular-nums; text-align:right; font-weight:700;}
.st-today.hot{color:var(--success);}

/* Détail d'une équipe, déplié sous sa ligne. */
.st-detail td{background:var(--bg); padding:0 !important;}
.st-detail-inner{padding:10px 14px 14px 64px;}
table.roster-live{width:100%; border-collapse:collapse; font-size:12.5px;}
table.roster-live th{text-align:right; color:var(--text-dim); font-size:10px; text-transform:uppercase;
  padding:5px 7px; border-bottom:1px solid var(--border); white-space:nowrap;}
table.roster-live th:first-child, table.roster-live td:first-child{text-align:left;}
table.roster-live td{padding:5px 7px; border-bottom:1px solid var(--border); text-align:right;
  font-variant-numeric:tabular-nums; white-space:nowrap;}
table.roster-live tr:last-child td{border-bottom:none;}
table.roster-live td.pl-name{text-align:left; color:var(--text);}
table.roster-live tr.no-link td{opacity:.55;}
table.roster-live td.pl-pts{font-weight:800; color:var(--accent-2);}
table.roster-live tr.played-today td.pl-name::after{content:'● ce soir'; color:var(--danger);
  font-size:9.5px; font-weight:700; margin-left:7px; vertical-align:middle;}

/* Courbe de progression : un SVG en ligne, aucune dépendance. */
.spark{display:block; width:86px; height:22px;}
.spark path{fill:none; stroke:var(--accent-2); stroke-width:1.6; stroke-linejoin:round; stroke-linecap:round;}
.spark .spark-zone{fill:var(--accent); opacity:.10; stroke:none;}

/* Fil d'actualité. */
.feed{max-height:74vh; overflow:auto;}
.feed-item{display:flex; gap:9px; align-items:baseline; padding:7px 0; border-bottom:1px solid var(--border); font-size:12.5px;}
.feed-item:last-child{border-bottom:none;}
.feed-when{color:var(--text-dim); font-size:10.5px; white-space:nowrap; min-width:56px; font-variant-numeric:tabular-nums;}
.feed-body{flex:1; min-width:0;}
.feed-body b{color:var(--text);}
.feed-team{color:var(--text-dim); font-size:11px;}
.feed-pts{font-weight:800; font-variant-numeric:tabular-nums; white-space:nowrap;}
.feed-pts.plus{color:var(--success);} .feed-pts.minus{color:var(--danger);}

/* Réglage du barème. */
.scoring-grid{display:grid; grid-template-columns:repeat(auto-fill, minmax(150px, 1fr)); gap:10px; margin-top:10px;}
.scoring-grid .field label{display:block; font-size:11px; color:var(--text-muted); margin-bottom:4px;}
.scoring-grid .field input{width:100%;}
.scoring-grid .field.zero input{opacity:.55;}
.link-report{max-height:220px; overflow:auto; background:var(--bg); border:1px solid var(--border);
  border-radius:var(--radius-sm); padding:10px 12px; margin-top:10px; font-size:12px;}
.link-report div{padding:2px 0; color:var(--text-muted);}
.link-report .bad{color:var(--warning);}

/* --- Mouvements d'alignement -------------------------------------------- */
.move-leg{display:flex; gap:8px; align-items:center; margin-top:8px; flex-wrap:wrap;}
.move-leg select{flex:1; min-width:150px;}
.move-arrow{color:var(--text-dim); font-weight:700;}
.icon-spacer{display:inline-block; width:28px;}
.move-note{background:var(--bg-panel-2); border-left:3px solid var(--accent); border-radius:var(--radius-sm);
  padding:9px 12px; font-size:12.5px; color:var(--text-muted); margin:10px 0;}
.move-preview{margin-top:10px; padding:9px 12px; background:var(--bg); border:1px solid var(--border);
  border-radius:var(--radius-sm); font-size:12.5px;}
.move-preview-line{padding:2px 0; color:var(--text-muted);}
.move-preview-line b{color:var(--text);}
.move-erreur{margin-top:10px; padding:9px 12px; border-radius:var(--radius-sm); font-size:12.5px;
  background:rgba(239,68,68,0.10); border:1px solid rgba(239,68,68,0.35); color:#fca5a5;}
.move-hist{border-top:1px solid var(--border); padding:8px 0; font-size:12.5px;}
.move-hist-when{color:var(--text-dim); font-size:11px; margin-bottom:3px;}
.move-hist-leg{color:var(--text-muted);}
.move-hist-leg b{color:var(--text);}
.move-hist .btn{margin-top:6px;}
.anciens-titre{margin:14px 0 4px 0; font-size:10.5px; text-transform:uppercase; letter-spacing:.04em;
  color:var(--text-dim);}
table.roster-live.anciens td{opacity:.72;}
