/* Chrono de blindes — styles. Thème sombre par défaut, clair en option (html[data-theme]). Même famille que la page Équité. */

:root {
  --fond: #0D0E11; --panneau: #15171C; --sureleve: #1C1F26; --survol: #1F232B;
  --filet: #23262E; --filet2: #1F2229; --contour: #2C313B; --champ: #0F1115; --modale: #121418;
  --texte: #ECEEF2; --texte2: #A3A9B5; --texte3: #7E8593; --texte4: #6F7684;
  --accent: #F4B740; --accent-h: #FFC657; --accent-txt: #1A1306; --accent-doux: #FFD27A; --accent-texte: #F4B740;
  --accent-fond: #2A2416; --accent-anneau: rgba(244, 183, 64, .18);
  --succes: #6FD9A3; --erreur: #FF8A93;
  --voile: rgba(6, 7, 9, .74); --ombre: 0 30px 80px rgba(0, 0, 0, .55);
  color-scheme: dark;
}
html[data-theme="light"] {
  --fond: #F7F7F5; --panneau: #FFFFFF; --sureleve: #F2F2EF; --survol: #E9E9E5;
  --filet: #E4E4E0; --filet2: #ECECE8; --contour: #D3D3CD; --champ: #FFFFFF; --modale: #FBFBFA;
  --texte: #17181C; --texte2: #4A4F59; --texte3: #646975; --texte4: #767B86;
  --accent: #F4B740; --accent-h: #E9A92C; --accent-txt: #1A1306; --accent-doux: #8A5A00; --accent-texte: #8A5A00;
  --accent-fond: #FBEFD3; --accent-anneau: rgba(244, 183, 64, .35);
  --succes: #1F7A4D; --erreur: #C22B3A;
  --voile: rgba(30, 32, 38, .45); --ombre: 0 24px 60px rgba(20, 22, 28, .22);
  color-scheme: light;
}

* { box-sizing: border-box; }
html, body { margin: 0; background: var(--fond); color: var(--texte); }
body { font: 400 14px/1.4 'IBM Plex Sans', system-ui, -apple-system, 'Segoe UI', sans-serif; -webkit-font-smoothing: antialiased; }
button, input { font-family: inherit; }
a { color: var(--accent-texte); }
.num { font-family: 'IBM Plex Mono', ui-monospace, 'Cascadia Mono', Consolas, monospace; font-variant-numeric: tabular-nums; }
.lbl { font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: var(--texte3); font-weight: 600; }
.discret { color: var(--texte3); }
[hidden] { display: none !important; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.seul-mobile { display: none !important; }
.pousse { margin-left: auto; }
.actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }

