{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "example-phasecraft",
  "type": "registry:block",
  "title": "Phasecraft",
  "description": "A silent grey-panel wavetable reference study with ruby selectors, dual envelopes, harmonic bars and a violet waveform.",
  "dependencies": [
    "@base-ui/react",
    "maru-icons@^0.0.1",
    "maruaudio@>=0.0.3 <0.1.0"
  ],
  "registryDependencies": [
    "https://pluginui.com/r/core-console-button.json",
    "https://pluginui.com/r/core-fader.json",
    "https://pluginui.com/r/core-knob.json",
    "https://pluginui.com/r/core-number-field.json",
    "https://pluginui.com/r/core-segmented-control.json",
    "https://pluginui.com/r/core-select.json",
    "https://pluginui.com/r/core-waveform-selector.json",
    "https://pluginui.com/r/core-weight-bars.json"
  ],
  "files": [
    {
      "path": "components/blocks/phasecraft.tsx",
      "content": "/**\n * Source: https://pluginui.com/examples/phasecraft\n * Copyright © [Maru](https://maru.audio)\n *\n * Maru UI Kit — https://maru.audio/ui-kit\n *\n * Installed from the Maru UI registry. This file is yours now: edit it\n * freely, it will not be overwritten unless you re-run the add command.\n *\n * Keep this item’s companion files and CSS imports together. Dependencies\n * declared by the registry are installed with the source.\n */\nimport { useState } from \"react\"\nimport { Knob } from \"@/components/ui/knob\"\nimport { WeightBars } from \"@/components/ui/weight-bars\"\nimport { NumberField } from \"@/components/ui/number-field\"\nimport {\n  Select,\n  SelectTrigger,\n  SelectValue,\n  SelectContent,\n  SelectItem,\n} from \"@/components/ui/select\"\nimport { WaveformGlyph } from \"@/components/ui/waveform-selector\"\nimport { Fader } from \"@/components/ui/fader\"\nimport { SegmentedControl } from \"@/components/ui/segmented-control\"\nimport {\n  ConsoleButton,\n  ConsoleToggle,\n} from \"@/components/ui/console-button\"\nimport { percent } from \"maruaudio/ui/shared/format\"\nimport { themeVars } from \"maruaudio/ui/shared/theme\"\nimport { UI_KIT_TEXT_SELECTION_STYLES } from \"maruaudio/ui/shared/portable-styles\"\nimport \"@/components/blocks/phasecraft.css\"\n\nconst WAVES = [\"Saw\", \"Sine\", \"Pulse\", \"Tri\", \"Noise\"]\nconst options = (values: string[]) =>\n  values.map((value) => ({ value, label: value }))\nconst WAVE_SHAPES = [\"sawtooth\", \"sine\", \"square\", \"triangle\", \"sine\"] as const\n\n/** Visual inspiration: early synth interfaces by Steve Duda, creator of Serum. */\n/** Silent reference study. Wave and harmonic plots illustrate local control state. */\nexport function Phasecraft() {\n  const [values, setValues] = useState<Record<string, number>>({\n    position: 0.28,\n    table: 0,\n    blend: 0.35,\n    cutoff: 0.68,\n    resonance: 0.18,\n  })\n  const [wave, setWave] = useState(\"Saw\")\n  const [sub, setSub] = useState(\"Pulse\")\n  const [lfo, setLfo] = useState(\"A\")\n  const [filter, setFilter] = useState(\"L\")\n  const [mono, setMono] = useState(false)\n  const [mirror, setMirror] = useState(false)\n  const [drawing, setDrawing] = useState(false)\n  const [drawn, setDrawn] = useState<number[] | null>(null)\n  const [harmonics, setHarmonics] = useState(\n    Array.from(\n      { length: 16 },\n      (_, i) => 0.25 + Math.abs(Math.sin(i * 0.57)) * 0.65\n    )\n  )\n  const [routes, setRoutes] = useState<Record<string, string>>({\n    \"amp-2\": \"OFF\",\n    \"amp-3\": \"OFF\",\n    \"filt-2\": \"O2 PWM\",\n    \"filt-3\": \"OFF\",\n  })\n  const set = (key: string, value: number) =>\n    setValues((previous) => ({ ...previous, [key]: value }))\n  const value = (key: string, initial = 0.45) => values[key] ?? initial\n  const select = (\n    key: string,\n    label: string,\n    items: string[],\n    current: string,\n    change: (next: string) => void\n  ) => (\n    <Select\n      key={key}\n      value={current}\n      onValueChange={(next) => next && change(next)}\n    >\n      <SelectTrigger className=\"phasecraft__select\" aria-label={label}>\n        <SelectValue />\n      </SelectTrigger>\n      <SelectContent>\n        {items.map((item) => (\n          <SelectItem key={item} value={item}>\n            {item}\n          </SelectItem>\n        ))}\n      </SelectContent>\n    </Select>\n  )\n  const octave = (key: string) => (\n    <div className=\"phasecraft__octave\">\n      <ConsoleButton\n        aria-label={`${key} octave down`}\n        onClick={() =>\n          set(`${key}-octave`, Math.max(-4, value(`${key}-octave`, 0) - 1))\n        }\n      >\n        −\n      </ConsoleButton>\n      <NumberField\n        unstyled\n        aria-label={`${key} octave`}\n        value={value(`${key}-octave`, 0)}\n        min={-4}\n        max={4}\n        onValueCommitted={(next) => set(`${key}-octave`, next ?? 0)}\n        inputWidth=\"3ch\"\n      />\n      <ConsoleButton\n        aria-label={`${key} octave up`}\n        onClick={() =>\n          set(`${key}-octave`, Math.min(4, value(`${key}-octave`, 0) + 1))\n        }\n      >\n        +\n      </ConsoleButton>\n    </div>\n  )\n  const dial = (\n    key: string,\n    label: string,\n    initial = 0.45,\n    size = 34,\n    caption = true\n  ) => (\n    <span\n      key={key}\n      className={`phasecraft__dial ${[\"porta\", \"unison\", \"mirror-position\", \"delay-time\", \"delay-feedback\", \"delay-mix\", \"amp-R\", \"filt-S\", \"amp-key\"].includes(key) ? \"phasecraft__dial--plate\" : \"\"}`}\n    >\n      <Knob\n        label={label}\n        value={value(key, initial)}\n        onChange={(next) => set(key, next)}\n        defaultValue={initial}\n        min={0}\n        max={1}\n        size={size}\n        variant=\"default\"\n        style={themeVars({ accent: \"#d0d0c6\" })}\n        format={percent()}\n        showLabelOnHover\n        hideLabel={!caption}\n        hideValue={!caption}\n      />\n    </span>\n  )\n  const position = value(\"position\")\n  const generated = Array.from({ length: 128 }, (_, i) => {\n    const x = i / 127\n    const phase = (x + (position - 0.28) * 0.22 + 1) % 1\n    const stepped =\n      phase < 0.22\n        ? 0.2 - Math.sin((phase / 0.22) * Math.PI) * 0.28\n        : phase < 0.31\n          ? -0.4 + (phase - 0.22) * 3\n          : phase < 0.74\n            ? -0.95 + (phase - 0.31) * 2.4\n            : phase < 0.81\n              ? 1.15\n              : 0.25 + (phase - 0.81) * 2.6\n    const base =\n      wave === \"Sine\"\n        ? Math.sin(phase * Math.PI * 2)\n        : wave === \"Pulse\"\n          ? phase < 0.5\n            ? 0.7\n            : -0.7\n          : wave === \"Tri\"\n            ? 1 - 4 * Math.abs(phase - 0.5)\n            : wave === \"Noise\"\n              ? Math.sin(i * 17.3) * Math.cos(i * 3.7)\n              : stepped\n    const folded =\n      base +\n      Math.sin(phase * 12.56) * (position - 0.28) * 0.55 +\n      (mirror\n        ? Math.sin(phase * Math.PI * 2) * value(\"mirror-position\", 0.2) * 0.3\n        : 0)\n    return Math.max(0, Math.min(2, 1 + (mirror ? -folded : folded) * 0.7))\n  })\n  const samples = drawn ?? generated\n  const envelope = (name: string) => (\n    <section\n      className=\"phasecraft__panel phasecraft__envelope\"\n      aria-label={`${name} envelope`}\n    >\n      <div className=\"phasecraft__five\">\n        {[\"A\", \"H\", \"D\", \"S\", \"R\"].map((label, i) =>\n          dial(`${name}-${label}`, label, [0.05, 0.1, 0.45, 0.7, 0.2][i], 28)\n        )}\n      </div>\n      <div className=\"phasecraft__row\">\n        {dial(`${name}-vel`, \"vel\", 0.45, 28)}\n        {dial(`${name}-key`, \"key\", 0.45, 28)}\n      </div>\n      <div className=\"phasecraft__routing\">\n        <span>{name}</span>\n        {[\"2\", \"3\"].map((slot) =>\n          select(\n            `${name}-${slot}`,\n            `${name} oscillator ${slot} destination`,\n            [\"OFF\", \"WT POS\", \"WT PWM\", \"O2 PWM\"],\n            routes[`${name}-${slot}`]!,\n            (next) =>\n              setRoutes((previous) => ({\n                ...previous,\n                [`${name}-${slot}`]: next,\n              }))\n          )\n        )}\n      </div>\n      <div className=\"phasecraft__row\">\n        {dial(`${name}-amount`, \"depth\", 0.45, 28)}\n        {dial(`${name}-2`, \"2\", 0.45, 28)}\n        {dial(`${name}-3`, \"3\", 0.45, 28)}\n      </div>\n    </section>\n  )\n  return (\n    <section\n      className=\"phasecraft\"\n      data-text-selection=\"editable-only\"\n      aria-label=\"Phasecraft silent interface\"\n      style={themeVars({\n        surface: \"#858684\",\n        cap: \"#858684\",\n        text: \"#111312\",\n        textMuted: \"#262926\",\n        border: \"#555752\",\n        accent: \"#b81620\",\n        accent2: \"#b81620\",\n        radius: \"0px\",\n      })}\n    >\n      <style>{UI_KIT_TEXT_SELECTION_STYLES}</style>\n      <header className=\"phasecraft__top\">\n        <div className=\"phasecraft__brand\">\n          <span aria-hidden>◎</span>\n          <strong>phasecraft</strong>\n          <small>WAVETABLE STUDY</small>\n        </div>\n        <section className=\"phasecraft__panel phasecraft__lfo\" aria-label=\"LFO\">\n          <div className=\"phasecraft__row\">\n            <h3>LFO</h3>\n            <SegmentedControl\n              unstyled\n              className=\"phasecraft__keys\"\n              aria-label=\"LFO bank\"\n              value={lfo}\n              onValueChange={setLfo}\n              options={options([\"A\", \"B\", \"C\"])}\n            />\n          </div>\n          <div className=\"phasecraft__row\">\n            {\n              <Knob\n                label=\"rate\"\n                variant=\"text\"\n                value={value(`lfo-${lfo}-rate`, 8)}\n                min={1}\n                max={32}\n                step={1}\n                defaultValue={8}\n                onChange={(next) => set(`lfo-${lfo}-rate`, next)}\n                format={(next) => `1/${Math.round(next)}`}\n                size={45}\n              />\n            }\n            {select(\n              \"lfo-shape\",\n              \"LFO shape\",\n              [\"SEQ\", \"SINE\", \"TRI\", \"PULSE\"],\n              routes[`lfo-${lfo}`] ?? \"SEQ\",\n              (next) =>\n                setRoutes((previous) => ({ ...previous, [`lfo-${lfo}`]: next }))\n            )}\n          </div>\n        </section>\n        <section\n          className=\"phasecraft__panel phasecraft__mod\"\n          aria-label=\"LFO amounts\"\n        >\n          {[\"WT POS\", \"WT PWM\", \"O2 PWM\"].map((label) => (\n            <div key={label}>\n              <span className=\"phasecraft__mod-label\">{label}</span>\n              {dial(`${lfo}-${label}`, label, 0.2, 29, false)}\n            </div>\n          ))}\n        </section>\n        <WeightBars\n          className=\"phasecraft__harmonics\"\n          aria-label=\"Harmonic editor\"\n          values={harmonics}\n          onValuesChange={setHarmonics}\n          max={1}\n          step={0.01}\n          height={125}\n          showValues={false}\n          showLabels={false}\n          labels={harmonics.map((_, i) => `Harmonic ${i + 1}`)}\n          color=\"#aa1a29\"\n          style={themeVars({ text: \"#aa1a29\", track: \"#51574f\" })}\n        />\n        <section className=\"phasecraft__panel phasecraft__voice\">\n          <ConsoleToggle\n            className=\"phasecraft__mono\"\n            variant=\"outline\"\n            label=\"mono\"\n            pressed={mono}\n            onPressedChange={setMono}\n          />\n          {dial(\"porta\", \"porta\", 0.05)}\n          {dial(\"unison\", \"unison\", 0.3)}\n        </section>\n      </header>\n      <div className=\"phasecraft__oscillators\">\n        <section className=\"phasecraft__panel\">\n          {select(\n            \"table-name\",\n            \"Wavetable\",\n            [\"2:saws\", \"1:sine\", \"3:pulse\", \"4:fold\"],\n            routes.table ?? \"2:saws\",\n            (next) => {\n              setRoutes((previous) => ({ ...previous, table: next }))\n              setWave(\n                next === \"1:sine\"\n                  ? \"Sine\"\n                  : next === \"3:pulse\"\n                    ? \"Pulse\"\n                    : \"Saw\"\n              )\n              setDrawn(null)\n            }\n          )}\n          <h3>WAVETABLE OSC</h3>\n          {octave(\"Wavetable\")}\n          <div className=\"phasecraft__row\">\n            {dial(\"table\", \"table\", 0)}\n            <NumberField\n              unstyled\n              className=\"phasecraft__digits\"\n              style={{ font: \"30px monospace\", color: \"#dc1a28\" }}\n              aria-label=\"Table number\"\n              value={1 + Math.round(value(\"table\", 0) * 31)}\n              min={1}\n              max={32}\n              onValueCommitted={(next) => set(\"table\", ((next ?? 1) - 1) / 31)}\n              inputWidth=\"3ch\"\n            />\n            {dial(\"position\", \"pos\", 0.28)}\n            {dial(\"wt-tune\", \"tune\", 0.5)}\n            {dial(\"wt-level\", \"level\", 0.75)}\n          </div>\n        </section>\n        <section className=\"phasecraft__panel\">\n          <h3>OSC 2</h3>\n          <div className=\"phasecraft__osc-tune\">\n            {dial(\"osc2-tune\", \"tune\", 0.5, 34, false)}\n          </div>\n          <div className=\"phasecraft__row\">\n            {dial(\"osc2-level\", \"level\", 0.65)}\n            <SegmentedControl\n              aria-label=\"Oscillator 2 shape\"\n              unstyled\n              className=\"phasecraft__wave-keys\"\n              value={wave}\n              onValueChange={(next) => {\n                setWave(next)\n                setDrawn(null)\n              }}\n              options={WAVES.map((value, i) => ({\n                value,\n                label:\n                  value === \"Noise\" ? (\n                    <span aria-hidden>∴</span>\n                  ) : (\n                    <WaveformGlyph waveform={WAVE_SHAPES[i]!} size={30} />\n                  ),\n                \"aria-label\": value,\n              }))}\n              size=\"sm\"\n            />\n          </div>\n          {octave(\"Oscillator 2\")}\n        </section>\n        <section className=\"phasecraft__panel phasecraft__sub\">\n          <h3>SUB OSC 3</h3>\n          <div className=\"phasecraft__row\">\n            {dial(\"blend\", \"blend\", 0.35)}\n            <SegmentedControl\n              aria-label=\"Sub oscillator shape\"\n              value={sub}\n              onValueChange={setSub}\n              unstyled\n              className=\"phasecraft__wave-keys\"\n              options={[\n                {\n                  value: \"Sine\",\n                  label: <WaveformGlyph waveform=\"sine\" size={30} />,\n                  \"aria-label\": \"Sine\",\n                },\n                {\n                  value: \"Pulse\",\n                  label: <WaveformGlyph waveform=\"square\" size={30} />,\n                  \"aria-label\": \"Pulse\",\n                },\n              ]}\n              size=\"sm\"\n            />\n          </div>\n          {octave(\"Sub oscillator\")}\n        </section>\n      </div>\n      <div className=\"phasecraft__body\">\n        <div className=\"phasecraft__envelopes\">\n          {envelope(\"amp\")}\n          {envelope(\"filt\")}\n          <div className=\"phasecraft__tube\" aria-hidden>\n            <div>\n              <i />\n              <b />\n              <em />\n            </div>\n          </div>\n        </div>\n        <main className=\"phasecraft__center\">\n          <div className=\"phasecraft__scope\">\n            <WeightBars\n              aria-label=\"Wavetable drawing\"\n              variant=\"line\"\n              values={samples}\n              onValuesChange={setDrawn}\n              max={2}\n              step={0.01}\n              height={308}\n              gap={0}\n              showValues={false}\n              showLabels={false}\n              style={{ opacity: 1 }}\n              disabled={!drawing}\n              color=\"#8580e2\"\n              formatValue={(next) => (next - 1).toFixed(2)}\n              labels={samples.map((_, i) => `Wave sample ${i + 1}`)}\n            />\n            <span\n              className=\"phasecraft__playhead\"\n              style={{ left: `${position * 100}%` }}\n            />\n            <span className=\"phasecraft__scope-edge\" />\n          </div>\n          <section\n            className=\"phasecraft__panel phasecraft__filter\"\n            aria-label=\"Filter\"\n          >\n            <SegmentedControl\n              unstyled\n              className=\"phasecraft__keys\"\n              aria-label=\"Filter type\"\n              value={filter}\n              onValueChange={setFilter}\n              options={options([\"L\", \"B\", \"H\"])}\n            />\n            <div className=\"phasecraft__rail\">\n              <Fader\n                label=\"Cutoff\"\n                value={value(\"cutoff\")}\n                onChange={(next) => set(\"cutoff\", next)}\n                orientation=\"horizontal\"\n                length={300}\n                thickness={34}\n                variant=\"vintage\"\n                hideLabel\n                hideValue\n              />\n              <h3>CUT</h3>\n            </div>\n            <div className=\"phasecraft__rail\">\n              <Fader\n                label=\"Resonance\"\n                value={value(\"resonance\")}\n                onChange={(next) => set(\"resonance\", next)}\n                orientation=\"horizontal\"\n                length={300}\n                thickness={34}\n                variant=\"vintage\"\n                hideLabel\n                hideValue\n              />\n              <h3>RES</h3>\n            </div>\n            <div className=\"phasecraft__row\">\n              {dial(\"filter-vel\", \"vel\")}\n              {dial(\"filter-key\", \"key\")}\n              <h3>DEPTH</h3>\n              {dial(\"filter-depth\", \"depth\", 0.6, 34, false)}\n            </div>\n          </section>\n        </main>\n        <aside className=\"phasecraft__aside\">\n          <ConsoleToggle\n            className=\"phasecraft__draw\"\n            label=\"Draw\"\n            pressed={drawing}\n            onPressedChange={setDrawing}\n          />\n          <section className=\"phasecraft__panel\">\n            <h4>Mirror Type</h4>\n            <ConsoleToggle\n              className=\"phasecraft__mirror\"\n              variant=\"outline\"\n              label=\"MIR\"\n              pressed={mirror}\n              onPressedChange={setMirror}\n            />\n            {dial(\"mirror-position\", \"position\", 0.2)}\n          </section>\n          <section className=\"phasecraft__panel phasecraft__delay\">\n            <div className=\"phasecraft__row\">\n              <h4>delay</h4>\n              {dial(\"delay-level\", \"delay\", 0.2, 34, false)}\n            </div>\n            {[\"time\", \"feedback\", \"mix\"].map((label) =>\n              dial(`delay-${label}`, label, 0.3)\n            )}\n          </section>\n        </aside>\n      </div>\n    </section>\n  )\n}\n",
      "type": "registry:component",
      "target": "@components/blocks/phasecraft.tsx"
    },
    {
      "path": "components/blocks/phasecraft.css",
      "content": "/**\n * Source: https://pluginui.com/examples/phasecraft\n * Copyright © [Maru](https://maru.audio)\n *\n * Maru UI Kit — https://maru.audio/ui-kit\n *\n * Installed from the Maru UI registry. This file is yours now: edit it\n * freely, it will not be overwritten unless you re-run the add command.\n *\n * Keep this item’s companion files and CSS imports together. Dependencies\n * declared by the registry are installed with the source.\n */\n.phasecraft {\n  --uikit-knob-label-case: none;\n  --uikit-knob-label-tracking: 0;\n  --uikit-knob-label: #171a17;\n  box-sizing: border-box;\n  width: 1100px;\n  min-width: 1100px;\n  padding: 18px 14px;\n  color: #111312;\n  font:\n    18px Arial,\n    sans-serif;\n  background: linear-gradient(\n    120deg,\n    #878985 0%,\n    #4a4c49 47%,\n    #191b1b 78%,\n    #3e403e\n  );\n}\n.phasecraft *,\n.phasecraft *::before,\n.phasecraft *::after {\n  box-sizing: border-box;\n}\n.phasecraft h3,\n.phasecraft h4 {\n  margin: 0;\n  font-size: 21px;\n  font-style: italic;\n  font-weight: 900;\n  line-height: 1.3;\n}\n.phasecraft h4 {\n  font-size: 19px;\n  font-style: normal;\n  color: #30332f;\n}\n.phasecraft__panel {\n  background: #858684;\n  padding: 10px 12px;\n  border: 1px solid #757872;\n}\n.phasecraft__top {\n  display: grid;\n  grid-template-columns: 230px 158px 180px 1fr 148px;\n  gap: 8px;\n  height: 132px;\n  margin-bottom: 12px;\n}\n.phasecraft__brand {\n  position: relative;\n  display: flex;\n  flex-direction: column;\n  justify-content: center;\n  text-align: center;\n  overflow: hidden;\n}\n.phasecraft__brand > span {\n  position: absolute;\n  color: #b2b4ad;\n  font-size: 180px;\n  opacity: 0.25;\n  left: 32px;\n  top: -44px;\n}\n.phasecraft__brand strong {\n  z-index: 1;\n  font:\n    bold 43px Georgia,\n    serif;\n  letter-spacing: -3px;\n  text-shadow: 1px 2px #a6a8a1;\n}\n.phasecraft__brand small {\n  font-size: 10px;\n  letter-spacing: 3px;\n  margin-top: 8px;\n}\n.phasecraft__row {\n  display: flex;\n  align-items: center;\n  justify-content: space-around;\n  gap: 8px;\n}\n.phasecraft__lfo {\n  display: flex;\n  flex-direction: column;\n  justify-content: space-between;\n}\n.phasecraft__mod {\n  padding: 6px 10px;\n}\n.phasecraft__mod > div {\n  display: flex;\n  align-items: center;\n  justify-content: space-between;\n  height: 39px;\n}\n.phasecraft__mod-label {\n  background: #b9bfb9;\n  border: 1px solid #626660;\n  font-size: 16px;\n  width: 106px;\n  text-align: center;\n}\n.phasecraft__harmonics {\n  display: flex;\n  gap: 3px;\n  align-items: flex-end;\n  background: repeating-linear-gradient(\n    90deg,\n    transparent 0 17px,\n    #252925 18px 20px\n  );\n  border-bottom: 2px solid #99252c;\n}\n.phasecraft__harmonics i {\n  flex: 1;\n  background: linear-gradient(#a62937, #9b1822);\n}\n.phasecraft__voice {\n  display: grid;\n  grid-template-columns: 1fr 1fr;\n  align-items: center;\n  gap: 8px;\n}\n.phasecraft__keys {\n  display: flex;\n  justify-content: center;\n  gap: 4px;\n}\n.phasecraft__keys button {\n  background: linear-gradient(#9c3335, #5b090e);\n  color: #efeddf;\n  border: 2px solid #51504a;\n  padding: 0 5px;\n  font-size: 17px;\n  font-weight: bold;\n  box-shadow: inset 1px 1px #bcb0a4;\n}\n.phasecraft__keys button[aria-pressed=\"true\"] {\n  background: linear-gradient(#f21d23, #a70008);\n}\n.phasecraft__oscillators {\n  display: grid;\n  grid-template-columns: 292px 1fr 300px;\n  gap: 10px;\n  margin-bottom: 12px;\n}\n.phasecraft__oscillators h3 {\n  text-align: center;\n  margin-bottom: 10px;\n}\n.phasecraft__digits {\n  color: #d62731;\n  font: 32px monospace;\n}\n.phasecraft__body {\n  display: grid;\n  grid-template-columns: 246px 1fr 164px;\n  gap: 20px;\n}\n.phasecraft__envelopes {\n  display: flex;\n  flex-direction: column;\n  gap: 10px;\n}\n.phasecraft__envelope {\n  display: grid;\n  gap: 4px;\n  padding: 8px;\n}\n.phasecraft__five {\n  display: grid;\n  grid-template-columns: repeat(5, 1fr);\n}\n.phasecraft__routing {\n  display: flex;\n  gap: 12px;\n  align-items: center;\n}\n.phasecraft__routing > span {\n  width: 35px;\n}\n.phasecraft__center {\n  padding-top: 8px;\n}\n.phasecraft__scope {\n  position: relative;\n  height: 300px;\n  background: #20212c;\n  border: 1px solid #765459;\n  margin-bottom: 32px;\n  overflow: hidden;\n}\n.phasecraft__scope svg {\n  width: 100%;\n  height: 100%;\n}\n.phasecraft__scope-edge {\n  position: absolute;\n  right: 0;\n  width: 15px;\n  top: 12px;\n  bottom: 0;\n  background: #b51220;\n}\n.phasecraft__filter {\n  width: 470px;\n  margin: auto;\n  display: grid;\n  gap: 12px;\n  padding: 8px 22px 10px;\n}\n.phasecraft__rail {\n  display: flex;\n  gap: 14px;\n  align-items: center;\n}\n.phasecraft__rail h3 {\n  font-size: 25px;\n}\n.phasecraft__aside {\n  display: flex;\n  flex-direction: column;\n  align-items: stretch;\n  gap: 12px;\n}\n.phasecraft__aside > .phasecraft__panel {\n  display: flex;\n  flex-direction: column;\n  align-items: center;\n  gap: 14px;\n}\n.phasecraft__aside .phasecraft__delay {\n  margin-top: auto;\n}\n.phasecraft__tube {\n  margin: 14px 10px 0;\n  padding: 7px;\n  border: 3px solid #a67e7c;\n  background: #151713;\n  box-shadow: inset 0 0 0 2px #bea29b;\n  width: 154px;\n  height: 105px;\n}\n.phasecraft__tube div {\n  height: 100%;\n  text-align: center;\n  font:\n    76px Georgia,\n    serif;\n  color: #baa58a;\n  background: radial-gradient(ellipse, #846346, #252a23 65%);\n}\n.phasecraft :focus-visible {\n  outline: 2px solid #fff8d8;\n  outline-offset: 3px;\n}\n\n/* Deliberately uneven grey sprite backplates from the reference. */\n.phasecraft__dial {\n  display: inline-flex;\n  position: relative;\n  justify-content: center;\n}\n.phasecraft__dial [data-uikit-knob-dial] {\n  isolation: isolate;\n}\n.phasecraft__dial [data-uikit-knob-dial]::before {\n  content: \"\";\n  position: absolute;\n  inset: 1px;\n  z-index: -1;\n  box-shadow: 3px 3px 3px #343733;\n  border-radius: 50%;\n}\n.phasecraft__dial--plate [data-uikit-knob-dial]::before {\n  inset: -5px;\n  border-radius: 0;\n  background: #969792;\n  box-shadow: none;\n}\n.phasecraft__envelope:nth-child(2)\n  .phasecraft__dial--plate\n  [data-uikit-knob-dial]::before {\n  background: #777a76;\n}\n.phasecraft__select {\n  min-height: 0;\n  height: 21px;\n  padding: 0 4px;\n  border: 1px solid #666965;\n  border-radius: 0;\n  background: #b9c0b9;\n  color: #202a25;\n  font:\n    16px Arial,\n    sans-serif;\n  box-shadow: inset 1px 1px #d2d4cb;\n}\n.phasecraft__select svg {\n  display: none;\n}\n.phasecraft__routing {\n  gap: 5px;\n}\n.phasecraft__routing .phasecraft__select {\n  width: 85px;\n  font-size: 14px;\n}\n.phasecraft__octave {\n  display: flex;\n  gap: 3px;\n  justify-content: center;\n  margin: 4px 0;\n}\n.phasecraft__octave > button {\n  min-height: 20px;\n  height: 20px;\n  width: 23px;\n  padding: 0;\n  background: #a3a49c;\n  border: 2px outset #adb0a6;\n  color: #3a3c35;\n  font-size: 23px;\n  line-height: 16px;\n}\n.phasecraft__octave input {\n  padding: 0 !important;\n  text-align: center;\n  font-size: 13px;\n}\n.phasecraft__digits input {\n  color: #e51c29;\n  font: 30px monospace;\n  padding: 0;\n  background: #838680;\n}\n.phasecraft__oscillators {\n  position: relative;\n  grid-template-columns: 292px 1fr 290px;\n}\n.phasecraft__oscillators > .phasecraft__panel {\n  position: relative;\n  padding-top: 8px;\n}\n.phasecraft__oscillators\n  > .phasecraft__panel:first-child\n  > .phasecraft__select {\n  position: absolute;\n  top: -13px;\n  left: 7px;\n  width: 100px;\n}\n.phasecraft__oscillators\n  > .phasecraft__panel:first-child\n  > .phasecraft__octave {\n  position: absolute;\n  top: 17px;\n  right: 20px;\n}\n.phasecraft__oscillators\n  > .phasecraft__panel:first-child\n  > .phasecraft__row {\n  padding-top: 15px;\n}\n.phasecraft__wave-keys {\n  display: flex;\n  gap: 3px;\n}\n.phasecraft__wave-keys button {\n  display: grid;\n  place-items: center;\n  padding: 1px;\n  width: 38px;\n  height: 34px;\n  color: #c5c7bd;\n  border: 2px outset #93968d;\n  border-radius: 5px;\n  background: linear-gradient(#737771, #42463f);\n  box-shadow: 1px 2px 2px #40423e;\n}\n.phasecraft__wave-keys button[aria-pressed=\"true\"] {\n  color: #ae2536;\n  background: linear-gradient(#747572, #343832);\n  border-style: inset;\n}\n.phasecraft__wave-keys svg {\n  width: 30px;\n  height: 25px;\n}\n.phasecraft__harmonics {\n  border: 0;\n  background: repeating-linear-gradient(\n    90deg,\n    #777b75 0 16px,\n    #282d28 17px 19px\n  );\n}\n.phasecraft__harmonics [data-weight-plot] {\n  background: transparent;\n}\n.phasecraft__scope {\n  height: 310px;\n  margin-bottom: 32px;\n}\n.phasecraft__scope [data-weight-bars] {\n  position: absolute;\n  inset: 0;\n  opacity: 1;\n}\n.phasecraft__scope-edge,\n.phasecraft__playhead {\n  pointer-events: none;\n}\n.phasecraft__playhead {\n  position: absolute;\n  top: 0;\n  bottom: 0;\n  width: 4px;\n  background: #2817f8;\n}\n.phasecraft__draw {\n  background: #92958f !important;\n  border: 2px solid #111 !important;\n  color: #f3f1e8 !important;\n  font:\n    22px Arial,\n    sans-serif !important;\n}\n.phasecraft__draw[aria-pressed=\"true\"] {\n  box-shadow: inset 2px 2px 3px #383e35;\n}\n.phasecraft__voice {\n  background: #868984;\n}\n.phasecraft__envelope {\n  background: #8c8e88;\n}\n.phasecraft__delay {\n  background: #7c7e79;\n}\n.phasecraft__tube div {\n  position: relative;\n  overflow: hidden;\n  background: linear-gradient(\n    90deg,\n    #101410 0 14%,\n    #8b8671 15% 18%,\n    #2a291d 19% 87%,\n    #d3cdb9 88% 91%,\n    #353a32 92%\n  );\n}\n.phasecraft__tube i {\n  position: absolute;\n  inset: 15px 12px 13px 28px;\n  border-radius: 45%;\n  background: radial-gradient(\n    ellipse at 25% 20%,\n    #f6f1d3,\n    #8b674b 40%,\n    #493a2f 75%\n  );\n  box-shadow: inset 0 0 0 3px #b7b1a0;\n}\n.phasecraft__tube b {\n  position: absolute;\n  top: 27px;\n  left: 51px;\n  width: 37px;\n  height: 30px;\n  background:\n    repeating-linear-gradient(90deg, #bebcacaa 0 2px, transparent 3px 8px),\n    repeating-linear-gradient(#d6d2c0aa 0 1px, transparent 2px 7px);\n  transform: rotate(-8deg);\n}\n.phasecraft__tube em {\n  position: absolute;\n  top: 17px;\n  left: 18px;\n  width: 25px;\n  height: 45px;\n  background: linear-gradient(#c3bda5, #272b25 40%, #171b15 70%, #d5d0b9);\n}\n.phasecraft__osc-tune {\n  position: absolute;\n  left: 58px;\n  top: 2px;\n  background: #8f9289;\n  padding: 1px;\n}\n.phasecraft__digits {\n  color: #eb1825;\n  font: 30px monospace;\n  width: 38px;\n  text-align: center;\n}\n.phasecraft__octave > [data-number-field] {\n  width: 24px;\n  text-align: center;\n  background: #a0a49b;\n  border: 2px inset #93988c;\n}\n.phasecraft__mono,\n.phasecraft__mirror {\n  background: linear-gradient(#a3a59e, #686d65 45%, #383d36) !important;\n  border: 2px outset #9da196 !important;\n  color: #c5c9bf !important;\n  box-shadow: 1px 2px 2px #40453e;\n}\n",
      "type": "registry:file",
      "target": "@components/blocks/phasecraft.css"
    }
  ]
}
