{"$schema":"https://ui.shadcn.com/schema/registry-item.json","name":"sound","type":"registry:ui","title":"Sound","description":"The cue every control answers a press with, built on Web Kits Audio.","dependencies":["@web-kits/audio"],"docs":"Sound: wrap your app once in <SoundEffects> from components/ui/sound.tsx.\nPress cues are read from the data-slot attributes on every Kobra component, so keep them.\nBrowsers hold audio until the page has been clicked, so the first press is silent by design.","files":[{"path":"components/ui/sound.tsx","content":"'use client'\n\nimport type { SoundPatch } from '@web-kits/audio'\nimport { SoundProvider, usePatch } from '@web-kits/audio/react'\nimport { useEffect, useId, useRef, useSyncExternalStore } from 'react'\n\nimport { cn } from '@/lib/utils'\n\nconst STORAGE_KEY = 'kobra-sound-muted'\nconst VOLUME_KEY = 'kobra-sound-volume'\nconst DEFAULT_VOLUME = 0.5\n\nconst PATCH = {\n  name: 'kobra-ui',\n  sounds: {\n\n    tap: {\n      source: { type: 'sine', frequency: 1300, fm: { ratio: 0.5, depth: 100 } },\n      envelope: { attack: 0, decay: 0.015, sustain: 0, release: 0.005 },\n      gain: 0.2,\n    },\n    select: {\n      source: { type: 'triangle', frequency: { start: 900, end: 780 } },\n      envelope: { attack: 0.001, decay: 0.055 },\n      gain: 0.26,\n    },\n    toggleOn: {\n      source: { type: 'sine', frequency: { start: 520, end: 880 } },\n      envelope: { attack: 0.002, decay: 0.085 },\n      gain: 0.3,\n    },\n    toggleOff: {\n      source: { type: 'sine', frequency: { start: 780, end: 420 } },\n      envelope: { attack: 0.002, decay: 0.085 },\n      gain: 0.28,\n    },\n\n    open: {\n      source: { type: 'triangle', frequency: { start: 320, end: 620 } },\n      filter: { type: 'lowpass', frequency: 2600 },\n      envelope: { attack: 0.006, decay: 0.13 },\n      gain: 0.24,\n    },\n    close: {\n      source: { type: 'triangle', frequency: { start: 560, end: 300 } },\n      filter: { type: 'lowpass', frequency: 2200 },\n      envelope: { attack: 0.004, decay: 0.11 },\n      gain: 0.22,\n    },\n    tick: {\n      source: { type: 'square', frequency: 1400 },\n      filter: { type: 'lowpass', frequency: 3000 },\n      envelope: { decay: 0.014 },\n      gain: 0.1,\n    },\n\n    sliderTick: {\n      layers: [\n        {\n          source: { type: 'noise', color: 'white' },\n          filter: { type: 'bandpass', frequency: 3000, resonance: 4 },\n          envelope: { attack: 0, decay: 0.02, sustain: 0, release: 0.006 },\n          gain: 0.19,\n        },\n        {\n          source: { type: 'sine', frequency: 700 },\n          envelope: { attack: 0, decay: 0.012, sustain: 0, release: 0.004 },\n          gain: 0.09,\n        },\n      ],\n    },\n    destructive: {\n      layers: [\n        {\n          source: { type: 'triangle', frequency: { start: 300, end: 170 } },\n          filter: { type: 'lowpass', frequency: 1400 },\n          envelope: { attack: 0.002, decay: 0.12 },\n          gain: 0.32,\n        },\n        {\n          source: { type: 'noise', color: 'brown' },\n          filter: { type: 'bandpass', frequency: 700, resonance: 1.1 },\n          envelope: { decay: 0.05 },\n          gain: 0.06,\n        },\n      ],\n    },\n    key: {\n      layers: [\n        {\n          source: { type: 'sine', frequency: { start: 1000, end: 900 } },\n          envelope: { attack: 0.001, decay: 0.028 },\n          gain: 0.14,\n        },\n        {\n          source: { type: 'noise', color: 'white' },\n          filter: { type: 'bandpass', frequency: 3200, resonance: 2 },\n          envelope: { decay: 0.01 },\n          gain: 0.035,\n        },\n      ],\n    },\n\n    success: {\n      layers: [\n        {\n          source: { type: 'triangle', frequency: 784 },\n          envelope: { attack: 0.004, decay: 0.16 },\n          gain: 0.22,\n        },\n        {\n          source: { type: 'triangle', frequency: 1175 },\n          envelope: { attack: 0.004, decay: 0.22 },\n          gain: 0.18,\n          delay: 0.075,\n        },\n      ],\n    },\n    error: {\n      layers: [\n        {\n          source: { type: 'triangle', frequency: 300 },\n          filter: { type: 'lowpass', frequency: 1200 },\n          envelope: { attack: 0.003, decay: 0.13 },\n          gain: 0.26,\n        },\n        {\n          source: { type: 'triangle', frequency: 224 },\n          filter: { type: 'lowpass', frequency: 1000 },\n          envelope: { attack: 0.003, decay: 0.2 },\n          gain: 0.24,\n          delay: 0.09,\n        },\n      ],\n    },\n\n    warning: {\n      layers: [\n        {\n          source: { type: 'triangle', frequency: 622 },\n          filter: { type: 'lowpass', frequency: 2800 },\n          envelope: { attack: 0.003, decay: 0.14 },\n          gain: 0.2,\n        },\n        {\n          source: { type: 'triangle', frequency: 622 },\n          filter: { type: 'lowpass', frequency: 2800 },\n          envelope: { attack: 0.003, decay: 0.18 },\n          gain: 0.17,\n          delay: 0.085,\n        },\n      ],\n    },\n\n    copy: {\n      layers: [\n        {\n          source: { type: 'sine', frequency: 1200 },\n          envelope: { attack: 0, decay: 0.015, sustain: 0, release: 0.006 },\n          gain: 0.16,\n        },\n        {\n          source: { type: 'sine', frequency: 1400 },\n          envelope: { attack: 0, decay: 0.015, sustain: 0, release: 0.006 },\n          delay: 0.04,\n          gain: 0.14,\n        },\n      ],\n    },\n\n    notification: {\n      layers: [\n        {\n          source: { type: 'triangle', frequency: 523 },\n          envelope: { attack: 0.008, decay: 0.3, sustain: 0.03, release: 0.12 },\n          gain: 0.14,\n        },\n        {\n          source: { type: 'triangle', frequency: 784 },\n          envelope: { attack: 0.008, decay: 0.25, sustain: 0.02, release: 0.1 },\n          delay: 0.12,\n          gain: 0.12,\n        },\n      ],\n    },\n\n    swoosh: {\n      source: { type: 'sine', frequency: { start: 300, end: 2000 } },\n      envelope: { attack: 0.008, decay: 0.12, sustain: 0, release: 0.04 },\n      gain: 0.12,\n    },\n\n    chirp: {\n      source: { type: 'sine', frequency: { start: 1200, end: 1500 } },\n      envelope: { attack: 0, decay: 0.03, sustain: 0, release: 0.01 },\n      gain: 0.08,\n    },\n\n    command: {\n      layers: [\n        {\n          source: { type: 'triangle', frequency: { start: 1046, end: 784 } },\n          envelope: { attack: 0.001, decay: 0.075 },\n          gain: 0.2,\n        },\n        {\n          source: { type: 'sine', frequency: 1568 },\n          envelope: { attack: 0.001, decay: 0.045 },\n          gain: 0.06,\n          delay: 0.018,\n        },\n      ],\n    },\n\n    blocked: {\n      source: { type: 'sine', frequency: 180 },\n      filter: { type: 'lowpass', frequency: 700 },\n      envelope: { attack: 0.004, decay: 0.06 },\n      gain: 0.16,\n    },\n  },\n} as const satisfies SoundPatch\n\nexport type SoundName = keyof (typeof PATCH)['sounds']\n\ntype Cue = { sound: SoundName; detune?: number; velocity?: number }\n\nconst JITTER: Record<SoundName, number> = {\n  tap: 26,\n  select: 22,\n  toggleOn: 14,\n  toggleOff: 14,\n  open: 10,\n  close: 10,\n  tick: 18,\n  sliderTick: 10,\n  key: 20,\n  destructive: 12,\n  blocked: 30,\n  chirp: 24,\n  command: 8,\n\n  copy: 6,\n\n  notification: 3,\n  swoosh: 14,\n\n  success: 5,\n  error: 5,\n  warning: 5,\n}\n\nfunction jitter(cents: number) {\n  return (Math.random() * 2 - 1) * cents\n}\n\ntype Patch = { play: (name: string, opts?: object) => unknown }\n\nlet audioWarm = false\n\nfunction play(patch: Patch, cue: Cue) {\n  const sound = () =>\n    patch.play(cue.sound, {\n      detune: (cue.detune ?? 0) + jitter(JITTER[cue.sound]),\n\n      velocity: (cue.velocity ?? 1) * (0.9 + Math.random() * 0.1),\n    })\n  if (audioWarm) {\n    sound()\n    return\n  }\n  audioWarm = true\n\n  requestAnimationFrame(() => {\n    window.setTimeout(sound, 0)\n  })\n}\n\nfunction warm(patch: Patch) {\n  if (audioWarm || !navigator.userActivation?.hasBeenActive) return\n  audioWarm = true\n  patch.play('tap', { volume: 0.0001 })\n}\n\nconst TOGGLE_SLOTS = new Set([\n  'switch',\n  'checkbox',\n  'toggle',\n  'toggle-group-item',\n  'radio-group-item',\n  'context-menu-checkbox-item',\n  'context-menu-radio-item',\n  'dropdown-menu-checkbox-item',\n  'dropdown-menu-radio-item',\n  'menubar-checkbox-item',\n  'menubar-radio-item',\n])\n\nconst INTERACTIVE =\n  '[data-slot], button, a[href], [role=\"button\"], [role=\"option\"], [role=\"menuitem\"], input[type=\"checkbox\"], input[type=\"radio\"]'\n\nconst TEXT_ENTRY =\n  'input:not([type=\"checkbox\"]):not([type=\"radio\"]):not([type=\"range\"]), textarea, [contenteditable]'\n\nfunction isOn(el: Element) {\n\n  if (el instanceof HTMLInputElement) return el.checked\n  return (\n    el.getAttribute('aria-checked') === 'true' ||\n    el.getAttribute('aria-pressed') === 'true' ||\n    el.getAttribute('data-checked') !== null\n  )\n}\n\nfunction classify(el: HTMLElement): Cue | null {\n  const slot = el.dataset.slot ?? ''\n\n  const named = el.dataset.sound\n  if (named && named in PATCH.sounds) return { sound: named as SoundName }\n\n  if (\n    TOGGLE_SLOTS.has(slot) ||\n    el.matches(\n\n      'input[type=\"checkbox\"], input[type=\"radio\"], [aria-pressed], [role=\"menuitemcheckbox\"], [role=\"menuitemradio\"]',\n    )\n  ) {\n\n    return { sound: isOn(el) ? 'toggleOff' : 'toggleOn' }\n  }\n\n  if (el.dataset.variant === 'destructive') return { sound: 'destructive' }\n  if (slot.endsWith('-close')) return { sound: 'close' }\n\n  if (slot.endsWith('-clear') || slot.endsWith('-remove')) return { sound: 'chirp' }\n  if (slot.endsWith('-trigger')) {\n\n    const expanded = el.getAttribute('aria-expanded')\n    if (expanded === null) return { sound: 'select' }\n    return { sound: expanded === 'true' ? 'close' : 'open' }\n  }\n  if (slot.endsWith('-item') || slot.endsWith('-link') || slot.endsWith('-option')) {\n    return { sound: 'select', detune: rowPitch(el) }\n  }\n  if (slot === 'slider-thumb' || slot === 'slider-track') return { sound: 'tick' }\n  if (slot === 'button' || el.matches('button, a[href], [role=\"button\"]')) {\n    const soft = el.dataset.variant === 'ghost' || el.dataset.variant === 'link'\n    return { sound: 'tap', velocity: soft ? 0.78 : 1 }\n  }\n  return null\n}\n\nfunction rowPitch(el: HTMLElement) {\n  const siblings = el.parentElement?.children\n  if (!siblings) return 0\n  return Math.min([...siblings].indexOf(el), 7) * 55\n}\n\nfunction soundFor(target: Element, keyed = false): Cue | null {\n\n  if (target.closest('.command-overlay')) {\n\n    const pointed = keyed ? target.getAttribute('aria-activedescendant') : null\n    const row = pointed ? document.getElementById(pointed) : target.closest('.command-option')\n    if (!row) return null\n    return { sound: row.querySelector('.command-option-more') ? 'chirp' : 'command' }\n  }\n\n  const labeled = target.closest('label')?.control ?? target\n\n  if (labeled.closest(TEXT_ENTRY)) return null\n\n  let el = labeled.closest<HTMLElement>(INTERACTIVE)\n  while (el) {\n\n    if (el.matches(':disabled, [aria-disabled=\"true\"], [data-disabled]')) {\n      return { sound: 'blocked' }\n    }\n    const cue = classify(el)\n    if (cue) return cue\n    el = el.parentElement?.closest<HTMLElement>(INTERACTIVE) ?? null\n  }\n  return null\n}\n\nfunction span(min: number, max: number, value: number) {\n  return max === min ? 0 : Math.min(1, Math.max(0, (value - min) / (max - min)))\n}\n\nfunction sliderRange(el: HTMLElement) {\n  if (el instanceof HTMLInputElement) {\n    return {\n      min: Number(el.min || 0),\n      max: Number(el.max || 100),\n      step: Math.abs(Number(el.step)) || 1,\n    }\n  }\n  const read = (name: string, fallback: number) => {\n    const value = Number(el.getAttribute(name))\n    return Number.isFinite(value) ? value : fallback\n  }\n  return { min: read('aria-valuemin', 0), max: read('aria-valuemax', 100), step: 1 }\n}\n\nfunction SoundEffectListener() {\n  const patch = usePatch(PATCH)\n  const muted = useSoundMuted()\n\n  const wasMuted = useRef(muted)\n  useEffect(() => {\n    const cameBack = wasMuted.current && !muted\n    wasMuted.current = muted\n    if (cameBack) play(patch, { sound: 'swoosh' })\n  }, [muted, patch])\n\n  useEffect(() => {\n    if (!patch.ready) return\n\n    const TICK_GAP_MS = 28\n    const TICK_LAG_MS = 60\n    const DRAG_SLOP_PX = 3\n\n    let grab: { x: number; y: number; dragged: boolean } | null = null\n    let nextTickAt = 0\n    const queued = new Set<ReturnType<typeof setTimeout>>()\n\n    const stopTicking = () => {\n      for (const timer of queued) clearTimeout(timer)\n      queued.clear()\n      nextTickAt = 0\n    }\n\n    const tick = (detune: number, now: number) => {\n      if (nextTickAt - now > TICK_LAG_MS) return false\n      const wait = nextTickAt - now\n      nextTickAt += TICK_GAP_MS\n      const cue = { sound: 'sliderTick', detune } as const\n      if (wait <= 0) {\n        play(patch, cue)\n        return true\n      }\n      const timer = setTimeout(() => {\n        queued.delete(timer)\n        play(patch, cue)\n      }, wait)\n      queued.add(timer)\n      return true\n    }\n\n    const ratchet = (el: HTMLElement, from: number, to: number) => {\n      const { min, max, step } = sliderRange(el)\n      const crossed = Math.round(Math.abs(to - from) / step)\n      if (!Number.isFinite(crossed) || crossed < 1) return\n\n      const now = performance.now()\n      nextTickAt = Math.max(nextTickAt, now)\n      const direction = Math.sign(to - from)\n\n      for (let i = 1; i <= crossed; i++) {\n\n        const value = from + direction * step * i\n        if (!tick(span(min, max, value) * 900, now)) break\n      }\n    }\n\n    const onPointerDown = (event: PointerEvent) => {\n\n      if (event.button !== 0 || !(event.target instanceof Element)) return\n      const cue = soundFor(event.target)\n      if (!cue) return\n      if (cue.sound === 'tick') grab = { x: event.clientX, y: event.clientY, dragged: false }\n      play(patch, cue)\n    }\n\n    const onKeyDown = (event: KeyboardEvent) => {\n      if (event.key !== 'Enter' && event.key !== ' ') return\n      if (event.repeat || !(event.target instanceof Element)) return\n      const typing = event.target.matches(TEXT_ENTRY)\n\n      const driving = event.key === 'Enter' && event.target.closest('.command-overlay')\n      if (typing && !driving) return\n      const cue = soundFor(event.target, true)\n      if (cue) play(patch, cue)\n    }\n\n    const onPointerMove = (event: PointerEvent) => {\n      if (!grab || grab.dragged) return\n      if (Math.hypot(event.clientX - grab.x, event.clientY - grab.y) > DRAG_SLOP_PX)\n        grab.dragged = true\n    }\n\n    const onPointerUp = () => {\n      if (grab) stopTicking()\n      grab = null\n    }\n\n    const onContextMenu = () => play(patch, { sound: 'open' })\n\n    const onInput = (event: Event) => {\n\n      if (!event.isTrusted) return\n      const el = event.target\n      if (!(el instanceof HTMLInputElement) || !el.closest('[data-slot=\"input-otp\"]')) return\n      const deleting = (event as InputEvent).inputType?.startsWith('delete') ?? false\n      play(patch, { sound: 'key', detune: el.value.length * 45 - (deleting ? 260 : 0) })\n    }\n\n    const observer = new MutationObserver((records) => {\n      let slid = false\n\n      for (const record of records) {\n        const el = record.target\n        if (!(el instanceof HTMLElement)) continue\n        const value = el.getAttribute(record.attributeName ?? '')\n\n        const entered = value !== null && value !== 'false' && value !== record.oldValue\n\n        switch (record.attributeName) {\n          case 'aria-valuenow': {\n            if (slid || !el.matches('input[type=\"range\"], [role=\"slider\"]')) break\n\n            if (value === null || record.oldValue === null) break\n\n            if (grab && !grab.dragged) break\n            slid = true\n            if (grab) {\n              ratchet(el, Number(record.oldValue), Number(value))\n              break\n            }\n            const { min, max } = sliderRange(el)\n            const now = performance.now()\n            nextTickAt = Math.max(nextTickAt, now)\n            tick(span(min, max, Number(value)) * 900, now)\n            break\n          }\n          case 'data-success': {\n            if (entered) play(patch, { sound: 'success' })\n            break\n          }\n          case 'aria-invalid':\n          case 'data-error': {\n            if (entered) play(patch, { sound: 'error' })\n            break\n          }\n          default:\n            break\n        }\n      }\n    })\n\n    observer.observe(document.body, {\n      subtree: true,\n      attributes: true,\n      attributeOldValue: true,\n      attributeFilter: ['aria-valuenow', 'aria-invalid', 'data-success', 'data-error'],\n    })\n\n    document.addEventListener('pointerdown', onPointerDown, true)\n    document.addEventListener('pointermove', onPointerMove, true)\n    document.addEventListener('pointerup', onPointerUp, true)\n    document.addEventListener('pointercancel', onPointerUp, true)\n    document.addEventListener('keydown', onKeyDown, true)\n    document.addEventListener('contextmenu', onContextMenu, true)\n    document.addEventListener('input', onInput, true)\n    return () => {\n      observer.disconnect()\n      stopTicking()\n      document.removeEventListener('pointerdown', onPointerDown, true)\n      document.removeEventListener('pointermove', onPointerMove, true)\n      document.removeEventListener('pointerup', onPointerUp, true)\n      document.removeEventListener('pointercancel', onPointerUp, true)\n      document.removeEventListener('keydown', onKeyDown, true)\n      document.removeEventListener('contextmenu', onContextMenu, true)\n      document.removeEventListener('input', onInput, true)\n    }\n  }, [patch])\n\n  useEffect(() => {\n    if (!patch.ready || muted) return\n    const handle = window.setTimeout(() => {\n      warm(patch)\n    }, 400)\n    return () => {\n      window.clearTimeout(handle)\n    }\n  }, [patch, muted])\n\n  return null\n}\n\nconst listeners = new Set<() => void>()\n\nfunction subscribeMuted(onChange: () => void) {\n  listeners.add(onChange)\n  window.addEventListener('storage', onChange)\n  return () => {\n    listeners.delete(onChange)\n    window.removeEventListener('storage', onChange)\n  }\n}\n\nfunction notify() {\n  for (const onChange of listeners) onChange()\n}\n\nexport function setSoundMuted(muted: boolean) {\n  localStorage.setItem(STORAGE_KEY, muted ? '1' : '0')\n  notify()\n}\n\nexport function useSoundMuted() {\n  return useSyncExternalStore(\n    subscribeMuted,\n    () => localStorage.getItem(STORAGE_KEY) === '1',\n    () => false,\n  )\n}\n\nexport function setSoundVolume(volume: number) {\n  localStorage.setItem(VOLUME_KEY, String(volume))\n  notify()\n}\n\nexport function useSoundVolume() {\n  return useSyncExternalStore(\n    subscribeMuted,\n    () => {\n      const stored = Number(localStorage.getItem(VOLUME_KEY))\n\n      return Number.isFinite(stored) && stored > 0 && stored <= 1 ? stored : DEFAULT_VOLUME\n    },\n    () => DEFAULT_VOLUME,\n  )\n}\n\nexport function SoundEffects({ children }: { children: React.ReactNode }) {\n  const muted = useSoundMuted()\n  const volume = useSoundVolume()\n\n  return (\n    <SoundProvider enabled={!muted} volume={volume}>\n      <SoundEffectListener />\n      {children}\n    </SoundProvider>\n  )\n}\n\nconst SPEAKER =\n  'M11 4.702a.705.705 0 0 0-1.203-.498L6.413 7.587A1.4 1.4 0 0 1 5.416 8H3a1 1 0 0 0-1 1v6a1 1 0 0 0 1 1h2.416a1.4 1.4 0 0 1 .997.413l3.383 3.384A.705.705 0 0 0 11 19.298z'\nconst WAVE_INNER = 'M16 9a5 5 0 0 1 0 6'\nconst WAVE_OUTER = 'M19.364 18.364a9 9 0 0 0 0-12.728'\nconst SLASH = 'M2 2 22 22'\n\nexport function SoundToggle({ className, onClick, ...props }: React.ComponentProps<'button'>) {\n\n  const muted = useSoundMuted()\n  const maskId = useId()\n\n  return (\n    <button\n      type=\"button\"\n      aria-label={muted ? 'Unmute interface sounds' : 'Mute interface sounds'}\n      aria-pressed={muted}\n      onClick={(event) => {\n        onClick?.(event)\n        if (!event.defaultPrevented) setSoundMuted(!muted)\n      }}\n\n      data-sound=\"swoosh\"\n      {...props}\n      className={cn(\n        'flex size-7 cursor-pointer items-center justify-center rounded text-shell-fg-faint transition-[transform,box-shadow] duration-100 ease-out outline-none hover:bg-foreground/5 hover:text-shell-fg-muted focus-visible:ring-2 focus-visible:ring-ring active:scale-[0.96] motion-reduce:transition-none',\n        className,\n      )}\n    >\n      <svg\n        data-muted={muted}\n        viewBox=\"0 0 24 24\"\n        width={17}\n        height={17}\n        fill=\"none\"\n        stroke=\"currentColor\"\n        strokeWidth={1.8}\n        strokeLinecap=\"round\"\n        strokeLinejoin=\"round\"\n        aria-hidden\n      >\n\n        <mask id={maskId}>\n          <rect width=\"24\" height=\"24\" fill=\"white\" />\n          <path className=\"sound-slash\" d={SLASH} pathLength={1} stroke=\"black\" strokeWidth={4} />\n        </mask>\n        <g mask={`url(#${maskId})`}>\n          <path className=\"sound-speaker\" d={SPEAKER} />\n          <path className=\"sound-wave sound-wave-inner\" d={WAVE_INNER} />\n          <path className=\"sound-wave sound-wave-outer\" d={WAVE_OUTER} />\n        </g>\n        <path className=\"sound-slash\" d={SLASH} pathLength={1} />\n      </svg>\n    </button>\n  )\n}\n","type":"registry:ui","target":"components/ui/sound.tsx"}],"cssVars":{"theme":{"--color-shell-fg-muted":"var(--shell-fg-muted)","--color-shell-fg-faint":"var(--shell-fg-faint)"},"light":{"--shell-fg-muted":"#333333","--shell-fg-faint":"#6d6d6d"},"dark":{"--shell-fg-muted":"#d4d4d4","--shell-fg-faint":"#8e8e8e"}},"css":{".sound-slash":{"stroke-dasharray":"1 2","stroke-dashoffset":"1.02","--slash-ms":"200ms","transition":"stroke-dashoffset var(--slash-ms) var(--ease-out)"},"[data-muted='true'] .sound-slash":{"stroke-dashoffset":"0","--slash-ms":"260ms"},".sound-wave":{"transform-box":"view-box","transform-origin":"11px 12px","transition":"opacity 130ms var(--ease-out) var(--wave-delay), transform 130ms var(--ease-out) var(--wave-delay), filter 130ms var(--ease-out) var(--wave-delay)"},"[data-muted='true'] .sound-wave":{"opacity":"0","transform":"scale(0.25)","filter":"blur(1px)"},".sound-wave-inner":{"--wave-delay":"45ms"},".sound-wave-outer":{"--wave-delay":"20ms"},"[data-muted='true'] .sound-wave-inner":{"--wave-delay":"50ms"},"[data-muted='true'] .sound-wave-outer":{"--wave-delay":"75ms"},".sound-speaker":{"--speaker-ms":"220ms","--speaker-delay":"0ms","transition":"transform var(--speaker-ms) var(--ease-out) var(--speaker-delay)"},"[data-muted='true'] .sound-speaker":{"transform":"translateX(5.5px)","--speaker-ms":"260ms","--speaker-delay":"80ms"},"@media (prefers-reduced-motion: reduce)":{".sound-slash, .sound-wave, .sound-speaker":{"transition":"none"}}}}