/* ---------- Boutons, champs, interrupteurs ---------- */
.btn { height: 32px; padding: 0 12px; border-radius: 8px; border: 1px solid var(--contour); background: var(--sureleve); color: var(--texte); font: 500 13px 'IBM Plex Sans', sans-serif; display: inline-flex; align-items: center; justify-content: center; gap: 6px; cursor: pointer; text-decoration: none; white-space: nowrap; flex: none; }
.btn:hover { background: var(--survol); }
.btn:disabled { opacity: .45; cursor: not-allowed; }
.btn:focus-visible, .seg button:focus-visible, .sw:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.btn-ghost { background: transparent; border-color: transparent; color: var(--texte2); }
.btn-ghost:hover { background: var(--survol); color: var(--texte); }
.btn-sm { height: 28px; padding: 0 8px; font-size: 12px; gap: 5px; }
.btn-icon { width: 32px; padding: 0; }
.btn-sm.btn-icon { width: 28px; }
.btn-primary { background: var(--accent); border-color: var(--accent); color: var(--accent-txt); font-weight: 600; }
.btn-primary:hover { background: var(--accent-h); color: var(--accent-txt); }
.btn-grand { height: 44px; padding: 0 18px; font-size: 14px; gap: 10px; }
.btn-danger { color: var(--erreur); }
.kbd { font: 500 11px 'IBM Plex Mono', monospace; padding: 1px 5px; border-radius: 4px; border: 1px solid var(--contour); color: var(--texte2); background: var(--champ); line-height: 16px; white-space: nowrap; }
.btn-primary .kbd { border-color: rgba(26, 19, 6, .35); color: var(--accent-txt); background: rgba(255, 255, 255, .3); }
.field { height: 40px; width: 100%; min-width: 0; background: var(--champ); border: 1px solid var(--contour); border-radius: 8px; padding: 0 12px; color: var(--texte); font: 500 14px 'IBM Plex Mono', monospace; }
.field::placeholder { color: var(--texte4); }
.field:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-anneau); }
.field[aria-invalid="true"] { border-color: var(--erreur); }
.seg { display: inline-flex; padding: 3px; background: var(--champ); border: 1px solid var(--contour); border-radius: 9px; gap: 2px; flex-wrap: wrap; }
.seg button { height: 28px; padding: 0 12px; border: 0; border-radius: 6px; background: transparent; color: var(--texte2); font: 500 13px 'IBM Plex Sans', sans-serif; cursor: pointer; }
.seg button.on { background: var(--survol); color: var(--texte); box-shadow: inset 0 0 0 1px var(--contour); }
.sw { width: 34px; height: 20px; border-radius: 10px; border: 0; background: var(--contour); position: relative; cursor: pointer; padding: 0; flex: none; }
.sw .knob { position: absolute; top: 3px; left: 3px; width: 14px; height: 14px; border-radius: 7px; background: var(--texte3); transition: left .15s; }
.sw[aria-checked="true"] { background: var(--accent); }
.sw[aria-checked="true"] .knob { left: 17px; background: var(--accent-txt); }
.panel { background: var(--panneau); border: 1px solid var(--filet); border-radius: 12px; }
.erreur-txt { font-size: 12px; color: var(--erreur); }
.note { padding: 12px 14px; border: 1px solid var(--filet); border-radius: 10px; background: var(--panneau); font-size: 12.5px; line-height: 1.5; color: var(--texte2); }

/* ---------- Page ---------- */
.tete { max-width: 1240px; margin: 0 auto; padding: 18px 32px 6px; }
.tete-haut { display: flex; align-items: center; gap: 8px; }
.marque { display: flex; align-items: center; gap: 10px; margin: 0; font-size: 20px; font-weight: 700; letter-spacing: -.02em; }
.intro { margin: 6px 0 0; color: var(--texte2); font-size: 13.5px; }
main.page { padding: 10px 32px 40px; }
.contenu { max-width: 1240px; margin: 0 auto; display: flex; flex-direction: column; gap: 16px; }
.pied { margin: 4px 0 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 24px; font-size: 12.5px; color: var(--texte3); text-align: center; }

/* ---------- Menus, fenêtres, notifications ---------- */
.menu { position: absolute; z-index: 60; min-width: 220px; max-height: 360px; overflow: auto; background: var(--modale); border: 1px solid var(--contour); border-radius: 10px; box-shadow: var(--ombre); padding: 6px; display: flex; flex-direction: column; gap: 1px; }
.menu button { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 32px; padding: 6px 10px; border: 0; border-radius: 6px; background: transparent; color: var(--texte); font: 500 13px 'IBM Plex Sans', sans-serif; cursor: pointer; text-align: left; }
.menu button:hover, .menu button:focus-visible { background: var(--survol); outline: none; }
.menu .titre { padding: 8px 10px 4px; }
.menu .meta { margin-left: auto; font: 500 11px 'IBM Plex Mono', monospace; color: var(--texte4); }
.voile { position: fixed; inset: 0; z-index: 40; background: var(--voile); backdrop-filter: blur(2px); display: flex; align-items: center; justify-content: center; padding: 24px; }
.modale { background: var(--modale); border: 1px solid var(--contour); border-radius: 16px; box-shadow: var(--ombre); display: flex; flex-direction: column; max-width: 100%; max-height: 100%; min-height: 0; }
.modale > header { display: flex; align-items: center; gap: 12px; padding: 14px 16px 14px 24px; border-bottom: 1px solid var(--filet); }
.modale > header h2 { margin: 0; font-size: 17px; font-weight: 600; letter-spacing: -.01em; }
.modale > footer { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; padding: 14px 24px; border-top: 1px solid var(--filet); }
.modale .corps { flex: 1; min-height: 0; overflow: auto; }
.toast { position: fixed; left: 50%; top: 20px; transform: translateX(-50%); z-index: 80; background: var(--texte); color: var(--fond); padding: 10px 16px; border-radius: 10px; font-size: 13px; font-weight: 500; box-shadow: var(--ombre); opacity: 0; pointer-events: none; transition: opacity .2s; max-width: calc(100vw - 32px); }
.toast.vu { opacity: 1; }
/* Seul un message visible reçoit les clics (sinon, invisible, il bloquerait les boutons en dessous). En haut, loin des boutons du chrono. */
.toast.vu.avec-action { pointer-events: auto; }
.toast.avec-action { display: flex; align-items: center; gap: 14px; padding: 8px 8px 8px 16px; }
.toast button { height: 32px; padding: 0 12px; border: 0; border-radius: 7px; background: var(--accent); color: var(--accent-txt); font: 600 13px 'IBM Plex Sans', sans-serif; cursor: pointer; }

