:root {
  --bg: #121214;
  --bg-deep: #0f1013;
  --panel: #1e1f23;
  --panel-soft: rgba(30, 31, 35, 0.9);
  --panel-elevated: #24262c;
  --border: #2d2e33;
  --border-soft: rgba(70, 73, 81, 0.7);
  --text: #f2f3f5;
  --text-soft: #b5bac5;
  --text-dim: #8f96a3;
  --accent: #ccff00;
  --accent-soft: rgba(204, 255, 0, 0.2);
  --accent-faint: rgba(204, 255, 0, 0.08);
  --shadow-panel: 0 28px 80px rgba(0, 0, 0, 0.48);
  --shadow-stage: 0 28px 60px rgba(0, 0, 0, 0.36);
  --radius-panel: 34px;
  --radius-stage: 32px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  overflow-y: auto;
  background:
    radial-gradient(circle at 16% 14%, rgba(255, 255, 255, 0.06), transparent 0 24%),
    radial-gradient(circle at 80% 18%, rgba(204, 255, 0, 0.07), transparent 0 16%),
    radial-gradient(circle at 48% 84%, rgba(204, 255, 0, 0.05), transparent 0 22%),
    linear-gradient(180deg, #141518, #111215 58%, #101114);
  color: var(--text);
  font-family: "Segoe UI", "Aptos", "Helvetica Neue", Arial, sans-serif;
}

button,
input,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

.workbench-shell {
  width: min(1280px, calc(100% - 56px));
  min-height: 100vh;
  margin: 0 auto;
  padding: 40px 0;
  display: grid;
  gap: 28px;
  align-content: start;
}

.workbench-content {
  width: 100%;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(380px, 520px);
  gap: clamp(26px, 3vw, 42px);
  align-items: stretch;
}

.hero-stage-column {
  display: grid;
  gap: 28px;
  min-width: 0;
  height: 100%;
  align-content: stretch;
}

.hero-block h1 {
  margin: 0;
  font-weight: 300;
  font-size: clamp(1.4rem, 2.2vw, 2.55rem);
  line-height: 1;
  letter-spacing: -0.05em;
  white-space: nowrap;
  text-align: right;
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.35);
}

.hero-block {
  display: grid;
  grid-template-columns: minmax(180px, 264px) 1fr;
  gap: 24px;
  align-items: center;
}

.hero-brand {
  display: flex;
  align-items: flex-start;
  width: 264px;
  max-width: 100%;
}

.hero-logo {
  display: block;
  width: 100%;
  height: auto;
}

.hero-title-wrap {
  display: flex;
  justify-content: flex-end;
  align-items: center;
}

.site-footer {
  width: 100%;
  display: flex;
  justify-content: space-between;
  gap: 18px 28px;
  align-items: flex-start;
}

.site-footer-copy {
  margin: 0;
  color: var(--text);
  font-size: 0.84rem;
  line-height: 1.5;
}

.site-footer-copy-right {
  text-align: right;
}

.site-footer a {
  color: #f4f14a;
  text-decoration: none;
}

.site-footer a:hover,
.site-footer a:focus-visible {
  text-decoration: underline;
  outline: none;
}

.stage-frame {
  min-width: 0;
  height: 100%;
  display: flex;
}

.stage {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: clamp(500px, 62vh, 640px);
  overflow: hidden;
  border-radius: var(--radius-stage);
  border: 1px solid rgba(86, 89, 98, 0.72);
  background:
    linear-gradient(180deg, rgba(44, 46, 53, 0.96), rgba(31, 32, 37, 0.98)),
    radial-gradient(circle at 50% 50%, rgba(204, 255, 0, 0.04), transparent 30%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.05),
    inset 0 0 0 1px rgba(255, 255, 255, 0.02),
    var(--shadow-stage);
  cursor: crosshair;
  outline: none;
}

.stage::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.02), transparent 22%),
    radial-gradient(circle at 50% 52%, rgba(204, 255, 0, 0.03), transparent 20%);
  pointer-events: none;
  z-index: 0;
}

