/* Écrans Présences et Historique : règles propres à ces écrans. */
.p-head { display: grid; gap: 8px; margin-bottom: 12px; }
.p-back { min-height: 56px; width: 100%; text-align: left; background: none; border: 0; color: var(--primary); font-size: 18px; font-weight: 700; text-decoration: underline; padding: 0; justify-content: flex-start; }
.counts-line { font-size: 18px; font-weight: 700; }
.letters { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.letter {
  min-width: 44px; min-height: 44px; padding: 0 8px; font-size: 18px; font-weight: 800;
  background: var(--surface); border: 2px solid var(--border); border-radius: 10px; touch-action: manipulation;
}
.letter.on { background: var(--primary); border-color: var(--primary); color: var(--primary-text); }
.letter:disabled { opacity: .3; cursor: default; }
.letter:first-child { padding: 0 14px; }
.letter:focus-visible { outline: 3px solid var(--primary); outline-offset: 2px; }
.p-list, .h-list { list-style: none; margin: 0 0 14px; padding: 0; display: grid; gap: 8px; }
.p-row { background: var(--surface); border: 2px solid var(--border); border-radius: var(--radius); padding: 10px 12px; }
.p-info { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.p-name { font-size: 22px; font-weight: 800; overflow-wrap: anywhere; }
.p-status { font-size: 16px; font-weight: 800; }
.s-waiting .p-status { color: var(--accent); }
.s-playing .p-status { color: var(--primary); }
.s-paused .p-status { color: var(--danger); }
.s-left .p-status { color: var(--muted); }
.s-left .p-name { color: var(--muted); }
.s-waiting { border-left: 8px solid var(--accent); }
.s-playing { border-left: 8px solid var(--primary); }
.s-paused { border-left: 8px solid var(--danger); }
.s-left { border-left: 8px solid var(--muted); }
.p-actions { display: flex; gap: 8px; margin-top: 8px; }
.p-btn { font-size: 20px; }
.p-absent {
  display: flex; align-items: center; justify-content: space-between; gap: 8px; width: 100%;
  min-height: 56px; margin: -4px 0; padding: 0; background: none; border: 0; text-align: left; touch-action: manipulation;
}
.p-absent.busy::after { flex: none; }
.p-tap { flex: none; padding: 8px 14px; border: 2px solid var(--primary); border-radius: 10px; color: var(--primary); font-weight: 800; font-size: 18px; }
.p-absent:focus-visible { outline: 3px solid var(--primary); outline-offset: 4px; }
.presences .section-title { margin: 20px 0 8px; }
.guest-form { margin: 20px 0 14px; }
.guest-input { width: 100%; min-height: 56px; padding: 0 14px; font-size: 22px; background: var(--bg); color: var(--text); border: 2px solid var(--border); border-radius: var(--radius); }
.empty-line { padding: 24px 0; text-align: center; }
.h-row { background: var(--surface); border: 2px solid var(--border); border-radius: var(--radius); padding: 14px; font-size: 20px; font-weight: 700; overflow-wrap: anywhere; }
.h-row.live { border-left: 8px solid var(--accent); }

/* Terrains : réglage du soir (écran Salle) */
.courts-set { display: flex; align-items: center; gap: 10px; margin-top: 18px !important; }
.courts-set .courts-label { flex: 1; font-size: 20px; font-weight: 800; }
.courts-set .btn { width: 64px; flex: none; font-size: 28px; padding: 0; }
