.file-tools {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  margin-bottom: 7px;
}

.file-tools button,
.chart-actions button {
  padding: 7px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--accent);
  background: var(--panel);
  cursor: pointer;
  font-size: 8px;
}

.file-tools button:hover:not(:disabled),
.chart-actions button:hover:not(:disabled) {
  border-color: var(--accent);
  background: var(--accent-soft);
}

.visibility {
  display: grid;
  place-items: center;
  cursor: pointer;
}

.visibility input {
  position: absolute;
  opacity: 0;
}

.visibility i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--muted);
}

.visibility input:checked + i {
  background: var(--file);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--file) 12%, transparent);
}

.chart-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 7px 3px 0;
  color: var(--muted);
  font-size: 8px;
}

.chart-actions label {
  display: flex;
  align-items: center;
  gap: 6px;
}

.chart-actions input {
  accent-color: var(--accent);
}

.compare-curve {
  fill: none;
  stroke-width: 1.45;
  opacity: .68;
}

.compare-curve.active {
  stroke-width: 2.25;
  opacity: 1;
}

.legend .file-legend {
  color: var(--legend);
}