.stage:focus-visible {
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.05),
    inset 0 0 0 1px rgba(255, 255, 255, 0.02),
    0 0 0 1px rgba(204, 255, 0, 0.25),
    0 0 0 4px rgba(204, 255, 0, 0.08),
    var(--shadow-stage);
}

.stage-copy {
  position: absolute;
  top: 32px;
  left: 38px;
  z-index: 3;
  display: grid;
  gap: 6px;
  pointer-events: none;
}

.stage-kicker,
.stage-subtitle,
.rack-kicker,
.label,
.waveform-label,
.dial-label {
  font-family: "Consolas", "SFMono-Regular", "Cascadia Mono", "Courier New", monospace;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  white-space: nowrap;
}

.stage-kicker,
.rack-kicker,
.label,
.waveform-label,
.dial-label {
  color: #d6f58a;
}

.stage-kicker,
.rack-kicker,
.label,
.waveform-label {
  font-size: 0.92rem;
}

.stage-subtitle {
  color: var(--text-soft);
  font-size: 0.7rem;
}

#stageCanvas {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  height: 100%;
}

.stage-loading-panel {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 4;
  width: min(360px, calc(100% - 72px));
  padding: 20px 22px 18px;
  border: 1px solid rgba(214, 245, 138, 0.22);
  border-radius: 24px;
  background:
    linear-gradient(180deg, rgba(26, 27, 31, 0.96), rgba(16, 17, 20, 0.98));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.04),
    0 18px 50px rgba(0, 0, 0, 0.44),
    0 0 34px rgba(214, 245, 138, 0.08);
  transform: translate(-50%, -50%);
  transition:
    opacity 0.24s ease,
    transform 0.24s ease,
    visibility 0.24s ease;
}

.stage-loading-panel.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translate(-50%, -50%) scale(0.98);
}

.stage-loading-label,
.stage-loading-time {
  display: block;
  font-family: "Consolas", "SFMono-Regular", "Cascadia Mono", "Courier New", monospace;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.stage-loading-label {
  color: #f2f6db;
  font-size: 0.92rem;
  margin-bottom: 12px;
}

.stage-loading-detail {
  display: block;
  margin-bottom: 12px;
  color: rgba(233, 237, 194, 0.72);
  font-family: "Consolas", "SFMono-Regular", "Cascadia Mono", "Courier New", monospace;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.stage-loading-bar {
  position: relative;
  height: 12px;
  border-radius: 999px;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(23, 24, 29, 0.98), rgba(12, 13, 16, 0.98));
  box-shadow:
    inset 0 1px 1px rgba(255, 255, 255, 0.06),
    inset 0 0 0 1px rgba(255, 255, 255, 0.03),
    0 0 0 1px rgba(214, 245, 138, 0.08);
}

.stage-loading-fill {
  display: block;
  position: absolute;
  inset: 0 auto 0 0;
  width: 0%;
  height: 100%;
  border-radius: inherit;
  background:
    linear-gradient(90deg, rgba(255, 214, 26, 0.92), rgba(255, 242, 112, 0.98));
  box-shadow:
    0 0 24px rgba(255, 223, 60, 0.42),
    inset 0 1px 0 rgba(255, 255, 255, 0.22);
  transition:
    width 0.18s ease,
    opacity 0.18s ease;
}

.stage-loading-time {
  margin-top: 10px;
  color: rgba(255, 239, 141, 0.92);
  font-size: 0.7rem;
}

.stage-start-button {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 4;
  padding: 14px 26px;
  border: 1px solid rgba(204, 255, 0, 0.36);
  border-radius: 999px;
  background:
    linear-gradient(180deg, rgba(34, 36, 42, 0.96), rgba(22, 23, 27, 0.98));
  color: var(--text);
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transform: translate(-50%, -50%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 12px 30px rgba(0, 0, 0, 0.42),
    0 0 28px rgba(204, 255, 0, 0.12);
  transition:
    opacity 0.2s ease,
    transform 0.2s ease,
    box-shadow 0.2s ease,
    border-color 0.2s ease;
}

.stage-start-button:hover,
.stage-start-button:focus-visible {
  border-color: rgba(204, 255, 0, 0.55);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 12px 30px rgba(0, 0, 0, 0.42),
    0 0 34px rgba(204, 255, 0, 0.2);
  outline: none;
}

.stage-start-button.is-hidden {
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, -50%) scale(0.96);
}

.device-notice[hidden] {
  display: none;
}

.device-notice {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: grid;
  place-items: center;
  padding: 20px;
}

.device-notice-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(7, 8, 10, 0.76);
  backdrop-filter: blur(10px);
}

