/* Shared only by the public Live spectator pages. */
.header-utilities { display:flex; justify-content:flex-end; min-height:24px; margin-bottom:5px; }
.live-viewer-badge {
  display:inline-flex; align-items:center; gap:6px; padding:3px 9px;
  border:1px solid rgba(255,255,255,.24); border-radius:999px;
  background:rgba(15,23,42,.48); color:#fff;
  font:600 11px/1.4 -apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
  white-space:nowrap; font-variant-numeric:tabular-nums;
}
.live-viewer-badge strong { min-width:1ch; font-weight:800; }
.live-viewer-dot { width:6px; height:6px; border-radius:50%; background:#94a3b8; flex-shrink:0; }
.live-viewer-badge[data-presence-state="online"] .live-viewer-dot { background:#4ade80; }
.proj-viewer-badge { position:absolute; top:8px; right:10px; z-index:25; pointer-events:none; }
.proj-overlay .proj-controls { padding-right:164px; }
.proj-overlay.proj-light .proj-viewer-badge { background:#f8fafc; color:#0f172a; border-color:#cbd5e1; }
@media (max-width:560px) {
  .header-utilities { min-height:22px; margin-bottom:4px; }
  .live-viewer-badge { font-size:10px; padding:3px 7px; }
}
@media print { .header-utilities, .live-viewer-badge { display:none!important; } }

/* The separate Final verseny spectator page uses the same global counter. */
body[data-youth-role="live"] .yl-app-top { display:grid; grid-template-columns:minmax(0,1fr) auto; gap:12px; position:sticky; top:0; z-index:50; }
body[data-youth-role="live"] .yl-app-top .header-utilities { grid-column:1/-1; margin-bottom:0; }
@media (max-width:700px) { body[data-youth-role="live"] .yl-app-top { grid-template-columns:minmax(0,1fr); } }
