:root {
  --public-font: "Segoe UI", "Inter", system-ui, -apple-system, sans-serif;
}

html {
  /* Prevents a white flash / white bar when overscrolling on mobile browsers.
     Uses the same dark base as --bg (set on :root per page). Falls back to
     near-black so it is always safe even before the CSS variable resolves. */
  background-color: var(--bg, #07111a);
}

body {
  font-family: var(--public-font);
}

#alert-banner {
  overflow: hidden;
  opacity: 0;
  transform: translateY(-100%);
  font-weight: 700;
}

#alert-banner .text {
  position: relative;
  z-index: 1;
  flex: 1;
}

#alert-banner.info {
  background: linear-gradient(90deg, #1e6fff, #1557d0);
  color: #fff;
}

#alert-banner.warning {
  background: linear-gradient(90deg, #ffb300, #e65100);
  color: #1f0d00;
}

#alert-banner.critical {
  background: linear-gradient(90deg, #d32f2f, #b71c1c);
  color: #fff;
}

.ann-icon {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ann-dismiss {
  margin-left: auto;
  background: none;
  border: none;
  cursor: pointer;
  color: inherit;
  opacity: 0.75;
}

.ann-dismiss:hover {
  opacity: 1;
}

.barber-stripe {
  position: absolute;
  top: 0;
  bottom: 0;
  left: -40px;
  right: -40px;
  background: repeating-linear-gradient(
    -45deg,
    rgba(255, 255, 255, 0.28) 0,
    rgba(255, 255, 255, 0.28) 10px,
    rgba(255, 255, 255, 0.05) 10px,
    rgba(255, 255, 255, 0.05) 20px
  );
  pointer-events: none;
  will-change: transform;
}

.motion-pill,
.arr-motion {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-radius: 999px;
  padding: 2px 8px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.2px;
}

.motion-dot,
.arr-motion-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
  background: currentColor;
}

.motion-moving,
.arr-motion.moving {
  background: rgba(57, 211, 83, 0.18);
  color: #a7f6b8;
}

.motion-stopped,
.arr-motion.stopped {
  background: rgba(245, 166, 35, 0.22);
  color: #ffd79d;
}

.motion-offline,
.arr-motion.offline {
  background: rgba(148, 163, 184, 0.24);
  color: #e0e8f6;
}

body.a11y-high-contrast {
  background: #fff;
  color: #000;
}

body.a11y-large-text {
  font-size: 112%;
}

body.a11y-reduced-motion * {
  animation: none !important;
  transition: none !important;
}