.device-notice-dialog {
  position: relative;
  z-index: 1;
  width: min(100%, 460px);
  padding: 24px 24px 22px;
  border-radius: 26px;
  border: 1px solid rgba(86, 89, 98, 0.78);
  background:
    radial-gradient(circle at top center, rgba(255, 255, 255, 0.05), transparent 34%),
    linear-gradient(180deg, rgba(43, 45, 52, 0.98), rgba(24, 26, 31, 0.99));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    inset 0 0 0 1px rgba(255, 255, 255, 0.015),
    0 28px 80px rgba(0, 0, 0, 0.52);
  display: grid;
  gap: 14px;
}

.device-notice-kicker {
  color: #d6f58a;
  font-family: "Consolas", "SFMono-Regular", "Cascadia Mono", "Courier New", monospace;
  font-size: 0.84rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.device-notice-message {
  margin: 0;
  color: var(--text);
  font-size: 1rem;
  line-height: 1.5;
}

.device-notice-button {
  justify-self: end;
  min-width: 96px;
  padding: 11px 18px;
  border-radius: 999px;
  border: 1px solid rgba(93, 97, 109, 0.82);
  background:
    linear-gradient(180deg, rgba(43, 45, 52, 0.98), rgba(24, 26, 31, 0.99));
  color: var(--text);
  font-size: 0.84rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 10px 18px rgba(0, 0, 0, 0.24);
}

.device-notice-button:hover,
.device-notice-button:focus-visible {
  border-color: rgba(204, 255, 0, 0.42);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 0 0 3px rgba(204, 255, 0, 0.08),
    0 10px 18px rgba(0, 0, 0, 0.24);
  outline: none;
}

.control-rack {
  min-width: 0;
  height: 100%;
  padding: clamp(24px, 2.5vw, 34px) clamp(24px, 2.5vw, 34px) clamp(22px, 2.2vw, 30px);
  border-radius: var(--radius-panel);
  border: 1px solid rgba(86, 89, 98, 0.74);
  background:
    radial-gradient(circle at top center, rgba(255, 255, 255, 0.05), transparent 28%),
    linear-gradient(180deg, rgba(43, 45, 52, 0.97), rgba(29, 30, 35, 0.99));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.05),
    inset 0 0 0 1px rgba(255, 255, 255, 0.015),
    var(--shadow-panel);
  display: grid;
  gap: 26px;
}

.recorder-panel {
  width: 100%;
  padding: clamp(22px, 2.2vw, 30px) clamp(24px, 2.5vw, 34px);
  border-radius: var(--radius-panel);
  border: 1px solid rgba(86, 89, 98, 0.74);
  background:
    radial-gradient(circle at top center, rgba(255, 255, 255, 0.04), transparent 32%),
    linear-gradient(180deg, rgba(40, 42, 49, 0.97), rgba(27, 29, 34, 0.99));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.05),
    inset 0 0 0 1px rgba(255, 255, 255, 0.015),
    var(--shadow-panel);
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 20px 28px;
  align-items: center;
}

.recorder-copy {
  min-width: 0;
  display: grid;
  gap: 8px;
}

.recorder-kicker {
  color: #d6f58a;
  font-family: "Consolas", "SFMono-Regular", "Cascadia Mono", "Courier New", monospace;
  font-size: 0.84rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.recorder-status,
.recorder-meta {
  margin: 0;
}

.recorder-status {
  font-size: 1rem;
  color: var(--text);
}

.recorder-meta {
  color: var(--text-soft);
  font-size: 0.84rem;
}

.recorder-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 16px 18px;
  align-items: center;
}

