.vh-option-edit-panel {
  position: fixed;
  top: 88px;
  right: 16px;
  z-index: 1080;
  width: 300px;
  max-height: calc(100vh - 120px);
  overflow-y: auto;
  padding: 14px 16px 16px;
  border-radius: 12px;
  background: rgba(18, 18, 18, 0.92);
  color: #f4f4f4;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(8px);
  font-family: Inter, Segoe UI, sans-serif;
}

.vh-option-edit-panel[hidden] {
  display: none !important;
}

.vh-option-edit-panel__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 12px;
}

.vh-option-edit-panel__head h2 {
  margin: 0;
  font-size: 14px;
  font-weight: 600;
}

.vh-option-edit-panel__done {
  border: 0;
  border-radius: 999px;
  padding: 4px 12px;
  background: #fff;
  color: #111;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
}

.vh-option-edit-row {
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-rows: auto auto;
  gap: 2px 8px;
  margin: 8px 0;
  font-size: 12px;
}

.vh-option-edit-row span {
  grid-column: 1;
}

.vh-option-edit-row output {
  grid-column: 2;
  opacity: 0.8;
}

.vh-option-edit-row input[type="range"] {
  grid-column: 1 / -1;
  width: 100%;
  margin: 0;
}

.vh-option-edit-group {
  margin: 12px 0 4px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  opacity: 0.7;
}

.vh-option-edit-row--color {
  grid-template-rows: auto;
  align-items: center;
}

.vh-option-edit-row--color input[type="color"] {
  grid-column: 2;
  width: 42px;
  height: 28px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.option-legend-adjust-btn {
  margin-left: 8px;
  border: 0;
  border-radius: 999px;
  padding: 2px 10px;
  background: rgba(255, 255, 255, 0.16);
  color: inherit;
  font-size: 12px;
  cursor: pointer;
}

.option-legend-adjust-btn:hover {
  background: rgba(255, 255, 255, 0.28);
}

.vh-option-edit-panel__actions {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 10px;
}

.vh-option-edit-panel__reset {
  border: 0;
  border-radius: 8px;
  padding: 6px 10px;
  background: rgba(255, 255, 255, 0.12);
  color: inherit;
  font-size: 12px;
  cursor: pointer;
}

.vh-option-edit-panel__reset:hover {
  background: rgba(255, 255, 255, 0.22);
}
