/* Connectivity status banner (ClubOS). Hand-authored and served directly, kept OFF
 * the Tailwind-compiled app.css so it needs no build step (mirrors the on-page CSS in
 * checkin.html). Only custom cc- selectors here, so Tailwind's content scan emits
 * nothing new and app.css stays byte-identical to CI's linux rebuild.
 *
 * A pinned top bar (distinct from the transient bottom .toast): it shows the worst
 * active condition and stays until it clears, so a network drop is visible instead of
 * a silently frozen board. Slides in/out via transform; parked off-screen otherwise. */
.cc-net {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 70;
  transform: translateY(-100%);
  transition: transform 0.25s ease;
  padding: 8px 16px;
  padding-top: max(8px, env(safe-area-inset-top));
  text-align: center;
  font-family: var(--font);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.3;
  color: #fff;
  background: var(--ink);
  box-shadow: var(--shadow);
}
.cc-net--show {
  transform: translateY(0);
}
.cc-net--offline {
  background: var(--danger);
}
.cc-net--warn {
  background: var(--competitive-deep);
}
.cc-net--ok {
  background: var(--ok);
}
@media (prefers-reduced-motion: reduce) {
  .cc-net {
    transition: none;
  }
}