.sel { height: 44px; border-radius: 8px; border: 1px solid var(--contour); background: var(--champ); color: var(--texte); font: 500 14px 'IBM Plex Sans', sans-serif; padding: 0 10px; max-width: 100%; }
.sel:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* ---------- Votre tournoi : joueurs, durée, jetons ---------- */
.ch-tournoi { padding: 18px 22px; display: flex; flex-direction: column; gap: 16px; }
.ch-t-haut h2 { margin: 0; font-size: 16px; font-weight: 600; }
.ch-t-haut p { margin: 4px 0 0; font-size: 13px; color: var(--texte3); }
.ch-t-reglages { display: flex; flex-wrap: wrap; gap: 14px 28px; align-items: flex-end; }
.ch-t-champ { display: flex; flex-direction: column; gap: 6px; }
.ch-pas { display: inline-flex; align-items: center; gap: 2px; padding: 3px; border: 1px solid var(--contour); border-radius: 10px; background: var(--champ); }
.ch-pas .btn { width: 38px; height: 36px; padding: 0; border: 0; background: transparent; font-size: 20px; font-weight: 500; }
.ch-pas .btn:hover { background: var(--survol); }
.ch-pas output { min-width: 76px; text-align: center; font-size: 17px; font-weight: 600; }
.ch-t-resultat { display: flex; flex-wrap: wrap; gap: 10px; }
.ch-t-chiffre { flex: 1 1 140px; display: flex; flex-direction: column; gap: 4px; padding: 12px 16px; border-radius: 10px; border: 1px solid var(--filet); background: var(--champ); }
.ch-t-chiffre .num { font-size: 24px; font-weight: 600; letter-spacing: -.02em; }
.ch-t-ecart { margin: 0; font-size: 13px; color: var(--accent-texte); }
.ch-jetons { display: flex; flex-direction: column; gap: 10px; }
.ch-jetons-liste { display: flex; flex-wrap: wrap; gap: 10px 20px; }
.ch-jeton { display: inline-flex; align-items: center; gap: 8px; font-size: 16px; font-weight: 600; }
.ch-jeton-rond { width: 48px; height: 48px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; border: 3px dashed var(--accent); background: var(--sureleve); font-size: 12.5px; font-weight: 600; }
.ch-jetons p { margin: 0; font-size: 13px; color: var(--texte2); }
.ch-t-court { flex-direction: row; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; padding: 12px 18px; }
.ch-t-court p { margin: 0; font-size: 13.5px; color: var(--texte2); }
.ch-t-court strong { color: var(--texte); font-weight: 600; }