.recorder-transport,
.recorder-files {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.recorder-button {
  min-width: 124px;
  padding: 11px 16px;
  border-radius: 999px;
  border: 1px solid rgba(93, 97, 109, 0.82);
  background:
    linear-gradient(180deg, rgba(43, 45, 52, 0.98), rgba(24, 26, 31, 0.99));
  color: var(--text);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-size: 0.84rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 10px 18px rgba(0, 0, 0, 0.24);
  transition:
    transform 0.18s ease,
    border-color 0.18s ease,
    box-shadow 0.18s ease,
    opacity 0.18s ease;
}

.recorder-button:hover,
.recorder-button:focus-visible {
  border-color: rgba(204, 255, 0, 0.4);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 0 0 3px rgba(204, 255, 0, 0.08),
    0 10px 18px rgba(0, 0, 0, 0.24);
  outline: none;
}

.recorder-button:active {
  transform: translateY(1px);
}

.recorder-button:disabled {
  opacity: 0.46;
  cursor: not-allowed;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.05),
    0 6px 10px rgba(0, 0, 0, 0.18);
}

.recorder-button.is-active {
  border-color: rgba(204, 255, 0, 0.48);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 0 0 3px rgba(204, 255, 0, 0.08),
    0 10px 18px rgba(0, 0, 0, 0.24);
}

.recorder-button-record.is-active {
  border-color: rgba(255, 89, 89, 0.64);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 0 0 3px rgba(255, 89, 89, 0.12),
    0 10px 18px rgba(0, 0, 0, 0.24);
}

.recorder-button-secondary {
  min-width: 104px;
}

.recorder-button-wav {
  min-width: 142px;
}

.recorder-icon {
  display: inline-block;
  flex: 0 0 auto;
}

.recorder-icon-record {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #ff4d4d;
  box-shadow: 0 0 12px rgba(255, 77, 77, 0.4);
}

.recorder-icon-stop {
  width: 12px;
  height: 12px;
  border-radius: 2px;
  background: rgba(244, 246, 250, 0.86);
}

.recorder-icon-play {
  width: 0;
  height: 0;
  border-top: 8px solid transparent;
  border-bottom: 8px solid transparent;
  border-left: 12px solid rgba(244, 246, 250, 0.92);
  margin-left: 2px;
}

.rack-top {
  display: flex;
  justify-content: stretch;
  align-items: start;
}

.waveform-block {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  width: 100%;
  margin-inline: auto;
}

.waveform-main {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.waveform-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 0 0 auto;
}

.waveform-main .select {
  width: min(220px, 100%);
}

.select {
  width: 100%;
  min-width: 0;
  appearance: none;
  -webkit-appearance: none;
  padding: 12px 40px 12px 14px;
  border-radius: 10px;
  border: 1px solid var(--border-soft);
  background-color: rgba(28, 30, 35, 0.98);
  background-image:
    linear-gradient(180deg, rgba(36, 38, 45, 0.96), rgba(28, 30, 35, 0.98)),
    linear-gradient(45deg, transparent 50%, rgba(255, 255, 255, 0.7) 50%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.7) 50%, transparent 50%);
  color: var(--text);
  font-size: 0.82rem;
  outline: none;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
  background-position:
    0 0,
    calc(100% - 18px) calc(50% - 2px),
    calc(100% - 12px) calc(50% - 2px);
  background-size: 100% 100%, 6px 6px, 6px 6px;
  background-repeat: no-repeat;
}

.audio-toggle-button {
  width: 50px;
  height: 46px;
  flex: 0 0 auto;
  border-radius: 12px;
  border: 1px solid rgba(93, 97, 109, 0.84);
  background:
    linear-gradient(180deg, rgba(43, 45, 52, 0.98), rgba(24, 26, 31, 0.99));
  color: rgba(244, 246, 250, 0.82);
  display: grid;
  place-items: center;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 10px 18px rgba(0, 0, 0, 0.24);
  transition:
    border-color 0.18s ease,
    box-shadow 0.18s ease,
    color 0.18s ease,
    transform 0.18s ease;
}

.audio-toggle-button:hover,
.audio-toggle-button:focus-visible {
  border-color: rgba(204, 255, 0, 0.42);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 0 0 3px rgba(204, 255, 0, 0.08),
    0 10px 18px rgba(0, 0, 0, 0.24);
  outline: none;
}

