/* =============================================================================
   essaim-2027.css - L'essaim du Quinte+, parcours 2027 : Rayer, Departager, Classer.
   -----------------------------------------------------------------------------
   Concerne essaim-quinte.php (parcours de vote et confirmation). Le verdict a
   sa propre feuille, assets/css/essaim-verdict.css (lot 1e), qui reprend ces
   jetons.

   Meme parti que assets/css/challenge-2027.css : les variables --tbz-ag-* du
   systeme 2027 (assets/css/agent.css) sont reprises telles quelles, avec une
   valeur de repli en dur pour que la page reste juste meme si agent.css n'est
   pas charge. Classes prefixees .tbz-es-*, mobile-first, aucune dependance,
   aucune règle forcée.

   Contraste : les valeurs du systeme sont conservees partout ou elles passent
   AA. Deux durcissements, comme sur le Challenge :
     --es-mut-aa #55637a remplace #64748b sous 12 px pose sur fond teinte
     --es-mut2   #475569 remplace #94a3b8, qui ne donne que 2,6:1 sur blanc

   Regles de mise en page tenues partout :
     - aucun texte tronque : les noms et les phrases passent a la ligne ;
     - aucun debordement horizontal de 320 a 1920 px ;
     - cibles tactiles de 44 px au minimum ;
     - mouvement reduit respecte.

   @version 1.2.0
   ========================================================================== */