/* ---------- Joueurs : inscriptions, éliminations ---------- */
.field-texte { font-family: 'IBM Plex Sans', sans-serif; }
.ch-joueurs { padding: 18px 22px; display: flex; flex-direction: column; gap: 14px; }
.ch-j-tete { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px 24px; }
.ch-j-tete h2 { margin: 0; font-size: 16px; font-weight: 600; }
.ch-j-tete p { margin: 4px 0 0; font-size: 13px; color: var(--texte3); }
.ch-j-ajout { display: flex; gap: 8px; max-width: 460px; }
.ch-j-ajout .btn { height: 40px; }
.ch-j-ferme { margin: 0; font-size: 13px; color: var(--accent-texte); }
.ch-j-tapis { max-width: 240px; }
.ch-j-liste { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 4px 12px; }
.ch-j-ligne { display: flex; align-items: center; gap: 8px; min-height: 42px; padding: 4px 6px 4px 12px; border-radius: 8px; border: 1px solid var(--filet); background: var(--champ); }
.ch-j-nom { flex: 1; min-width: 0; font-size: 14.5px; font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ch-j-badge { flex: none; padding: 1px 8px; border-radius: 999px; border: 1px solid var(--contour); font-size: 11.5px; font-weight: 600; color: var(--accent-texte); }
.ch-j-badge.or { background: var(--accent); border-color: var(--accent); color: var(--accent-txt); }
.ch-j-sortis { display: flex; flex-direction: column; gap: 8px; }
.ch-j-ligne.sorti { background: transparent; color: var(--texte2); }
.ch-j-place { flex: none; width: 34px; font-weight: 600; color: var(--texte); }
.ch-j-quand { flex: none; font-size: 12px; color: var(--texte3); }
.ch-elim { margin: 0; padding: 18px 24px; font-size: 14px; line-height: 1.6; color: var(--texte2); }
.ch-elim strong { color: var(--texte); }
.ch-stats { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 48px; padding-top: 14px; border-top: 1px solid var(--filet2); text-align: center; }
.ch-stats .num { font-size: clamp(16px, 2.2vw, 24px); font-weight: 600; }
.ch-vainqueur { display: flex; flex-direction: column; align-items: center; gap: 4px; padding-top: 14px; border-top: 1px solid var(--filet2); text-align: center; }
.ch-vainqueur .ch-gros { color: var(--accent-texte); }
body.ch-plein .ch-stats .num { font-size: clamp(16px, min(3.2vw, 4.5vh), 42px); }
.ch-ecran > * { flex-shrink: 0; }
body.ch-plein .ch-avec-stats .ch-temps { font-size: min(25vw, 30vh); }
body.ch-plein .ch-avec-stats .ch-gros { font-size: min(9vw, 10vh); }

/* ---------- Chrono ---------- */
.ch-ecran { padding: 18px 24px 22px; display: flex; flex-direction: column; gap: 18px; }
.ch-haut { display: flex; align-items: center; gap: 8px 10px; flex-wrap: wrap; }
.ch-niveau { font-size: 18px; font-weight: 600; letter-spacing: -.01em; margin-right: 4px; }
.ch-etat { padding: 2px 10px; border-radius: 999px; border: 1px solid var(--contour); background: var(--sureleve); color: var(--texte2); font-size: 12px; font-weight: 600; }
.ch-etat.marche { color: var(--succes); }
.ch-etat.arret { color: var(--accent-texte); }
.ch-temps { font-size: clamp(76px, 15vw, 220px); font-weight: 600; line-height: 1; letter-spacing: -.04em; text-align: center; }
.ch-fin-proche .ch-temps { color: var(--accent-texte); }
.ch-fini .ch-temps { color: var(--texte3); }
.ch-arret .ch-temps { animation: ch-clignote 1.6s steps(2, jump-none) infinite; }
@keyframes ch-clignote { 50% { opacity: .35; } }
.ch-piste { width: 100%; max-width: 860px; height: 8px; margin: 0 auto; border-radius: 4px; background: var(--filet); overflow: hidden; }
.ch-piste > div { height: 100%; border-radius: 4px; background: var(--accent); transition: width .3s linear; }
.ch-blindes, .ch-suite { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 64px; text-align: center; }
.ch-bloc { display: flex; flex-direction: column; align-items: center; gap: 4px; min-width: 0; }
.ch-gros { font-size: clamp(32px, 5.6vw, 76px); font-weight: 600; letter-spacing: -.02em; line-height: 1.1; }
.ch-en-pause .ch-gros { color: var(--accent-texte); }
.ch-suite { padding-top: 14px; border-top: 1px solid var(--filet2); }
.ch-suite .num { font-size: clamp(16px, 2.2vw, 24px); font-weight: 500; color: var(--texte2); }
.ch-son-bloque { margin: 0; text-align: center; font-size: 13px; color: var(--accent-texte); }
.ch-commandes { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.ch-commandes .btn-grand { height: 52px; font-size: 15px; }
.ch-ajuster { display: flex; gap: 2px; }
.ch-principal { min-width: 210px; }
.ch-flash { animation: ch-flash 1.6s ease-out; }
@keyframes ch-flash { from { box-shadow: inset 0 0 0 3px var(--accent); } to { box-shadow: inset 0 0 0 3px transparent; } }
/* Plein écran : le chrono recouvre toute la page (avec ou sans le plein écran du navigateur). */
body.ch-plein { overflow: hidden; }
body.ch-plein .ch-ecran { position: fixed; inset: 0; z-index: 35; border: 0; border-radius: 0; background: var(--fond); justify-content: space-evenly; gap: 2vh; padding: max(14px, 3vh) max(16px, 4vw); overflow: auto; }
body.ch-plein .ch-niveau { font-size: clamp(18px, min(3.4vw, 5vh), 44px); }
body.ch-plein .ch-temps { font-size: min(25vw, 36vh); }
body.ch-plein .ch-gros { font-size: min(9vw, 12vh); }
body.ch-plein .ch-suite .num { font-size: clamp(16px, min(3.2vw, 4.5vh), 42px); }
body.ch-plein .ch-piste { max-width: 72vw; height: max(8px, 1.2vh); }
body.ch-plein .ch-commandes { opacity: .55; transition: opacity .2s; }
body.ch-plein .ch-commandes:hover, body.ch-plein .ch-commandes:focus-within { opacity: 1; }
@media (hover: none) { body.ch-plein .ch-commandes { opacity: .8; } }
.ch-struct-tete { display: flex; flex-wrap: wrap; gap: 12px 16px; align-items: center; justify-content: space-between; padding: 14px 20px; border-bottom: 1px solid var(--filet); }
.ch-struct-tete h2 { margin: 0; font-size: 15px; font-weight: 600; }
.ch-struct-tete p { margin: 4px 0 0; max-width: 660px; font-size: 12.5px; color: var(--texte3); }
.ch-antes { display: inline-flex; align-items: center; gap: 8px; margin-right: 6px; font-size: 13px; color: var(--texte2); }
.ch-liste { display: flex; flex-direction: column; gap: 1px; padding: 6px 8px 8px; }
.ch-ligne { display: grid; grid-template-columns: 64px minmax(0, 1.5fr) minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1fr); gap: 12px; align-items: center; width: 100%; min-height: 34px; padding: 0 12px; border: 0; border-radius: 7px; background: transparent; color: var(--texte); font: 500 13px 'IBM Plex Sans', sans-serif; text-align: left; }
button.ch-ligne { cursor: pointer; }
button.ch-ligne:hover { background: var(--survol); }
button.ch-ligne:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
.ch-ligne.tete { min-height: 28px; font-size: 11px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--texte3); }
.ch-ligne.fait { color: var(--texte4); }
.ch-ligne.pause { color: var(--texte2); }
.ch-ligne.pause .ch-l-pause { grid-column: span 2; font-weight: 600; }
.ch-ligne.cours { background: var(--accent-fond); color: var(--accent-doux); box-shadow: inset 2px 0 0 var(--accent); font-weight: 600; }
.ch-debut { color: var(--texte3); }
.ch-repere-fin { display: flex; align-items: center; gap: 10px; margin: 6px 12px; font-size: 11.5px; font-weight: 600; color: var(--accent-texte); }
.ch-repere-fin::before, .ch-repere-fin::after { content: ''; flex: 1; border-top: 1px dashed var(--accent); opacity: .6; }
/* Éditeur de la structure perso */
.ch-modale { width: 720px; height: min(780px, 100%); }
.ch-modale > footer .erreur-txt { flex-basis: 100%; }
.ch-modale > footer .erreur-txt:empty { display: none; }
.ch-editeur { padding: 16px 24px; display: flex; flex-direction: column; gap: 14px; }
.ch-ed-grille { display: flex; flex-direction: column; gap: 6px; }
.ch-ed-ligne { display: grid; grid-template-columns: 30px repeat(4, minmax(0, 1fr)) 28px; gap: 8px; align-items: center; }
.ch-ed-ligne.tete { font-size: 11px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--texte3); }
.ch-ed-ligne .field { height: 36px; padding: 0 10px; text-align: right; }
.ch-ed-pause { grid-column: span 3; display: flex; align-items: center; height: 36px; padding: 0 12px; border-radius: 8px; border: 1px dashed var(--contour); background: var(--sureleve); color: var(--texte2); font-weight: 600; }