.audio-toggle-button:active {
  transform: translateY(1px);
}

.randomise-toggle-button {
  min-width: 122px;
  height: 46px;
  padding: 0 16px;
  border-radius: 12px;
  border: 1px solid rgba(93, 97, 109, 0.84);
  background:
    linear-gradient(180deg, rgba(43, 45, 52, 0.98), rgba(24, 26, 31, 0.99));
  color: rgba(244, 246, 250, 0.88);
  font-family: "Consolas", "SFMono-Regular", "Cascadia Mono", "Courier New", monospace;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 10px 18px rgba(0, 0, 0, 0.24);
  transition:
    border-color 0.18s ease,
    box-shadow 0.18s ease,
    color 0.18s ease,
    transform 0.18s ease;
}

.randomise-toggle-button:hover,
.randomise-toggle-button:focus-visible {
  border-color: rgba(204, 255, 0, 0.42);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 0 0 3px rgba(204, 255, 0, 0.08),
    0 10px 18px rgba(0, 0, 0, 0.24);
  outline: none;
}

.randomise-toggle-button:active {
  transform: translateY(1px);
}

.randomise-toggle-button.is-active {
  border-color: rgba(204, 255, 0, 0.54);
  color: #d6f58a;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 0 0 3px rgba(204, 255, 0, 0.1),
    0 0 20px rgba(204, 255, 0, 0.12),
    0 10px 18px rgba(0, 0, 0, 0.24);
}

.audio-toggle-button.is-active {
  border-color: rgba(204, 255, 0, 0.54);
  color: #d6f58a;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 0 0 3px rgba(204, 255, 0, 0.1),
    0 0 20px rgba(204, 255, 0, 0.12),
    0 10px 18px rgba(0, 0, 0, 0.24);
}

.audio-toggle-icon {
  width: 22px;
  height: 22px;
  overflow: visible;
}

.audio-toggle-icon path {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.audio-toggle-speaker {
  fill: currentColor;
  stroke: none;
}

.audio-toggle-slash {
  opacity: 1;
}

.audio-toggle-wave {
  opacity: 0;
}

.audio-toggle-button.is-active .audio-toggle-wave {
  opacity: 1;
}

.audio-toggle-button.is-active .audio-toggle-slash {
  opacity: 0;
}

.select:focus-visible {
  border-color: rgba(204, 255, 0, 0.42);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.04),
    0 0 0 3px rgba(204, 255, 0, 0.08);
}

.slider-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.slider-control,
.master-slider {
  display: grid;
  gap: 10px;
}

.control-label-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.control-label-row output,
.dial-control output {
  color: #ffffff;
  font-size: 0.84rem;
}

.rack-divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(97, 101, 112, 0.65), transparent);
}

.range-input {
  --range-fill: 0%;
  width: 100%;
  height: 18px;
  appearance: none;
  -webkit-appearance: none;
  border-radius: 999px;
  border: 1px solid rgba(82, 85, 94, 0.86);
  background:
    linear-gradient(90deg, rgba(204, 255, 0, 0.9) 0 var(--range-fill), rgba(204, 255, 0, 0.18) var(--range-fill), rgba(53, 55, 62, 0.96) var(--range-fill), rgba(35, 36, 41, 0.98) 100%);
  box-shadow:
    inset 0 2px 6px rgba(0, 0, 0, 0.6),
    inset 0 1px 0 rgba(255, 255, 255, 0.04);
  outline: none;
}

.range-input::-webkit-slider-runnable-track {
  height: 18px;
  border-radius: 999px;
  background: transparent;
}

.range-input::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 28px;
  height: 28px;
  margin-top: -6px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background:
    radial-gradient(circle at 32% 30%, rgba(255, 255, 255, 0.95), rgba(230, 230, 232, 0.76) 18%, rgba(163, 165, 171, 0.96) 40%, rgba(70, 72, 78, 0.98) 100%),
    conic-gradient(from 180deg, rgba(255, 255, 255, 0.36), rgba(0, 0, 0, 0.28), rgba(255, 255, 255, 0.22));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.5),
    inset 0 -6px 10px rgba(0, 0, 0, 0.25),
    0 4px 10px rgba(0, 0, 0, 0.4);
}

