.download-tune-panel[hidden] {
  display: none !important;
}

.download-editor-toggle[hidden] {
  display: none !important;
}

.download-editor-toggle {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 42;
  min-height: 34px;
  padding: 0 13px;
  font-size: 12px;
  font-weight: 800;
  line-height: 1;
  color: rgba(255, 255, 255, 0.9);
  cursor: pointer;
  background: rgba(5, 10, 18, 0.62);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--download-radius-pill);
  box-shadow:
    0 16px 42px rgba(0, 0, 0, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(18px) saturate(1.2);
  transition:
    background-color 160ms ease,
    transform 160ms ease;
}

.download-editor-toggle:hover {
  background: rgba(5, 10, 18, 0.76);
  transform: translateY(-1px);
}

.download-editor-toggle:active {
  transform: scale(0.96);
}

.download-tune-panel {
  position: fixed;
  top: 24px;
  right: 24px;
  z-index: 44;
  display: grid;
  gap: 14px;
  width: 340px;
  max-height: calc(100svh - 48px);
  padding: 16px;
  overflow-y: auto;
  color: rgba(255, 255, 255, 0.92);
  background: rgba(5, 10, 18, 0.66);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 22px;
  box-shadow:
    0 28px 70px rgba(0, 0, 0, 0.34),
    inset 0 1px 0 rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(24px) saturate(1.2);
}

.download-tune-header {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
}

.download-tune-header-actions {
  display: flex;
  gap: 8px;
  align-items: center;
}

.download-tune-header strong {
  font-size: 14px;
  font-weight: 800;
  line-height: 19px;
}

.download-tune-header button {
  min-height: 30px;
  padding: 0 12px;
  font-size: 12px;
  font-weight: 750;
  color: rgba(255, 255, 255, 0.88);
  cursor: pointer;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--download-radius-pill);
  transition:
    background-color 160ms ease,
    transform 160ms ease;
}

.download-tune-header button:hover {
  background: rgba(255, 255, 255, 0.18);
  transform: translateY(-1px);
}

.download-tune-header button:active {
  transform: scale(0.96);
}

.download-tune-group {
  display: grid;
  gap: 12px;
  padding: 13px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
}

.download-tune-group h2 {
  margin: 0;
  font-size: 12px;
  font-weight: 800;
  line-height: 16px;
  color: rgba(255, 255, 255, 0.58);
}

.download-tune-group label {
  display: grid;
  gap: 7px;
  min-width: 0;
  font-size: 12px;
  font-weight: 700;
  line-height: 16px;
}

.download-tune-group label > span {
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: space-between;
}

.download-tune-group output {
  min-width: 44px;
  color: rgba(255, 255, 255, 0.58);
  text-align: right;
}

.download-tune-group input[type="range"] {
  width: 100%;
  accent-color: var(--download-blue);
}

.download-tune-group input[type="color"] {
  width: 44px;
  height: 30px;
  padding: 0;
  cursor: pointer;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 10px;
}

.download-tune-stop {
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr);
  gap: 12px;
  align-items: end;
}

.download-tune-star-set {
  display: grid;
  gap: 10px;
  padding: 11px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 14px;
}

.download-tune-star-set strong {
  font-size: 12px;
  font-weight: 800;
  line-height: 16px;
  color: rgba(255, 255, 255, 0.72);
}
