/* MasterForge Pro Master — Project save/load (v4.18.0)
 *
 * Save / Open buttons in the pää-waveform toolbar. Neutral grey accent —
 * file operations, not DSP — to read as a quieter cluster next to the
 * Surgical / History / A/B buttons.
 *
 * Also: a simple fullscreen overlay shown while a .mfproj is being
 * unpacked + decoded.
 */

/* ── Pää-waveform toolbar: Save / Open buttons ───────────────── */
.pm-wv-project-btn {
  background: transparent;
  border: 1px solid rgba(180, 180, 200, 0.40);
  color: var(--pm-text-primary);
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  padding: 4px 12px;
  margin-left: 4px;
  border-radius: 5px;
  cursor: pointer;
  transition: all 0.15s ease;
  white-space: nowrap;
}
.pm-wv-project-btn:hover:not(:disabled) {
  background: rgba(180, 180, 200, 0.10);
  border-color: rgba(180, 180, 200, 0.65);
}
.pm-wv-project-btn:disabled {
  opacity: 0.40;
  cursor: not-allowed;
}

/* ── Restore overlay shown while .mfproj is being unpacked ───── */
.pm-project-restoring {
  position: fixed;
  inset: 0;
  background: rgba(8, 10, 14, 0.65);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  font-family: 'JetBrains Mono', monospace;
  color: var(--pm-text-primary);
}
.pm-project-restoring-inner {
  background: rgba(15, 18, 25, 0.95);
  border: 1px solid rgba(180, 180, 200, 0.40);
  padding: 28px 36px;
  border-radius: 8px;
  font-size: 0.95rem;
  letter-spacing: 0.04em;
}
.pm-project-restoring-inner::before {
  content: '';
  display: inline-block;
  width: 14px;
  height: 14px;
  margin-right: 12px;
  border: 2px solid rgba(180, 180, 200, 0.40);
  border-top-color: var(--pm-text-primary);
  border-radius: 50%;
  vertical-align: -2px;
  animation: pm-project-spin 0.85s linear infinite;
}
@keyframes pm-project-spin {
  to { transform: rotate(360deg); }
}