.range-input::-moz-range-track {
  height: 18px;
  border-radius: 999px;
  border: 1px solid rgba(82, 85, 94, 0.86);
  background:
    linear-gradient(90deg, rgba(204, 255, 0, 0.9) 0 var(--range-fill), rgba(204, 255, 0, 0.18) var(--range-fill), rgba(53, 55, 62, 0.96) var(--range-fill), rgba(35, 36, 41, 0.98) 100%);
  box-shadow:
    inset 0 2px 6px rgba(0, 0, 0, 0.6),
    inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.range-input::-moz-range-thumb {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background:
    radial-gradient(circle at 32% 30%, rgba(255, 255, 255, 0.95), rgba(230, 230, 232, 0.76) 18%, rgba(163, 165, 171, 0.96) 40%, rgba(70, 72, 78, 0.98) 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.5),
    inset 0 -6px 10px rgba(0, 0, 0, 0.25),
    0 4px 10px rgba(0, 0, 0, 0.4);
}

.range-input:focus-visible {
  box-shadow:
    inset 0 2px 6px rgba(0, 0, 0, 0.6),
    inset 0 1px 0 rgba(255, 255, 255, 0.04),
    0 0 0 3px rgba(204, 255, 0, 0.08);
}

.knob-grid {
  display: grid;
  gap: 20px 24px;
}

.knob-grid-4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.knob-grid-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.dial-control {
  display: grid;
  justify-items: center;
  gap: 11px;
  text-align: center;
  min-width: 0;
}

.dial-label {
  display: inline-block;
  margin-bottom: 3px;
  font-size: 0.76rem;
}

.delay-dial-wrap {
  width: 100%;
  display: grid;
  place-items: center;
  padding-top: 2px;
}

.control-dial {
  --dial-rotation: -135deg;
  --dial-progress: 0;
  position: relative;
  width: 83px;
  height: 83px;
  border-radius: 50%;
  border: 1px solid rgba(69, 72, 80, 0.98);
  background:
    radial-gradient(circle at 50% 52%, rgba(0, 0, 0, 0.28), transparent 56%),
    linear-gradient(180deg, rgba(46, 48, 55, 0.96), rgba(22, 23, 27, 0.98));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    inset 0 -18px 24px rgba(0, 0, 0, 0.36),
    0 10px 18px rgba(0, 0, 0, 0.42);
  cursor: ns-resize;
  outline: none;
}

.control-dial::before {
  content: "";
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  background:
    repeating-conic-gradient(
      from -135deg,
      rgba(255, 255, 255, 0.16) 0deg 1.2deg,
      transparent 1.2deg 13deg
    );
  mask: radial-gradient(circle, transparent 68%, #000 70% 78%, transparent 80%);
  opacity: 0.45;
}

.control-dial::after {
  content: "";
  position: absolute;
  inset: -7px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.04);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.4);
}

.control-dial:focus-visible {
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    inset 0 -18px 24px rgba(0, 0, 0, 0.36),
    0 0 0 3px rgba(204, 255, 0, 0.1),
    0 10px 18px rgba(0, 0, 0, 0.42);
}

.control-dial-scale {
  position: absolute;
  inset: -8px;
  border-radius: 50%;
  background:
    conic-gradient(
      from -135deg,
      rgba(248, 255, 72, 0.99) 0deg calc(var(--dial-progress) * 270deg),
      rgba(58, 61, 68, 0.84) calc(var(--dial-progress) * 270deg) 270deg,
      transparent 270deg 360deg
    );
  mask: radial-gradient(circle, transparent 69%, #000 72% 79%, transparent 82%);
  filter: drop-shadow(0 0 10px rgba(248, 255, 72, 0.28));
}

.control-dial-pointer {
  display: none;
}

.control-dial-core {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 49px;
  height: 49px;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  border: 1px solid rgba(255, 255, 255, 0.18);
  background:
    radial-gradient(circle at 34% 28%, rgba(255, 255, 255, 0.96), rgba(231, 232, 236, 0.9) 16%, rgba(165, 168, 175, 0.95) 40%, rgba(67, 69, 76, 0.98) 100%),
    conic-gradient(from 180deg, rgba(255, 255, 255, 0.3), rgba(0, 0, 0, 0.28), rgba(255, 255, 255, 0.22));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.44),
    inset 0 -10px 14px rgba(0, 0, 0, 0.28),
    0 4px 10px rgba(0, 0, 0, 0.32);
}

