/* Link diagnostics overlay (opened by clicking the HUD LINK value). */

.hud-value.clickable {
  cursor: pointer;
  color: var(--lime, #b6ff3c);
  text-decoration: underline dotted;
  text-underline-offset: 4px;
}

.diag {
  position: fixed;
  inset: 0;
  z-index: 90;
  background: rgba(6, 8, 12, 0.86);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.diag[hidden] {
  display: none;
}

.diag-box {
  width: min(760px, 100%);
  max-height: 80vh;
  display: flex;
  flex-direction: column;
  background: #0d1117;
  border: 3px solid var(--cyan, #5be9ff);
  box-shadow: 8px 8px 0 rgba(0, 0, 0, 0.7);
}

.diag-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 8px 10px;
  background: rgba(91, 233, 255, 0.12);
  border-bottom: 2px solid rgba(91, 233, 255, 0.4);
  font-size: 10px;
  letter-spacing: 0.08em;
  color: var(--cyan, #5be9ff);
}

.diag-tools {
  display: flex;
  gap: 6px;
}

.diag-btn {
  font-family: inherit;
  font-size: 9px;
  letter-spacing: 0.06em;
  padding: 6px 8px;
  color: #d8f5ff;
  background: #16202b;
  border: 2px solid #2b4152;
  cursor: pointer;
}

.diag-btn:hover {
  border-color: var(--cyan, #5be9ff);
  color: #fff;
}

.diag-btn:disabled {
  opacity: 0.55;
  cursor: default;
}

.diag-text {
  margin: 0;
  padding: 12px;
  overflow: auto;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 11px;
  line-height: 1.55;
  color: #cfe9ff;
  white-space: pre-wrap;
  word-break: break-word;
}
