.editor-help {
  position: relative;
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  margin-left: 4px;
  vertical-align: middle;
}

.editor-help-trigger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 17px;
  height: 17px;
  padding: 0;
  border-radius: 50%;
  border: 1px solid #777;
  background: #3a3a3a;
  color: #ddd;
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
  cursor: help;
  font-family: inherit;
  box-sizing: border-box;
  user-select: none;
}

.editor-help-trigger:hover,
.editor-help-trigger:focus-visible {
  border-color: #9fd0ff;
  color: #9fd0ff;
  outline: none;
}

.editor-help:hover,
.editor-help:focus-within {
  z-index: 10060;
}

.editor-help-popover {
  display: none;
  position: absolute;
  left: 50%;
  top: calc(100% + 8px);
  bottom: auto;
  transform: translateX(-50%);
  z-index: 10061;
  width: min(340px, 78vw);
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid #666;
  background: #f7f7f7;
  color: #222;
  font-size: 12px;
  font-weight: 400;
  line-height: 1.45;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.35);
  text-align: left;
  pointer-events: none;
}

.editor-help:hover .editor-help-popover,
.editor-help:focus-within .editor-help-popover {
  display: block;
}

.batch-section-label .editor-help,
.route-panel h2 .editor-help,
.route-editor-header-actions .editor-help,
.overlay-panel .panel-title .editor-help,
.overlay-panel .bias-label .editor-help,
.overlay-panel .control-map-header .editor-help,
.overlay-panel .control-map-section-label .editor-help,
.overlay-panel .control-map-row label .editor-help,
.overlay-panel .panel-action-btn .editor-help {
  margin-left: 6px;
}

.overlay-panel .panel-action-btn {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px;
}

.controls .editor-help,
.legend-item .editor-help,
.quick-point-controls .editor-help {
  margin-left: 4px;
}

.toolbar-item-with-help {
  display: inline-flex;
  align-items: center;
  gap: 2px;
}

.batch-toolbar,
.telemetry-list-header,
.route-editor-header-actions,
.route-panel,
.overlay-panel .panel-body,
.overlay-panel .panel-header {
  overflow: visible;
}

.telemetry-list td.gpx-elevation-mismatch {
  color: #ff6b6b;
  font-weight: 600;
}