.control-dial-core::before {
  content: "";
  position: absolute;
  inset: 7px;
  border-radius: 50%;
  background:
    repeating-conic-gradient(
      from 0deg,
      rgba(255, 255, 255, 0.16) 0deg 2deg,
      rgba(0, 0, 0, 0.05) 2deg 7deg
    );
  opacity: 0.65;
  mix-blend-mode: overlay;
}

.dial-control output {
  font-size: 1.05rem;
  line-height: 1;
}

.delay-dial-caption {
  margin: 0;
  color: var(--text-soft);
  font-size: 0.68rem;
  line-height: 1.15;
  white-space: nowrap;
}

@media (max-width: 1320px) {
  .workbench-content {
    grid-template-columns: minmax(0, 1fr) minmax(350px, 460px);
  }

  .hero-block h1 {
    font-size: clamp(1.35rem, 2.1vw, 2.3rem);
  }
}

@media (max-width: 1220px) {
  .workbench-shell {
    width: min(calc(100% - 32px), 980px);
    padding: 28px 0 34px;
    gap: 26px;
  }

  .workbench-content {
    grid-template-columns: 1fr;
    gap: 26px;
    align-items: start;
  }

  .hero-stage-column,
  .stage-frame,
  .control-rack {
    height: auto;
  }

  .hero-block {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .hero-brand,
  .hero-title-wrap {
    justify-content: center;
  }

  .hero-title-wrap {
    padding-top: 0;
  }

  .recorder-panel {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .recorder-actions {
    justify-content: flex-start;
  }

  .hero-block h1 {
    font-size: clamp(1.7rem, 4vw, 2.8rem);
    text-align: center;
  }

  .stage {
    min-height: 52vh;
  }

  .site-footer {
    flex-direction: column;
  }

  .site-footer-copy-right {
    text-align: left;
  }
}

@media (max-width: 820px) {
  .workbench-shell {
    width: min(calc(100% - 22px), 760px);
  }

  .rack-top {
    justify-content: stretch;
  }

  .waveform-block {
    width: min(100%, 320px);
    margin-inline: auto;
  }

  .waveform-main {
    flex: 1 1 auto;
  }

  .waveform-actions {
    align-self: center;
  }

  .hero-logo {
    width: min(270px, 100%);
  }

  .recorder-button {
    min-width: 112px;
  }

  .slider-grid,
  .knob-grid-4,
  .knob-grid-3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 620px) {
  .workbench-shell {
    width: min(calc(100% - 18px), 560px);
    padding: 18px 0 24px;
  }

  .hero-block h1 {
    font-size: clamp(1.3rem, 6.1vw, 2.2rem);
  }

  .hero-logo {
    width: min(220px, 100%);
  }

  .stage {
    min-height: 46vh;
  }

  .stage-copy {
    top: 22px;
    left: 22px;
  }

  .control-rack {
    padding: 22px 18px 20px;
    gap: 20px;
  }

  .recorder-panel {
    padding: 20px 18px;
  }

  .slider-grid,
  .knob-grid-4,
  .knob-grid-3 {
    grid-template-columns: 1fr;
  }

  .waveform-block,
  .waveform-main,
  .waveform-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .waveform-main .select {
    width: 100%;
  }

  .randomise-toggle-button,
  .audio-toggle-button {
    align-self: flex-end;
  }

  .recorder-actions,
  .recorder-transport,
  .recorder-files {
    width: 100%;
  }

  .recorder-button {
    flex: 1 1 100%;
    min-width: 0;
  }

  .stage-start-button {
    padding: 12px 20px;
  }

  .site-footer-copy {
    font-size: 0.8rem;
  }
}
