.mind-sound-toggle {
  position: fixed;
  right: max(14px, env(safe-area-inset-right));
  bottom: max(14px, env(safe-area-inset-bottom));
  z-index: 10000;
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid rgba(110, 119, 142, .24);
  border-radius: 999px;
  background: rgba(250, 252, 255, .82);
  box-shadow: 0 8px 24px rgba(24, 31, 52, .12);
  color: rgba(var(--text-rgb, 24, 26, 36), .74);
  -webkit-backdrop-filter: blur(16px) saturate(1.25);
  backdrop-filter: blur(16px) saturate(1.25);
  font: 700 11px/1 system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: .01em;
  cursor: pointer;
  opacity: .78;
  transition: opacity .16s ease, transform .16s ease, border-color .16s ease, background-color .16s ease;
  -webkit-tap-highlight-color: transparent;
}

.mind-sound-toggle:hover {
  opacity: 1;
  transform: translateY(-1px);
  border-color: rgba(70, 86, 128, .36);
}

.mind-sound-toggle:active {
  transform: translateY(0) scale(.98);
}

.mind-sound-toggle:focus-visible {
  outline: 3px solid rgba(44, 88, 200, .28);
  outline-offset: 3px;
  opacity: 1;
}

.mind-sound-toggle[aria-pressed="true"] {
  background: rgba(235, 238, 244, .82);
  color: rgba(var(--text-rgb, 24, 26, 36), .56);
}

html[data-theme="dark"] .mind-sound-toggle,
html[data-theme="purple"] .mind-sound-toggle {
  border-color: rgba(210, 216, 236, .2);
  background: rgba(24, 26, 36, .76);
  box-shadow: 0 8px 24px rgba(0, 0, 0, .24);
  color: rgba(var(--text-rgb, 238, 240, 245), .78);
}

@media (max-width: 560px) {
  .mind-sound-toggle {
    right: max(10px, env(safe-area-inset-right));
    bottom: max(10px, env(safe-area-inset-bottom));
    min-height: 32px;
    padding-inline: 10px;
    font-size: 10px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .mind-sound-toggle { transition: none; }
}
