.source-banner {
  flex-shrink: 0;
  text-align: center;
  font-weight: 700;
  font-size: clamp(0.8rem, 1.6vh, 0.95rem);
  letter-spacing: 0.02em;
  padding: 0.45rem 0.75rem;
  border-bottom: 1px solid var(--line);
}

.source-lan,
.source-tunnel {
  background: rgba(76, 175, 80, 0.18);
  color: #a5d6a7;
}

.source-firebase {
  background: rgba(196, 163, 90, 0.22);
  color: #e0c988;
}

.source-none,
.source-unknown {
  background: rgba(120, 120, 120, 0.25);
  color: #c0c0c0;
}

.hint {
  color: var(--muted);
  font-size: 0.88rem;
  margin: 0 0 1rem;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  margin-bottom: 0.85rem;
}

.field span {
  color: var(--muted);
  font-size: 0.8rem;
}

.field input {
  background: #111;
  border: 1px solid #333;
  border-radius: 8px;
  color: var(--ink);
  padding: 0.55rem 0.7rem;
  font-size: 0.95rem;
}

.modal-backdrop.open,
.modal.open {
  display: block;
}

.modal-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  z-index: 40;
}

.modal {
  display: none;
  position: fixed;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: min(420px, 92vw);
  background: #121a18;
  border: 1px solid var(--line);
  border-radius: 12px;
  z-index: 50;
  padding: 1rem;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
}

.modal-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.75rem;
}

.modal-head h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.15rem;
}

.fresh-chip {
  display: inline-flex;
  font-size: clamp(0.68rem, 1.3vh, 0.78rem);
  font-weight: 700;
  letter-spacing: 0.03em;
  padding: 0.22rem 0.5rem;
  border-radius: 999px;
  white-space: nowrap;
}

.fresh-live {
  background: rgba(76, 175, 80, 0.28);
  color: #81c784;
}
.fresh-stale {
  background: rgba(196, 163, 90, 0.28);
  color: #e0c988;
}
.fresh-offline {
  background: rgba(120, 120, 120, 0.35);
  color: #b0b0b0;
}

.board-card.data-stale {
  opacity: 0.82;
  filter: grayscale(0.35);
}
.board-card.data-offline {
  opacity: 0.62;
  filter: grayscale(0.75);
  border-color: #555;
}
