/* Interface labels stay still when dragging; editing keeps native selection. */
body,
body * {
  -webkit-user-select: none !important;
  user-select: none !important;
}
body :is(input, textarea, [contenteditable]:not([contenteditable='false'])),
body :is(input, textarea, [contenteditable]:not([contenteditable='false'])) * {
  -webkit-user-select: text !important;
  user-select: text !important;
}

main > header .connectionStatus {
  gap: 8px;
}
main > header #banner {
  display: block;
  max-width: 320px;
  margin: 0;
  padding: 0;
  color: #bcc6d0;
  background: transparent;
  font-size: 9px;
  line-height: 1.4;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
main > header #banner:empty {
  display: none;
}
main > header #banner::before {
  content: '';
  display: inline-block;
  width: 4px;
  height: 4px;
  margin: 0 6px 2px 0;
  border-radius: 50%;
  background: currentColor;
}
main > header #banner[data-kind='error'] {
  color: #df9c94;
}
main > header .connectionStatus .latency {
  --ping-color: #93a6b8;
  display: inline-flex;
  flex: none;
  justify-content: center;
  align-items: center;
  gap: 6px;
  width: auto;
  min-width: 94px;
  height: 25px;
  margin-left: 0;
  padding: 0 8px;
  border: 1px solid #ffffff14;
  border-radius: 5px;
  background: #ffffff03;
  color: #bac5ce;
  font-size: 9px;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  line-height: 1;
  white-space: nowrap;
}
main > header .latency::before {
  content: '';
  width: 5px;
  height: 5px;
  flex: none;
  border-radius: 50%;
  background: var(--ping-color);
}
main > header .latency[data-quality='fast'] {
  --ping-color: #7fb7a1;
}
main > header .latency[data-quality='slow'],
main > header .latency[data-quality='offline'] {
  --ping-color: #d7988e;
}
main > header .latency[data-quality='offline'] {
  color: #8f9aa5;
}
main > header .latencyTrack {
  display: none;
}
main > header .latency:focus-visible {
  outline: 1px solid #93a6b8;
  outline-offset: 2px;
}
@media (max-width: 700px) {
  main > header #banner {
    max-width: 160px;
    font-size: 8px;
  }
  main > header .connectionStatus .latency {
    min-width: 89px;
    height: 23px;
    padding: 0 6px;
    font-size: 8px;
  }
}
