.wrap {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px solid var(--border-color, rgba(255, 255, 255, 0.1));
  background: var(--bg-tertiary, rgba(255, 255, 255, 0.02));
}

/* Unset + mandatory is the state that blocks a scan, so it reads as a warning
   rather than as one more optional field. */
.missing {
  border-color: rgba(245, 158, 11, 0.35);
  background: rgba(245, 158, 11, 0.08);
}

.head {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-primary);
}

.badge {
  font-size: 10px;
  font-weight: 600;
  padding: 1px 6px;
  border-radius: 4px;
  letter-spacing: 0.02em;
  text-transform: none;
}

.badgeGlobal {
  background: var(--status-info-bg, rgba(59, 130, 246, 0.15));
  color: var(--status-info-text, #60a5fa);
}

.badgeSet {
  background: rgba(34, 197, 94, 0.15);
  color: #4ade80;
}

.badgeMissing {
  background: rgba(245, 158, 11, 0.15);
  color: #f59e0b;
}

.badgeOptional {
  background: var(--bg-hover, rgba(255, 255, 255, 0.06));
  color: var(--text-secondary);
}

.row {
  display: flex;
  align-items: center;
  gap: 6px;
}

.row input {
  flex: 1;
  min-width: 0;
}

.iconButton {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px;
  border-radius: 6px;
  border: 1px solid var(--border-color, rgba(255, 255, 255, 0.1));
  background: transparent;
  color: var(--text-secondary);
  cursor: pointer;
}

.iconButton:hover {
  color: var(--text-primary);
  background: var(--bg-hover, rgba(255, 255, 255, 0.06));
}

.saveButton {
  padding: 6px 12px;
  border-radius: 6px;
  border: 1px solid var(--accent-primary);
  background: var(--accent-primary);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
}

.saveButton:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.hint {
  font-size: 11px;
  line-height: 1.45;
  color: var(--text-secondary);
  margin: 0;
}

.error {
  font-size: 11px;
  color: var(--status-error-text, #f87171);
  margin: 0;
}

.saved {
  font-size: 11px;
  color: #4ade80;
  margin: 0;
}

/* Wraps BETWEEN the links, never inside one: "Get a token" and its external-link
   icon are one unit, and a break between them left the icon stranded on its own
   line on every narrow surface these shortcuts appear on. */
.links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 10px;
  font-size: 11px;
}

.links a {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
  color: var(--accent-primary);
  font-weight: 500;
}

.links a svg {
  flex: 0 0 auto;
}
