/* L'administrateur qui conduit aussi (owner, 2026-11-28, design B) : selfdrive.js */

/* Plus d'étiquette « Les miennes · N » (owner, 2026-12-03) : la liste s'ouvre sur la plus ancienne course commencée (app.js) */

/* Ses courses dans la liste : liseré doré et badge « Moi » */
html .tcard.ctl.st.sd-mine:not(.tk):not(.inv-pick) .ctl-body { border-color: var(--gold); }
html .tcard.ctl .ctl-chips .pill.sd-me { background: var(--s-gold-soft, rgba(201, 164, 92, .16)); color: var(--gold-ink, #775a21); }

/* Bandeau « Votre course à HH:MM » en haut de chaque écran */
.sd-ban-w { margin: 12px 0 16px; }
.sd-ban-w.sd-pad { padding-inline: 20px; }
.sd-ban { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 14px; background: var(--text); color: var(--bg); text-decoration: none; }
.sd-ban .sd-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 4px rgba(201, 164, 92, .28); flex: none; }
.sd-ban.live .sd-dot { background: #3ddc84; box-shadow: 0 0 0 4px rgba(61, 220, 132, .25); animation: sdPulse 1.8s ease-out infinite; }
.sd-ban .sd-txt { min-width: 0; flex: 1; }
.sd-ban b { display: block; font-size: 14px; }
.sd-ban small { display: block; font-size: 12.5px; opacity: .78; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sd-ban .sd-go { flex: none; padding: 8px 12px; border-radius: 10px; background: var(--gold); color: #fff; font-size: 13px; font-weight: 700; transition: background .3s, color .3s; }
@media (hover: hover) { .sd-ban:hover .sd-go { background: var(--bg); color: var(--text); } }
@keyframes sdPulse { 0% { box-shadow: 0 0 0 0 rgba(61, 220, 132, .45); } 100% { box-shadow: 0 0 0 9px rgba(61, 220, 132, 0); } }
@media (prefers-reduced-motion: reduce) { .sd-ban.live .sd-dot { animation: none; } }
/* Ordinateur, liste et fiche côte à côte : le bandeau ne défile plus avec la fiche (owner, 2026-12-03 : « this bar shouldn't scroll
   when scrolling the right panel »). Collé en haut, sur le fond de la page (marges devenues retraits pour que rien ne passe
   au-dessus) ; la liste fixe commence dessous (tSplitPin, app.js) et la barre Modifier / PDF de la fiche colle juste dessous. */
/* Retraits de 20 px sur les côtés posés ici dès le premier affichage (owner, 2026-12-03 : « the padding are missing when the page
   loads, and then appear a second later ») : cet écran n'a pas de marge, et la classe sd-pad (selfdrive.js) arrivait trop tard. */
@media (min-width: 1000px) {
  .tsplit-wrap > .sd-ban-w { position: sticky; top: 0; z-index: 31; margin: 0; padding: 12px 20px 16px; background: var(--bg); }
  .tsplit-wrap:has(> .sd-ban-w) .tp-stick { top: var(--sd-h, 90px); }
}
/* Téléphone : .wrap sans marge, 16 px comme le reste ; collé sous la barre du haut, toujours visible (la liste s'ouvre sur aujourd'hui) */
@media (max-width: 999px) {   /* comme la recherche collée de la liste (app.css) */
  .sd-ban-w, .sd-ban-w.sd-pad { position: sticky; top: var(--sd-top, 64px); z-index: 31; margin: 0; padding: 4px 16px 10px; background: var(--bg); }
  .tlist-wrap:has(> .sd-ban-w) > .tsearch-wrap { top: calc(var(--tl-top, 64px) + var(--sd-h, 76px)); }
  .tlist-wrap:has(> .sd-ban-w) > .list > .filters:first-child { top: calc(var(--tl-top2, 127px) + var(--sd-h, 76px)); }
}