/* ---------- Téléphone ---------- */
@media (max-width: 760px) {
  .cache-mobile, .kbd-bureau { display: none !important; }
  .seul-mobile { display: inline-flex !important; }
  .tete { padding: 12px 16px 2px; }
  .marque { font-size: 18px; }
  main.page { padding: 10px 16px 32px; }
  .toast { top: calc(12px + env(safe-area-inset-top, 0px)); left: 16px; right: 16px; transform: none; max-width: none; }
  .toast.avec-action { justify-content: space-between; }
  .voile { padding: 0; align-items: stretch; }
  .modale { border-radius: 0; width: 100% !important; height: 100% !important; border: 0; }
  .modale > header { padding: 10px 10px 10px 16px; }
  .modale > footer { padding: 10px 16px 16px; }
  .modale > footer .btn { height: 44px; }
  .ch-tournoi { padding: 14px; gap: 14px; }
  .ch-t-reglages { gap: 12px 16px; }
  .ch-t-reglages label.ch-t-champ { flex-basis: 100%; }
  .ch-t-reglages .sel { width: 100%; }
  .ch-pas .btn { width: 34px; }
  .ch-pas output { min-width: 54px; font-size: 16px; }
  .ch-t-chiffre { flex-basis: 80px; padding: 10px; }
  .ch-t-chiffre .num { font-size: 18px; }
  .ch-jetons-liste { gap: 10px 14px; }
  .ch-joueurs { padding: 14px; }
  .ch-j-tete label.ch-t-champ, .ch-j-tete .sel { width: 100%; }
  .ch-j-ajout { max-width: none; }
  .ch-j-liste { grid-template-columns: 1fr; }
  .ch-j-quand { display: none; }
  .ch-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 16px; }
  .ch-t-actions .btn { flex: 1 1 auto; height: 44px; }
  .ch-t-actions .pousse { display: none; }
  .ch-ecran { padding: 14px 14px 16px; gap: 14px; }
  .ch-temps { font-size: 24vw; }
  .ch-haut { flex-wrap: nowrap; gap: 6px; }
  .ch-niveau { font-size: 16px; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .ch-etat { flex: none; }
  .ch-blindes, .ch-suite { gap: 10px 32px; }
  .ch-commandes { display: grid; grid-template-columns: 56px minmax(0, 1fr) minmax(0, 1fr) 56px; gap: 8px; }
  .ch-commandes .lib, .ch-commandes .kbd { display: none; }
  .ch-commandes [data-action="precedent"] { grid-area: 1 / 1; padding: 0; }
  .ch-commandes .ch-principal { grid-area: 1 / 2 / 2 / 4; min-width: 0; }
  .ch-commandes [data-action="suivant"] { grid-area: 1 / 4; padding: 0; }
  .ch-ajuster { grid-area: 2 / 1 / 3 / 5; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
  .ch-ajuster .btn-grand { height: 40px; }
  .ch-struct-tete { padding: 12px 14px; }
  .ch-liste { padding: 4px 4px 6px; }
  .ch-ligne { grid-template-columns: 34px minmax(0, 1.6fr) minmax(0, .8fr) minmax(0, .9fr) minmax(0, .9fr); gap: 6px; padding: 0 8px; font-size: 12.5px; }
  .ch-editeur { padding: 12px 16px; }
  .ch-ed-ligne { grid-template-columns: 20px repeat(4, minmax(0, 1fr)) 28px; gap: 5px; }
  .ch-ed-ligne .field { padding: 0 7px; font-size: 13px; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } .ch-arret .ch-temps, .ch-flash { animation: none; } }