.tbz-es {
  --es-bg:      var(--tbz-ag-bg, #f8fafc);
  --es-soft:    var(--tbz-ag-bg-soft, #f1f5f9);
  --es-card:    var(--tbz-ag-card, #fff);
  --es-card2:   var(--tbz-ag-card-2, #fbfcfd);
  --es-bd:      var(--tbz-ag-border, #e5e7eb);
  --es-bd-soft: var(--tbz-ag-border-soft, #eef0f3);
  --es-ink:     var(--tbz-ag-text, #0f172a);
  --es-ink2:    var(--tbz-ag-text-2, #1e293b);
  --es-mut:     var(--tbz-ag-muted, #64748b);
  --es-mut-aa:  #55637a;
  --es-mut2:    #475569;
  --es-acc:     var(--tbz-ag-accent, #0a7c91);
  --es-acc-d:   var(--tbz-ag-accent-d, #075d6e);
  --es-acc-l:   var(--tbz-ag-accent-l, #e0f2f6);
  --es-acc-l2:  var(--tbz-ag-accent-l2, #ecf7fa);
  --es-grad:    var(--tbz-ag-accent-grad, linear-gradient(135deg, #0a7c91 0%, #0891b2 60%, #06b6d4 100%));
  --es-ok:      #047857;
  --es-ok-bg:   var(--tbz-ag-success-bg, #ecfdf5);
  --es-ok-bd:   var(--tbz-ag-success-bd, #a7f3d0);
  --es-warn:    var(--tbz-ag-warn, #b45309);
  --es-warn-bg: var(--tbz-ag-warn-bg, #fffbeb);
  --es-warn-bd: var(--tbz-ag-warn-bd, #fde68a);
  --es-bad:     var(--tbz-ag-danger, #b91c1c);
  --es-bad-bg:  var(--tbz-ag-danger-bg, #fef2f2);
  --es-bad-bd:  var(--tbz-ag-danger-bd, #fecaca);
  --es-info:    var(--tbz-ag-info, #1d4ed8);
  --es-r-xs:    var(--tbz-ag-r-xs, 6px);
  --es-r-sm:    var(--tbz-ag-r-sm, 10px);
  --es-r-md:    var(--tbz-ag-r-md, 14px);
  --es-r-lg:    var(--tbz-ag-r-lg, 18px);
  --es-pill:    var(--tbz-ag-r-pill, 999px);
  --es-sh-xs:   var(--tbz-ag-sh-xs, 0 1px 2px 0 rgba(15,23,42,.04));
  --es-sh-sm:   var(--tbz-ag-sh-sm, 0 1px 3px 0 rgba(15,23,42,.06), 0 1px 2px -1px rgba(15,23,42,.04));
  --es-sh-md:   var(--tbz-ag-sh-md, 0 4px 6px -1px rgba(15,23,42,.07), 0 2px 4px -2px rgba(15,23,42,.05));
  --es-sh-lg:   var(--tbz-ag-sh-lg, 0 10px 15px -3px rgba(15,23,42,.08), 0 4px 6px -4px rgba(15,23,42,.05));
  --es-ease:    var(--tbz-ag-ease-out, cubic-bezier(.16, 1, .3, 1));
  --es-font:    var(--tbz-ag-font, 'Inter', 'Open Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif);
  --es-cols:    40px minmax(0, 1.7fr) 64px 72px minmax(0, 120px) minmax(0, 124px) 56px 56px;

  font-family: var(--es-font);
  color: var(--es-ink);
  letter-spacing: -.005em;
  line-height: 1.5;
}
.tbz-es *, .tbz-es *::before, .tbz-es *::after { box-sizing: border-box; }
.tbz-es [hidden] { display: none; }
.tbz-es button { font-family: inherit; }
.tbz-es a { color: var(--es-acc-d); }

/* ── En-tete de la page ───────────────────────────────────────────────────── */
.tbz-es-hd { text-align: center; margin: 4px 0 18px; }
.tbz-es-h1 {
  margin: 0 0 6px; font-size: clamp(1.55rem, 4.2vw, 2.2rem); font-weight: 800;
  letter-spacing: -.02em; color: var(--es-ink); line-height: 1.15;
}
.tbz-es-sub { margin: 0 0 12px; color: var(--es-mut-aa); font-size: .98rem; }
.tbz-es-cd {
  display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px;
  border-radius: var(--es-pill); font-size: .88rem; font-weight: 700;
  background: var(--es-ok-bg); color: var(--es-ok); border: 1px solid var(--es-ok-bd);
}
.tbz-es-cd.closed { background: var(--es-bad-bg); color: var(--es-bad); border-color: var(--es-bad-bd); }
.tbz-es-cd.wait { background: var(--es-warn-bg); color: var(--es-warn); border-color: var(--es-warn-bd); }

.tbz-es-nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 14px 0 0; }
.tbz-es-nl {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  min-height: 44px; padding: 0 16px; border-radius: var(--es-pill);
  border: 1px solid var(--es-bd); background: var(--es-card); color: var(--es-ink2);
  font-size: .92rem; font-weight: 600; text-decoration: none; cursor: pointer;
  box-shadow: var(--es-sh-xs);
  transition: border-color .15s var(--es-ease), background .15s var(--es-ease);
}
.tbz-es-nl:hover { border-color: var(--es-acc); background: var(--es-acc-l2); color: var(--es-acc-d); }
.tbz-es-nl.is-off { color: var(--es-mut2); background: var(--es-soft); cursor: not-allowed; }
.tbz-es-nl.is-off:hover { border-color: var(--es-bd); background: var(--es-soft); color: var(--es-mut2); }
.tbz-es :focus-visible { outline: 3px solid var(--es-acc); outline-offset: 2px; }

/* ── Ecrans : #screen-login (parcours) et #screen-main (verdict) ────────────
   Les deux identifiants sont ceux que lit encore essaim-app.js (verdict). */
.tbz-es-scr { display: none; }
.tbz-es-scr.active { display: block; }

/* ── Boutons ───────────────────────────────────────────────────────────────── */
.tbz-es-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 46px; padding: 0 20px; border-radius: var(--es-r-sm);
  border: 1px solid var(--es-bd); background: var(--es-card); color: var(--es-ink2);
  font-size: .98rem; font-weight: 700; cursor: pointer; text-decoration: none;
  transition: background .15s var(--es-ease), border-color .15s var(--es-ease), box-shadow .15s var(--es-ease);
}
.tbz-es-btn:hover:not(:disabled) { border-color: var(--es-acc); background: var(--es-acc-l2); }
.tbz-es-btn--pri { background: var(--es-acc); border-color: var(--es-acc); color: #fff; box-shadow: var(--es-sh-sm); }
.tbz-es-btn--pri:hover:not(:disabled) { background: var(--es-acc-d); border-color: var(--es-acc-d); color: #fff; }
.tbz-es-btn--ghost { background: transparent; border-color: transparent; color: var(--es-acc-d); }
.tbz-es-btn--ghost:hover:not(:disabled) { background: var(--es-acc-l2); border-color: transparent; }
.tbz-es-btn:disabled { background: var(--es-soft); border-color: var(--es-bd); color: var(--es-mut2); cursor: not-allowed; box-shadow: none; }
.tbz-es-btn--block { width: 100%; }
/* Liens en forme de bouton ou de pastille : la feuille Bootstrap du site
   (a:hover souligne et colore en bleu) ne doit jamais les toucher. */
.tbz-es a.tbz-es-btn, .tbz-es a.tbz-es-btn:hover, .tbz-es a.tbz-es-btn:focus,
.tbz-es a.tbz-es-nl, .tbz-es a.tbz-es-nl:hover, .tbz-es a.tbz-es-nl:focus { text-decoration: none; }
.tbz-es a.tbz-es-btn { color: var(--es-ink2); }
.tbz-es a.tbz-es-btn:hover { color: var(--es-acc-d); }
.tbz-es a.tbz-es-btn--pri, .tbz-es a.tbz-es-btn--pri:hover, .tbz-es a.tbz-es-btn--pri:focus, .tbz-es a.tbz-es-btn--pri:visited { color: #fff; }
.tbz-es a.tbz-es-btn--ghost { color: var(--es-acc-d); }
.tbz-es-btn--sm { min-height: 44px; padding: 0 14px; font-size: .9rem; }

/* ── Panneau ──────────────────────────────────────────────────────────────── */
.tbz-es-card {
  background: var(--es-card); border: 1px solid var(--es-bd); border-radius: var(--es-r-lg);
  box-shadow: var(--es-sh-sm); padding: 18px 14px; margin: 0 0 16px;
}
.tbz-es-h2 { margin: 0 0 6px; font-size: clamp(1.2rem, 3.2vw, 1.55rem); font-weight: 800; letter-spacing: -.015em; line-height: 1.2; }
.tbz-es-lede { margin: 0 0 14px; color: var(--es-mut-aa); font-size: .98rem; }
.tbz-es-note {
  display: block; margin: 0 0 14px; padding: 12px 14px; border-radius: var(--es-r-sm);
  background: var(--es-acc-l2); border: 1px solid var(--es-acc-l); color: var(--es-ink2); font-size: .94rem;
}
.tbz-es-note--warn { background: var(--es-warn-bg); border-color: var(--es-warn-bd); color: #78350f; }
.tbz-es-note--bad { background: var(--es-bad-bg); border-color: var(--es-bad-bd); color: #7f1d1d; }
.tbz-es-note--ok { background: var(--es-ok-bg); border-color: var(--es-ok-bd); color: #065f46; }
.tbz-es-note strong { font-weight: 700; }
.tbz-es-note a { font-weight: 700; }

/* ── Presentation des trois gestes ────────────────────────────────────────── */
.tbz-es-gestes { list-style: none; margin: 0 0 16px; padding: 0; display: grid; gap: 10px; grid-template-columns: 1fr; }
.tbz-es-geste { display: grid; grid-template-columns: 38px minmax(0, 1fr); gap: 12px; align-items: start; padding: 12px; border: 1px solid var(--es-bd-soft); border-radius: var(--es-r-md); background: var(--es-card2); }
.tbz-es-geste b { display: block; font-size: 1rem; margin-bottom: 2px; }
.tbz-es-geste span { color: var(--es-mut-aa); font-size: .92rem; }
.tbz-es-gn {
  display: flex; align-items: center; justify-content: center; width: 38px; height: 38px;
  border-radius: 50%; background: var(--es-acc-l); color: var(--es-acc-d); font-weight: 800;
}

/* ── Frise des etapes ─────────────────────────────────────────────────────── */
.tbz-es-steps { list-style: none; margin: 0 0 14px; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.tbz-es-stp {
  display: flex; flex-direction: column; align-items: center; gap: 4px; text-align: center;
  padding: 9px 4px; border-radius: var(--es-r-sm); background: var(--es-soft);
  color: var(--es-mut2); font-size: .82rem; font-weight: 700; line-height: 1.2;
}
.tbz-es-stp i {
  font-style: normal; display: flex; align-items: center; justify-content: center;
  width: 26px; height: 26px; border-radius: 50%; background: var(--es-card); border: 1px solid var(--es-bd); color: var(--es-mut2); font-size: .8rem;
}
.tbz-es-stp.is-on { background: var(--es-acc-l); color: var(--es-acc-d); }
.tbz-es-stp.is-on i { background: var(--es-acc); border-color: var(--es-acc); color: #fff; }
.tbz-es-stp.is-done { background: var(--es-ok-bg); color: var(--es-ok); }
.tbz-es-stp.is-done i { background: var(--es-ok); border-color: var(--es-ok); color: #fff; }

/* ── Barre d'outils de l'etape Rayer ──────────────────────────────────────── */
.tbz-es-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 0 0 12px; }
.tbz-es-count {
  display: inline-flex; align-items: baseline; gap: 6px; padding: 8px 14px; border-radius: var(--es-pill);
  background: var(--es-acc-l); color: var(--es-acc-d); font-size: .95rem; font-weight: 600;
}
.tbz-es-count b { font-size: 1.15rem; font-weight: 800; }
.tbz-es-count.is-ok { background: var(--es-ok-bg); color: var(--es-ok); }
.tbz-es-count.is-low { background: var(--es-bad-bg); color: var(--es-bad); }
.tbz-es-sp { flex: 1 1 auto; }
.tbz-es-tools--b { margin: 0 0 12px; scroll-margin-top: 72px; }
.tbz-es-btn--tog.is-on { background: var(--es-acc-l); border-color: var(--es-acc); color: var(--es-acc-d); }
.tbz-es-sortl { display: inline-flex; align-items: center; gap: 8px; margin: 0; font-size: .9rem; font-weight: 700; color: var(--es-ink2); }
.tbz-es-sortl select {
  min-height: 44px; padding: 0 10px; border: 1px solid var(--es-bd); border-radius: var(--es-r-sm);
  background: var(--es-card); color: var(--es-ink); font-size: 1rem; font-weight: 600; font-family: inherit; min-width: 130px; max-width: 100%;
}

/* ── Tableau des partants ─────────────────────────────────────────────────── */
.tbz-es-gh { display: none; }
.tbz-es-rows { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.tbz-es-row {
  display: grid; grid-template-columns: 40px minmax(0, 1fr) 56px;
  gap: 8px 10px; align-items: start; padding: 10px 10px 12px; border: 1px solid var(--es-bd); border-radius: var(--es-r-md);
  background: var(--es-card); transition: background .15s var(--es-ease), border-color .15s var(--es-ease), opacity .15s var(--es-ease);
}
.tbz-es-tile {
  display: flex; align-items: center; justify-content: center; width: 38px; height: 38px;
  border-radius: var(--es-r-sm); background: var(--es-ink2); color: #fff; font-weight: 800; font-size: 1.02rem; font-variant-numeric: tabular-nums;
}
.tbz-es-row > .tbz-es-tile { grid-column: 1; grid-row: 1; }
.tbz-es-nm { grid-column: 2; grid-row: 1; min-width: 0; }
.tbz-es-nm b { display: block; font-size: 1.02rem; font-weight: 700; overflow-wrap: anywhere; line-height: 1.25; }
.tbz-es-nm small { display: block; margin-top: 2px; color: var(--es-mut-aa); font-size: .84rem; overflow-wrap: anywhere; line-height: 1.35; }
.tbz-es-cs { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 8px 14px; }
.tbz-es-c { display: flex; flex-direction: column; gap: 2px; min-width: 0; font-size: .88rem; }
.tbz-es-c::before { content: attr(data-l); font-size: .7rem; font-weight: 700; color: var(--es-mut-aa); letter-spacing: .01em; }
.tbz-es-c b { font-weight: 700; font-variant-numeric: tabular-nums; }
.tbz-es-c small { color: var(--es-mut-aa); font-size: .76rem; }
.tbz-es-c .l2 { color: var(--es-mut-aa); font-size: .82rem; }
.tbz-es-xw { grid-column: 3; grid-row: 1; display: flex; flex-direction: column; align-items: center; gap: 3px; }
.tbz-es-xc { font-size: .7rem; font-weight: 700; color: var(--es-mut2); white-space: nowrap; font-variant-numeric: tabular-nums; }
.tbz-es-row.is-out .tbz-es-xc { color: var(--es-ok); }
.tbz-es-x {
  align-self: center; width: 46px; height: 46px; border-radius: var(--es-r-sm);
  border: 1px solid var(--es-bd); background: var(--es-card); color: var(--es-mut2); font-size: 1.35rem; font-weight: 700; line-height: 1;
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  transition: background .15s var(--es-ease), color .15s var(--es-ease), border-color .15s var(--es-ease);
}
.tbz-es-x:hover:not(:disabled) { border-color: var(--es-bad); color: var(--es-bad); background: var(--es-bad-bg); }
.tbz-es-x[aria-pressed="true"] { background: var(--es-bad); border-color: var(--es-bad); color: #fff; }
.tbz-es-x[aria-pressed="true"]:hover:not(:disabled) { background: #991b1b; border-color: #991b1b; color: #fff; }
.tbz-es-x:disabled { cursor: default; opacity: .45; }
.tbz-es-row.is-out { background: var(--es-soft); border-color: var(--es-bd-soft); }
.tbz-es-row.is-out .tbz-es-nm b { text-decoration: line-through; text-decoration-thickness: 1.5px; color: var(--es-mut2); }
.tbz-es-row.is-out .tbz-es-tile { background: var(--es-mut); }
.tbz-es-row.is-out .tbz-es-cs, .tbz-es-row.is-out .tbz-es-l2, .tbz-es-row.is-out .tbz-es-nm small { opacity: .62; }

/* Pastilles de la musique : 1 = victoire, 2 et 3 = place, autres = hors places */
.tbz-es-mus { display: inline-flex; gap: 3px; flex-wrap: wrap; }
.tbz-es-mu {
  display: inline-flex; align-items: center; justify-content: center; min-width: 20px; height: 22px; padding: 0 3px;
  border-radius: 5px; font-size: .78rem; font-weight: 800; background: var(--es-soft); color: var(--es-mut2); font-variant-numeric: tabular-nums;
}
.tbz-es-mu.m1 { background: var(--es-ok); color: #fff; }
.tbz-es-mu.m2 { background: var(--es-acc-l); color: var(--es-acc-d); }
.tbz-es-mu.md { background: var(--es-bad-bg); color: var(--es-bad); }

/* Ligne : cinq pastilles */
.tbz-es-pips { display: inline-flex; gap: 3px; align-items: center; min-height: 20px; }
.tbz-es-pips i { width: 10px; height: 10px; border-radius: 50%; background: var(--es-bd); }
.tbz-es-pips i.on { background: var(--es-acc); }
.tbz-es-nc { color: var(--es-mut2); font-size: .82rem; }

/* Evolutions du poids et de la valeur */
.tbz-es-ev { font-style: normal; font-size: .8rem; font-weight: 700; margin-left: 5px; white-space: nowrap; }
.tbz-es-ev.up { color: var(--es-warn); }
.tbz-es-ev.dn { color: var(--es-ok); }
.tbz-es-ev.vup { color: var(--es-info); }
.tbz-es-ev.vdn { color: var(--es-mut2); }
.tbz-es-ev.n { color: var(--es-mut2); font-weight: 600; }

/* Colonne Top 5 */
.tbz-es-t5 b { font-size: 1rem; }

/* Puces (ecurie, ferrure, driver) et detail replie */
.tbz-es-chips { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 5px; }
.tbz-es-chip {
  display: inline-flex; align-items: center; padding: 2px 8px; border-radius: var(--es-pill); font-size: .74rem; font-weight: 700;
  background: var(--es-warn-bg); color: #78350f; border: 1px solid var(--es-warn-bd);
}
.tbz-es-chip.i { background: var(--es-acc-l2); color: var(--es-acc-d); border-color: var(--es-acc-l); }
.tbz-es-more {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 2px; border: 0; background: transparent;
  color: var(--es-acc-d); font-size: .86rem; font-weight: 700; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; white-space: nowrap;
}
.tbz-es-det { grid-column: 1 / -1; margin: 0; padding: 10px 12px; border-radius: var(--es-r-sm); background: var(--es-acc-l2); font-size: .88rem; }
.tbz-es-det p { margin: 0 0 6px; }
.tbz-es-det p:last-child { margin-bottom: 0; }

/* Indicateurs chiffres : libelle, valeur coloree, barre et trait de moyenne */
.tbz-es-l2 { grid-column: 1 / -1; display: flex; flex-direction: column; gap: 10px; padding-top: 8px; border-top: 1px solid var(--es-bd-soft); min-width: 0; }
.tbz-es-gs { display: grid; grid-template-columns: repeat(auto-fill, minmax(112px, 1fr)); gap: 10px 14px; }

/* Synthese des commentaires de course */
.tbz-es-com { margin: 0; font-size: .9rem; line-height: 1.45; color: var(--es-ink2); }
.tbz-es-com .t { overflow-wrap: anywhere; }
.tbz-es-sig {
  display: inline-flex; align-items: center; margin: 0 6px 2px 0; padding: 1px 8px; border-radius: var(--es-pill);
  font-size: .72rem; font-weight: 800; vertical-align: 1px; border: 1px solid transparent;
}
.tbz-es-sig.s-favorable { background: var(--es-ok-bg); color: var(--es-ok); border-color: var(--es-ok-bd); }
.tbz-es-sig.s-neutre { background: var(--es-soft); color: var(--es-mut2); border-color: var(--es-bd); }
.tbz-es-sig.s-reserve { background: var(--es-bad-bg); color: var(--es-bad); border-color: var(--es-bad-bd); }
.tbz-es-sig.s-rep { background: var(--es-warn-bg); color: #78350f; border-color: var(--es-warn-bd); }
.tbz-es-hist { margin-top: 8px; }
.tbz-es-hist ul { margin: 4px 0 0; padding: 0; list-style: none; display: grid; gap: 3px; }
.tbz-es-hist .dt { font-variant-numeric: tabular-nums; color: var(--es-mut-aa); }

/* Tableau de bord : chances de la selection, du ticket */
.tbz-es-dash { margin: 0 0 14px; }
.tbz-es-kpis { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.tbz-es-kpi {
  display: flex; flex-direction: column; gap: 2px; min-width: 0; padding: 10px 12px; border-radius: var(--es-r-md);
  background: var(--es-soft); border: 1px solid var(--es-bd-soft);
}
.tbz-es-kpi b { font-size: 1.35rem; font-weight: 800; line-height: 1.15; color: var(--es-ink); font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.tbz-es-kpi span { font-size: .8rem; color: var(--es-mut-aa); line-height: 1.35; }
.tbz-es-kpi.is-main { background: var(--es-acc-l2); border-color: var(--es-acc-l); }
.tbz-es-kpi.is-main b { color: var(--es-acc-d); font-size: 1.6rem; }
.tbz-es-kpi.is-time b { font-size: 1.1rem; }
@media (max-width: 639px) {
  .tbz-es-kpis > .tbz-es-kpi:first-child:nth-last-child(3) { grid-column: 1 / -1; }
}
.tbz-es-dlast { margin: 8px 0 0; font-size: .9rem; color: var(--es-ink2); }
.tbz-es-bilan { margin: 0 0 14px; padding: 10px 14px; border-radius: var(--es-r-sm); background: var(--es-ok-bg); border: 1px solid var(--es-ok-bd); font-size: .92rem; color: #065f46; }
.tbz-es-bilan a { font-weight: 700; }

/* Departager : ticket en direct, enjeu, choix */
.tbz-es-live { margin: 0 0 12px; padding: 12px; border-radius: var(--es-r-md); background: var(--es-card2); border: 1px solid var(--es-bd); }
.tbz-es-live .hd { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 12px; margin: 0 0 8px; font-size: .9rem; }
.tbz-es-live .hd span { color: var(--es-mut-aa); }
.tbz-es-live .hd span b { color: var(--es-acc-d); }
.tbz-es-livet { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.tbz-es-livet li { position: relative; display: flex; align-items: center; gap: 2px; }
.tbz-es-livet .tbz-es-tile { width: 36px; height: 36px; }
.tbz-es-livet i { font-style: normal; font-size: .7rem; font-weight: 800; }
.tbz-es-livet i.up { color: var(--es-ok); }
.tbz-es-livet i.dn { color: var(--es-bad); }
.tbz-es-live .porte { margin: 8px 0 0; font-size: .84rem; color: var(--es-mut-aa); }
.tbz-es-flash { margin: 0 0 10px; min-height: 1.4em; font-size: .92rem; font-weight: 700; color: var(--es-acc-d); }
.tbz-es-flash:empty { min-height: 0; margin: 0; }
.tbz-es-cmp { margin: 4px 0 10px; scroll-margin-top: 72px; }
.tbz-es-cmp .stake { margin: 0 0 2px; font-size: .82rem; font-weight: 700; color: var(--es-warn); }
.tbz-es-cmp h3 { margin: 0; font-size: 1.15rem; font-weight: 800; }
.tbz-es-pick { display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; }
.tbz-es-pick .tbz-es-btn { flex: 1 1 140px; }
.tbz-es-skip { margin: 10px 0 0; text-align: center; }
.tbz-es-stable { margin: 0 0 12px; padding: 14px; border-radius: var(--es-r-md); background: var(--es-ok-bg); border: 1px solid var(--es-ok-bd); scroll-margin-top: 72px; }
.tbz-es-stable p { margin: 0 0 10px; color: #065f46; }
.tbz-es-dc .tbz-es-com { font-size: .88rem; }

/* Classer : ecart serre */
.tbz-es-slot.has-tie { grid-template-areas: "tie tie tie" "n t mv" "s s s"; }
.tbz-es-tie { grid-area: tie; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin: 0; padding: 6px 8px; border-radius: var(--es-r-sm); background: var(--es-warn-bg); font-size: .84rem; color: #78350f; }
.tbz-es-tie span { flex: 1 1 180px; }

/* Apres le vote : face a l'essaim */
.tbz-es-reveal { text-align: left; margin: 14px 0 0; }
.tbz-es-rev { margin: 14px 0 0; padding: 14px; border-radius: var(--es-r-md); border: 1px solid var(--es-bd); background: var(--es-card2); }
.tbz-es-rev h3 { margin: 0 0 4px; font-size: 1.05rem; font-weight: 800; }
.tbz-es-rev p { margin: 6px 0 0; font-size: .92rem; }
.tbz-es-revn { color: var(--es-mut-aa); }
.tbz-es-revt { list-style: none; margin: 10px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.tbz-es-revt li { display: flex; flex-direction: column; align-items: center; gap: 3px; min-width: 44px; }
.tbz-es-revt li b { font-size: .8rem; font-variant-numeric: tabular-nums; }
.tbz-es-revt li.is-rare .tbz-es-tile { background: var(--es-acc); }
.tbz-es-revt li.is-rare b { color: var(--es-acc-d); }
.tbz-es-rdv { margin: 14px 0 0; font-size: .9rem; color: var(--es-mut-aa); }
.tbz-es-g { position: relative; display: flex; flex-direction: column; gap: 3px; min-width: 0; font-size: .88rem; }
.tbz-es-g::before { content: attr(data-l); font-size: .7rem; font-weight: 700; color: var(--es-mut-aa); overflow-wrap: anywhere; line-height: 1.25; }
.tbz-es-g b, .tbz-es-gv { font-weight: 800; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.tbz-es-g b { font-size: .98rem; line-height: 1.2; }
.tbz-es-gb { position: relative; display: block; height: 6px; border-radius: 3px; background: var(--es-bd); }
.tbz-es-gb .f { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 3px; background: var(--q-fill, #94a3b8); }
.tbz-es-gb .m { position: absolute; top: -2px; width: 2px; height: 10px; margin-left: -1px; border-radius: 1px; background: var(--es-ink2); opacity: .55; }
.tbz-es-q4 { --q-ink: #047857; --q-fill: #10b981; }
.tbz-es-q3 { --q-ink: #a16207; --q-fill: #f59e0b; }
.tbz-es-q2 { --q-ink: #c2410c; --q-fill: #f97316; }
.tbz-es-q1 { --q-ink: #b91c1c; --q-fill: #ef4444; }
.tbz-es-qn { --q-ink: var(--es-ink); --q-fill: #94a3b8; }
.tbz-es-qu { --q-ink: var(--es-mut2); }
.tbz-es-g b, .tbz-es-gv { color: var(--q-ink, var(--es-ink)); }
.tbz-es-sr { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }

/* Dossier deplie : autres indicateurs */
.tbz-es-oth { margin-top: 8px; }
.tbz-es-oth dl { margin: 4px 0 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 6px 14px; }
.tbz-es-oth dl > div { min-width: 0; }
.tbz-es-oth dt { color: var(--es-mut-aa); font-size: .74rem; font-weight: 700; overflow-wrap: anywhere; }
.tbz-es-oth dd { margin: 0; font-size: .92rem; }

/* Panneau de personnalisation */
.tbz-es-panel { margin: 0 0 14px; padding: 14px; border: 1px solid var(--es-acc-l); border-radius: var(--es-r-md); background: var(--es-acc-l2); }
.tbz-es-panel h3 { margin: 0 0 4px; font-size: 1.1rem; font-weight: 800; letter-spacing: -.01em; }
.tbz-es-panel > p { margin: 0 0 12px; color: var(--es-ink2); font-size: .93rem; }
.tbz-es-pgs { display: grid; grid-template-columns: minmax(0, 1fr); gap: 4px 28px; }
.tbz-es-pg { margin: 0 0 10px; padding: 0; border: 0; min-width: 0; }
.tbz-es-pg legend { padding: 0; margin: 0 0 6px; font-size: .82rem; font-weight: 700; color: var(--es-mut2); }
.tbz-es-pc { display: flex; flex-wrap: wrap; gap: 8px; }
.tbz-es-tg {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; max-width: 100%; padding: 4px 14px 4px 10px;
  border: 1px solid var(--es-bd); border-radius: var(--es-pill); background: var(--es-card); color: var(--es-ink2);
  font-size: .9rem; font-weight: 600; line-height: 1.2; text-align: left; cursor: pointer;
  transition: background .15s var(--es-ease), border-color .15s var(--es-ease), color .15s var(--es-ease);
}
.tbz-es-tg::before {
  content: ''; flex: none; width: 20px; height: 20px; border-radius: 50%; border: 2px solid var(--es-mut);
  background: var(--es-card); display: flex; align-items: center; justify-content: center; font-size: .72rem; font-weight: 800; line-height: 1;
}
.tbz-es-tg > span { min-width: 0; overflow-wrap: anywhere; }
.tbz-es-tg:hover:not(:disabled) { border-color: var(--es-acc); background: var(--es-acc-l2); }
.tbz-es-tg[aria-pressed="true"] { background: var(--es-acc); border-color: var(--es-acc); color: #fff; }
.tbz-es-tg[aria-pressed="true"]::before { content: '✓'; border-color: #fff; background: #fff; color: var(--es-acc-d); }
.tbz-es-tg[aria-pressed="true"]:hover:not(:disabled) { background: var(--es-acc-d); border-color: var(--es-acc-d); color: #fff; }
/* Indisponible ce jour : lisible, sans air de case cochee */
.tbz-es-tg:disabled, .tbz-es-tg[aria-pressed="true"]:disabled {
  cursor: not-allowed; background: var(--es-soft); border: 1px dashed var(--es-bd); color: var(--es-mut2);
}
.tbz-es-tg:disabled::before, .tbz-es-tg[aria-pressed="true"]:disabled::before { content: ''; border-color: var(--es-bd); background: transparent; color: transparent; }
.tbz-es-tg .u { display: block; font-size: .74rem; font-weight: 600; color: var(--es-mut-aa); }
.tbz-es-panel .tbz-es-src { margin-top: 4px; }
.tbz-es-gloss { margin: 8px 0 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: 0; }
.tbz-es-gloss dt { margin-top: 8px; font-weight: 700; color: var(--es-ink2); }
.tbz-es-gloss dd { margin: 0; color: var(--es-mut-aa); }
.tbz-es-gloss dd a { display: inline-flex; align-items: center; min-height: 44px; }
.tbz-es-pact { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 12px; }
.tbz-es-pcount { flex: 1 1 220px; margin: 0; font-size: .9rem; color: var(--es-ink2); }
.tbz-es-pmsg { display: block; margin-top: 2px; color: var(--es-warn); font-weight: 700; }

.tbz-es-leg { margin: 12px 0 0; color: var(--es-mut-aa); font-size: .84rem; }
.tbz-es-leg b { color: var(--es-ink2); }
.tbz-es-src { margin: 12px 0 0; font-size: .86rem; color: var(--es-mut-aa); }
.tbz-es-src summary { cursor: pointer; font-weight: 700; color: var(--es-acc-d); min-height: 44px; display: flex; align-items: center; }
.tbz-es-src ul { margin: 4px 0 0; padding-left: 18px; }
.tbz-es-src ul.tbz-es-gestes { padding-left: 0; }
.tbz-es-src li { margin: 0 0 3px; }

/* Barre d'action collee en bas de l'etape */
.tbz-es-bar {
  position: sticky; bottom: 0; z-index: 5; margin: 14px -14px -18px; padding: 10px 14px;
  display: flex; flex-wrap: wrap; align-items: center; gap: 10px;
  background: rgba(255, 255, 255, .94); backdrop-filter: saturate(140%) blur(8px); -webkit-backdrop-filter: saturate(140%) blur(8px);
  border-top: 1px solid var(--es-bd); border-radius: 0 0 var(--es-r-lg) var(--es-r-lg);
}
.tbz-es-bar .txt { flex: 1 1 200px; min-width: 0; font-size: .92rem; color: var(--es-ink2); }
.tbz-es-bar .txt small { display: block; color: var(--es-mut-aa); font-size: .8rem; }
.tbz-es-bar .go { flex: 1 1 auto; }

/* Prix de l'elimination */
.tbz-es-cout { margin: 14px 0 0; padding: 12px 14px; border-radius: var(--es-r-sm); background: var(--es-soft); font-size: .94rem; }
.tbz-es-cout b { color: var(--es-ink); }

/* ── Departager ───────────────────────────────────────────────────────────── */
.tbz-es-dprog { display: flex; align-items: center; gap: 10px; margin: 0 0 14px; font-weight: 700; color: var(--es-acc-d); font-size: .95rem; }
.tbz-es-dprog .bar { flex: 1 1 auto; height: 8px; border-radius: var(--es-pill); background: var(--es-soft); overflow: hidden; }
.tbz-es-dprog .bar i { display: block; height: 100%; background: var(--es-acc); border-radius: var(--es-pill); transition: width .25s var(--es-ease); }
.tbz-es-duel { display: grid; grid-template-columns: 1fr; gap: 10px; }
.tbz-es-vs { text-align: center; font-weight: 800; color: var(--es-mut2); font-size: .95rem; }
.tbz-es-dc { display: flex; flex-direction: column; gap: 10px; min-width: 0; padding: 14px; border: 1px solid var(--es-bd); border-radius: var(--es-r-md); background: var(--es-card); }
.tbz-es-dc header { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 10px; align-items: center; }
.tbz-es-dc header b { display: block; font-size: 1.08rem; overflow-wrap: anywhere; line-height: 1.25; }
.tbz-es-dc header small { display: block; color: var(--es-mut-aa); font-size: .84rem; overflow-wrap: anywhere; }
.tbz-es-dc dl { margin: 0; display: grid; grid-template-columns: minmax(0, 8.5em) minmax(0, 1fr); gap: 6px 10px; font-size: .92rem; }
.tbz-es-dc dt { color: var(--es-mut-aa); font-weight: 600; }
.tbz-es-dc dd { margin: 0; overflow-wrap: anywhere; }
.tbz-es-dc dd.tbz-es-gd { position: relative; display: flex; flex-direction: column; gap: 4px; max-width: 200px; }

/* ── Classer ──────────────────────────────────────────────────────────────── */
.tbz-es-tk { list-style: none; margin: 0 0 14px; padding: 0; display: grid; gap: 8px; }
.tbz-es-slot {
  display: grid; grid-template-columns: 30px 36px minmax(0, 1fr); grid-template-areas: "n t mv" "s s s"; gap: 8px; align-items: center;
  padding: 8px; border: 1px solid var(--es-bd); border-radius: var(--es-r-md); background: var(--es-card);
}
.tbz-es-slot > .tbz-es-sn { grid-area: n; }
.tbz-es-slot > .tbz-es-tile { grid-area: t; width: 36px; height: 36px; }
.tbz-es-slot > .tbz-es-sel { grid-area: s; }
.tbz-es-mvs { grid-area: mv; display: flex; gap: 8px; justify-content: flex-end; }
.tbz-es-slot.is-comp { background: var(--es-ok-bg); border-color: var(--es-ok-bd); }
.tbz-es-slot.sortable-ghost { opacity: .45; }
.tbz-es-sn { text-align: center; font-weight: 800; color: var(--es-mut2); font-size: 1rem; cursor: grab; }
.tbz-es-slot.is-comp .tbz-es-sn { color: var(--es-ok); font-size: 1.3rem; cursor: default; }
.tbz-es-sel {
  width: 100%; min-height: 46px; padding: 0 10px; border: 1px solid var(--es-bd); border-radius: var(--es-r-sm);
  background: var(--es-card); color: var(--es-ink); font-size: 1rem; font-weight: 600; font-family: inherit;
}
.tbz-es-mv {
  width: 44px; height: 44px; border-radius: var(--es-r-sm); border: 1px solid var(--es-bd); background: var(--es-card);
  color: var(--es-ink2); font-size: 1.05rem; cursor: pointer; display: flex; align-items: center; justify-content: center;
}
.tbz-es-mv:hover:not(:disabled) { border-color: var(--es-acc); background: var(--es-acc-l2); }
.tbz-es-mv:disabled { opacity: .35; cursor: default; }
.tbz-es-sep { margin: 4px 0 0; padding: 0 2px; font-size: .84rem; font-weight: 700; color: var(--es-ok); }

.tbz-es-field { display: block; margin: 0 0 14px; }
.tbz-es-field label { display: block; margin: 0 0 6px; font-weight: 700; font-size: .95rem; }
.tbz-es-in {
  width: 100%; max-width: 420px; min-height: 46px; padding: 0 12px; border: 1px solid var(--es-bd); border-radius: var(--es-r-sm);
  font-size: 1rem; font-family: inherit; color: var(--es-ink); background: var(--es-card);
}

/* Bloc Challenge */
.tbz-es-chal { margin: 0 0 14px; padding: 14px; border: 1px solid var(--es-acc-l); border-radius: var(--es-r-md); background: var(--es-acc-l2); }
.tbz-es-chal h3 { margin: 0 0 8px; font-size: 1.02rem; font-weight: 800; }
.tbz-es-ck { display: grid; grid-template-columns: 26px minmax(0, 1fr); gap: 10px; align-items: start; margin: 0 0 8px; cursor: pointer; font-size: .95rem; }
.tbz-es-ck input { width: 22px; height: 22px; margin: 2px 0 0; accent-color: var(--es-acc); }
.tbz-es-ck small { display: block; color: var(--es-mut-aa); font-size: .84rem; }
.tbz-es-ck.is-sub { margin-left: 8px; }
.tbz-es-chal p { margin: 0 0 6px; font-size: .9rem; color: var(--es-ink2); }
.tbz-es-chal p:last-child { margin-bottom: 0; }

/* Confirmation */
.tbz-es-done { text-align: center; }
.tbz-es-done .ok {
  display: inline-flex; align-items: center; justify-content: center; width: 54px; height: 54px; border-radius: 50%;
  background: var(--es-ok-bg); color: var(--es-ok); font-size: 1.7rem; font-weight: 800; border: 1px solid var(--es-ok-bd); margin: 0 0 8px;
}
.tbz-es-pills { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin: 10px 0; }
.tbz-es-pills .tbz-es-tile { position: static; }
.tbz-es-pills .comp { background: var(--es-ok); }
.tbz-es-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin: 14px 0 0; }

/* Recap personnel dans le verdict */
.tbz-es-recap { text-align: left; }
.tbz-es-recap .tbz-es-pills { justify-content: flex-start; }
.tbz-es-recap p { margin: 4px 0; font-size: .94rem; }

/* Petits ecrans : on rogne les marges pour que le nom complet du cheval tienne dans la liste */
@media (max-width: 400px) {
  .tbz-es-slot { padding: 6px; gap: 6px; }
  .tbz-es-sel { padding: 0 6px; }
}

/* Conteneur du verdict (voir aussi essaim-verdict.css) */
.tbz-es-verdict { margin-top: 6px; }

/* ── 640 px et plus ───────────────────────────────────────────────────────── */
@media (min-width: 640px) {
  /* Un rang tient sur une seule ligne : le nom complet du cheval reste lisible dans la liste */
  .tbz-es-slot { grid-template-columns: 34px 38px minmax(0, 1fr) auto; grid-template-areas: "n t s mv"; }
  .tbz-es-slot.has-tie { grid-template-areas: "tie tie tie tie" "n t s mv"; }
  .tbz-es-slot > .tbz-es-tile { width: 38px; height: 38px; }
  .tbz-es-card { padding: 22px 22px; }
  .tbz-es-bar { margin: 16px -22px -22px; padding: 12px 22px; }
  .tbz-es-gestes { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .tbz-es-duel { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: stretch; }
  .tbz-es-duel.is-trio { grid-template-columns: minmax(0, 1fr); }
  .tbz-es-kpis { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .tbz-es-dash.is-ticket .tbz-es-kpis { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
  .tbz-es-steps { gap: 10px; }
  .tbz-es-stp { flex-direction: row; justify-content: center; gap: 8px; font-size: .92rem; padding: 10px 8px; }
}

/* ── 900 px et plus : le tableau devient une grille alignee ─────────────── */
@media (min-width: 900px) {
  .tbz-es-gh {
    display: grid; grid-template-columns: var(--es-cols); gap: 0 10px; padding: 0 14px 8px; align-items: end;
    font-size: .76rem; font-weight: 700; color: var(--es-mut-aa);
  }
  .tbz-es-gh .r { text-align: right; }
  .tbz-es-rows { gap: 6px; }
  .tbz-es-row { grid-template-columns: var(--es-cols); gap: 0 10px; align-items: center; padding: 8px 14px; }
  .tbz-es-cs { display: contents; }
  .tbz-es-c { grid-row: 1; font-size: .92rem; }
  .tbz-es-c::before { display: none; }
  .tbz-es-c.c-cote, .tbz-es-c.c-t5 { text-align: right; }
  .tbz-es-more { min-height: 26px; }
  .tbz-es-xw { grid-column: -2; grid-row: 1; align-self: center; }
  .tbz-es-l2 { grid-column: 2 / -2; grid-row: 2; margin-top: 6px; }
  .tbz-es-det { grid-column: 2 / -2; grid-row: 2; margin: 6px 0 4px; }
  .tbz-es-row.has-l2 .tbz-es-det { grid-row: 3; }
  .tbz-es-duel.is-trio { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .tbz-es-pgs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ── 1200 px et plus ──────────────────────────────────────────────────────── */
@media (min-width: 1200px) {
  .tbz-es-card { padding: 26px 28px; }
  .tbz-es-bar { margin: 18px -28px -26px; padding: 12px 28px; }
  .tbz-es-dc { padding: 18px; }
}

@media (prefers-reduced-motion: reduce) {
  .tbz-es *, .tbz-es *::before, .tbz-es *::after { transition: none; animation: none; scroll-behavior: auto; }
}
@media (forced-colors: active) {
  .tbz-es-x[aria-pressed="true"], .tbz-es-btn--pri { border: 2px solid ButtonText; }
  .tbz-es-pips i.on { background: Highlight; }
  .tbz-es-gb { border: 1px solid CanvasText; background: Canvas; }
  .tbz-es-gb .f { background: Highlight; }
  .tbz-es-gb .m { background: CanvasText; opacity: 1; }
  .tbz-es-kpi, .tbz-es-sig, .tbz-es-tie, .tbz-es-live, .tbz-es-rev { border: 1px solid CanvasText; }
  .tbz-es-tg[aria-pressed="true"] { border: 2px solid Highlight; }
}

/* ── Petits ecrans (lot 1g, 17/10/2026) : l'ecran d'entree va droit au tableau ──
   En-tete resserre, navigation en grille de 2 sur toute la largeur, etapes et
   tuiles plus compactes, outils sur 2 colonnes, barre du bas sur 2 lignes,
   cases du panneau en grille. Aucune information retiree : seulement de la place gagnee. */
@media (max-width: 639px) {
  .tbz-es-hd { margin: 0 0 12px; }
  .tbz-es-h1 { font-size: 1.45rem; margin-bottom: 2px; }
  .tbz-es-sub { margin: 0 0 8px; font-size: .9rem; }
  .tbz-es-cd { padding: 5px 12px; font-size: .84rem; }
  .tbz-es-nav { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; margin-top: 10px; }
  .tbz-es-nav > * { min-width: 0; }
  .tbz-es-nav > span { display: block; }
  .tbz-es-nl { width: 100%; padding: 0 8px; font-size: .86rem; text-align: center; line-height: 1.2; }
  .tbz-es-card { padding: 14px 12px; }
  .tbz-es-steps { gap: 4px; margin-bottom: 10px; }
  .tbz-es-stp { flex-direction: row; justify-content: center; gap: 6px; padding: 7px 4px; font-size: .8rem; }
  .tbz-es-stp i { width: 22px; height: 22px; font-size: .74rem; flex: none; }
  .tbz-es-bilan { padding: 8px 10px; font-size: .86rem; margin-bottom: 10px; }
  .tbz-es-h2 { font-size: 1.2rem; }
  .tbz-es-lede { font-size: .92rem; margin-bottom: 10px; }
  .tbz-es-dash { margin-bottom: 10px; }
  .tbz-es-kpis { gap: 6px; }
  .tbz-es-kpi { padding: 8px 10px; }
  .tbz-es-kpi b { font-size: 1.12rem; }
  .tbz-es-kpi.is-main b { font-size: 1.3rem; }
  .tbz-es-kpi.is-time b { font-size: 1rem; }
  .tbz-es-kpi span { font-size: .76rem; }
  .tbz-es-dlast { font-size: .85rem; }
  .tbz-es-tools--b { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
  .tbz-es-tools--b .tbz-es-btn { width: 100%; padding: 0 8px; line-height: 1.2; text-align: center; }
  .tbz-es-tools--b .tbz-es-sortl { grid-column: 1 / -1; display: flex; }
  .tbz-es-tools--b .tbz-es-sortl select { flex: 1 1 auto; min-width: 0; }
  .tbz-es-panel { padding: 12px 10px; }
  .tbz-es-bar { margin: 12px -12px -14px; padding: 8px 12px; gap: 6px; }
  .tbz-es-bar .txt { flex: 1 1 100%; font-size: .88rem; }
  .tbz-es-bar .txt small { display: none; }
  .tbz-es-bar .tbz-es-btn--ghost { flex: 0 0 auto; padding: 0 10px; }
  .tbz-es-bar .go { flex: 1 1 0; min-width: 0; padding: 0 10px; line-height: 1.2; }
}
@media (min-width: 360px) and (max-width: 639px) {
  .tbz-es-pc { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
  .tbz-es-tg { width: 100%; padding: 4px 8px; gap: 6px; font-size: .84rem; }
  .tbz-es-tg::before { width: 18px; height: 18px; }
}
.tbz-es-nw { white-space: nowrap; }
