* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Founder Grotesk", Helvetica, Arial, sans-serif;
  background:
    radial-gradient(circle at top left, rgba(242, 226, 5, 0.12), transparent 32%),
    #090909;
  color: #f4f4f4;
}

.app {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: 40px 0;
}

.hero {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: flex-end;
  margin-bottom: 28px;
}

.eyebrow {
  color: #F2E205;
  letter-spacing: 0.08em;
  font-size: 11px;
  font-weight: 800;
  margin: 0 0 8px;
}

h1 {
  margin: 0;
  font-size: clamp(36px, 5vw, 58px);
  letter-spacing: 0;
  line-height: 1;
}

.sub {
  color: #a8a8a8;
  max-width: 360px;
  font-size: 14px;
  line-height: 1.35;
}

.controls {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

button,
.upload,
.stem-select-control {
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: #151515;
  color: white;
  padding: 13px 18px;
  border-radius: 14px;
  font-weight: 800;
  cursor: pointer;
  transition: 0.2s ease;
}

button:hover,
.upload:hover,
.stem-select-control:hover {
  border-color: #F2E205;
  transform: translateY(-1px);
}

button:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  transform: none;
}

.upload input {
  display: none;
}

.stem-select-control {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 8px 10px 8px 14px;
}

.stem-select-control span {
  color: #a8a8a8;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.stem-select-control select {
  min-width: 116px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 9px;
  background: #080808;
  color: #F2E205;
  padding: 7px 28px 7px 9px;
  font: inherit;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
}

.stem-select-control select:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.panel {
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 26px;
  padding: 22px;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.3);
}

.info {
  display: grid;
  grid-template-columns: 1.3fr 0.65fr 0.72fr 1fr;
  gap: 14px;
  margin-bottom: 18px;
}

.info div {
  background: #101010;
  border-radius: 18px;
  padding: 16px;
}

.info span {
  display: block;
  color: #777;
  font-size: 12px;
  margin-bottom: 6px;
}

.info strong {
  font-size: 15px;
}

.wave-editor {
  position: relative;
  padding-right: 42px;
}

#waveCanvas {
  width: 100%;
  height: 230px;
  display: block;
  background: #050505;
  border-radius: 18px;
}

.wave-editor .main-pitch-control {
  position: absolute;
  top: 12px;
  right: 0;
  bottom: 12px;
  height: auto;
  width: 24px;
}

.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: 34px 0 18px;
}

.section-head h2 {
  margin: 0;
  font-size: 28px;
}

.section-head button {
  min-width: 140px;
  border-color: rgba(242, 226, 5, 0.5);
}

.beat-section {
  margin-top: 36px;
}

.beat-section-head {
  margin-bottom: 12px;
}

.beat-rack-toolbar .transport-icon-button,
.fl-toolbar-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  min-width: 30px;
  height: 28px;
  min-height: 0;
  padding: 0;
  border-radius: 7px;
  background: linear-gradient(#51646e, #2a3d46);
  border-color: rgba(0, 0, 0, 0.38);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.12),
    inset 0 -1px 0 rgba(0, 0, 0, 0.32);
}

.beat-rack-toolbar .transport-icon-button:hover,
.fl-toolbar-button:hover {
  border-color: #F2E205;
  transform: none;
}

.beat-rack-toolbar .transport-icon-button.is-playing,
.fl-toolbar-button.is-active {
  color: #F2E205;
  border-color: rgba(242, 226, 5, 0.7);
  background: linear-gradient(#405b61, #243b42);
}

.transport-play-icon {
  width: 0;
  height: 0;
  border-top: 7px solid transparent;
  border-bottom: 7px solid transparent;
  border-left: 10px solid currentColor;
  transform: translateX(2px);
}

.transport-icon-button.is-playing .transport-play-icon {
  width: 11px;
  height: 11px;
  border: 0;
  background: currentColor;
  transform: none;
}

.metronome-dot {
  width: 12px;
  height: 12px;
  border-radius: 999px;
  border: 2px solid currentColor;
  box-shadow: inset 0 0 0 2px rgba(0, 0, 0, 0.2);
}

.clear-rack-button {
  color: #d6e2e6;
  font-size: 18px;
  line-height: 1;
}

.fl-export-button {
  width: auto;
  min-width: 62px;
  padding: 0 8px;
  color: #d6e2e6;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0;
  white-space: nowrap;
}

.beat-bpm-control,
.beat-swing-control {
  display: flex;
  align-items: center;
  gap: 6px;
  min-height: 28px;
  padding: 0 8px;
  border: 1px solid rgba(0, 0, 0, 0.38);
  border-radius: 7px;
  background: #22333b;
  color: #bfcbd0;
  font-size: 10px;
  font-weight: 800;
}

.beat-bpm-control input {
  width: 56px;
  min-width: 0;
  background: #101d23;
  color: #F2E205;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 5px;
  padding: 4px 5px;
  font: inherit;
  font-weight: 800;
  text-align: center;
}

.beat-swing-control input {
  width: 78px;
  accent-color: #F2E205;
}

.beat-swing-control small {
  width: 28px;
  color: #F2E205;
  text-align: right;
}

.beat-panel {
  position: relative;
  background: #31434c;
  border: 1px solid rgba(0, 0, 0, 0.35);
  border-radius: 4px;
  padding: 0;
  overflow-x: hidden;
  overflow-y: hidden;
}

.beat-rack-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 44px;
  width: 100%;
  min-width: 0;
  padding: 0 8px;
  background: #2f424b;
  border-bottom: 1px solid rgba(0, 0, 0, 0.35);
}

.beat-toolbar-left,
.beat-toolbar-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.beat-toolbar-left strong {
  color: #d9e2e6;
  font-size: 16px;
  font-weight: 800;
  white-space: nowrap;
}

.beat-bpm-readout {
  min-width: 74px;
  padding: 5px 8px 4px;
  border: 1px solid rgba(0, 0, 0, 0.38);
  border-radius: 4px;
  background: #263740;
  color: #F2E205;
  font-size: 12px;
  font-weight: 800;
  text-align: center;
}

.beat-graph-toggle {
  display: inline-grid;
  grid-auto-flow: column;
  align-items: end;
  justify-content: center;
  gap: 3px;
  width: 30px;
  min-width: 30px;
  height: 26px;
  min-height: 0;
  padding: 0;
  border-radius: 7px;
  background: #30444c;
  border-color: rgba(0, 0, 0, 0.32);
}

.beat-graph-toggle span {
  width: 4px;
  border-radius: 999px 999px 0 0;
  background: #d6e2e6;
}

.beat-graph-toggle span:nth-child(1) {
  height: 8px;
}

.beat-graph-toggle span:nth-child(2) {
  height: 14px;
}

.beat-graph-toggle span:nth-child(3) {
  height: 20px;
}

.beat-graph-toggle:hover,
.beat-graph-toggle.is-active {
  border-color: #F2E205;
  transform: none;
}

.beat-graph-toggle.is-active span {
  background: #F2E205;
}

.beat-rack {
  display: grid;
  gap: 0;
  overflow: visible;
  padding-bottom: 4px;
}

.beat-row {
  display: grid;
  grid-template-columns: 22px 24px 24px minmax(98px, 132px) 24px 10px minmax(0, 1fr);
  align-items: center;
  gap: 5px;
  width: 100%;
  min-width: 0;
  min-height: 43px;
  padding: 4px 8px;
  background: #5a6970;
  border: 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.16);
  border-radius: 0;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.beat-row.is-selected {
  box-shadow:
    inset 4px 0 0 #F2E205,
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.beat-mute {
  position: relative;
  justify-self: center;
  width: 16px;
  min-width: 16px;
  height: 16px;
  min-height: 0;
  padding: 0;
  border-radius: 999px;
  background: #26373e;
  border-color: rgba(0, 0, 0, 0.35);
}

.beat-mute::before {
  content: "";
  position: absolute;
  inset: 3px;
  border-radius: inherit;
  background: #283940;
}

.beat-mute.is-on::before {
  background: #9bff4d;
  box-shadow: 0 0 9px rgba(155, 255, 77, 0.42);
}

.beat-mute:hover {
  transform: none;
}

.beat-knob-control {
  display: grid;
  justify-items: center;
  gap: 0;
  color: #d2dde1;
  font-size: 9px;
  font-weight: 800;
  line-height: 1;
}

.beat-knob-control > span {
  display: none;
}

.beat-knob {
  position: relative;
  width: 21px;
  height: 21px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  background: radial-gradient(circle at 50% 55%, #60727b, #263941 72%);
  box-shadow:
    inset 0 0 0 4px rgba(0, 0, 0, 0.12),
    0 1px 2px rgba(0, 0, 0, 0.3);
  cursor: ns-resize;
  touch-action: none;
}

.beat-knob:focus-visible,
.beat-knob:hover,
.beat-knob.is-dragging {
  border-color: #F2E205;
}

.beat-knob-indicator {
  position: absolute;
  inset: 4px;
  border-radius: inherit;
}

.beat-knob-indicator::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  width: 2px;
  height: 6px;
  border-radius: 999px;
  background: #F2E205;
  transform: translateX(-50%);
}

.beat-knob-value {
  position: absolute;
  left: calc(100% + 6px);
  top: 50%;
  min-width: 34px;
  padding: 2px 5px;
  border-radius: 7px;
  background: rgba(0, 0, 0, 0.78);
  color: #F2E205;
  font-size: 10px;
  font-weight: 800;
  line-height: 1.2;
  text-align: center;
  transform: translateY(-50%);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.15s ease;
  z-index: 2;
}

.beat-knob:hover .beat-knob-value,
.beat-knob:focus-visible .beat-knob-value,
.beat-knob.is-dragging .beat-knob-value {
  opacity: 1;
}

.beat-channel-button {
  overflow: hidden;
  width: 100%;
  min-width: 0;
  padding: 8px 12px;
  background: linear-gradient(#62767f, #425862);
  border-color: rgba(0, 0, 0, 0.35);
  border-radius: 5px;
  font-size: 13px;
  text-align: left;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.beat-selected-strip {
  width: 10px;
  min-width: 10px;
  height: 33px;
  padding: 0;
  border-radius: 3px;
  background: #40545c;
  border-color: rgba(0, 0, 0, 0.45);
}

.beat-row.is-selected .beat-selected-strip {
  background: #2f4c4a;
  border-color: #9bff4d;
  box-shadow: inset 0 0 0 1px #9bff4d;
}

.beat-channel-button:hover {
  transform: none;
}

.beat-channel-remove {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 23px;
  min-width: 23px;
  height: 23px;
  min-height: 0;
  padding: 0;
  border-radius: 6px;
  background: linear-gradient(#53656d, #34464e);
  border-color: rgba(0, 0, 0, 0.38);
  color: #d7e1e5;
}

.beat-channel-remove svg {
  width: 13px;
  height: 13px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.3;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.beat-channel-remove:hover,
.beat-channel-remove:focus-visible {
  color: #ff5d5d;
  border-color: rgba(255, 93, 93, 0.8);
  transform: none;
}

.beat-steps {
  display: grid;
  grid-template-columns: repeat(64, minmax(0, 1fr));
  align-items: center;
  gap: 2px;
}

.beat-step {
  width: 100%;
  min-width: 0;
  height: 25px;
  min-height: 0;
  padding: 0;
  border-radius: 5px;
  background: linear-gradient(#6c7d84, #42525a);
  border-color: rgba(0, 0, 0, 0.38);
  box-shadow:
    inset 0 2px 0 rgba(255, 255, 255, 0.16),
    inset 0 -2px 0 rgba(0, 0, 0, 0.22);
}

.beat-step:hover {
  transform: none;
}

.beat-step.is-downbeat {
  border-color: rgba(242, 226, 5, 0.42);
}

.beat-step.is-alt-bar {
  background: linear-gradient(#7a5b5d, #573f42);
}

.beat-step.is-bar-start {
  box-shadow:
    inset 0 2px 0 rgba(255, 255, 255, 0.16),
    inset 0 -2px 0 rgba(0, 0, 0, 0.22),
    0 0 0 1px rgba(242, 226, 5, 0.28);
}

.beat-step.is-active {
  background: linear-gradient(var(--beat-step-on-top, #dba0a4), var(--beat-step-on-bottom, #85595c));
  border-color: rgba(255, 220, 222, 0.45);
  box-shadow:
    inset 0 2px 0 rgba(255, 255, 255, 0.2),
    inset 0 -2px 0 rgba(0, 0, 0, 0.22);
}

.beat-step.is-current {
  border-color: #dff7ff;
  box-shadow:
    inset 0 2px 0 rgba(255, 255, 255, 0.28),
    0 0 0 2px rgba(216, 246, 255, 0.18);
  transform: none;
}

.beat-graph-editor {
  display: grid;
  grid-template-columns: minmax(180px, 280px) minmax(0, 1fr);
  grid-template-rows: 190px 36px;
  width: 100%;
  min-width: 0;
  overflow: hidden;
  background: #1d3540;
  border: 1px solid rgba(0, 0, 0, 0.32);
  border-radius: 7px;
}

.beat-graph-empty {
  display: flex;
  align-items: center;
  width: 100%;
  min-width: 0;
  min-height: 90px;
  padding: 18px;
  background: #1d3540;
  border: 1px solid rgba(0, 0, 0, 0.32);
  border-radius: 7px;
  color: #dce7eb;
  font-weight: 800;
}

.beat-graph-side {
  grid-row: 1 / 3;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 6px;
  padding: 14px;
  background: #5c6b72;
  border-right: 1px solid rgba(0, 0, 0, 0.3);
  color: #dce7eb;
}

.beat-graph-side strong,
.beat-graph-side span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.beat-graph-side span {
  color: #F2E205;
  font-size: 12px;
  font-weight: 800;
}

.beat-graph-grid {
  position: relative;
  display: grid;
  grid-template-columns: repeat(64, minmax(0, 1fr));
  min-height: 190px;
  background:
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 0, 0, 0.28) 1px, transparent 1px),
    #1e3a47;
  background-size:
    100% 38px,
    calc(100% / 64) 100%,
    calc(100% / 16) 100%,
    auto;
}

.mode-pan .beat-graph-grid {
  background:
    linear-gradient(rgba(242, 226, 5, 0.2), rgba(242, 226, 5, 0.2)) center / 100% 1px no-repeat,
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 0, 0, 0.28) 1px, transparent 1px),
    #1e3a47;
  background-size:
    100% 1px,
    100% 38px,
    calc(100% / 64) 100%,
    calc(100% / 16) 100%,
    auto;
}

.beat-graph-column {
  position: relative;
  min-width: 0;
  cursor: ns-resize;
  touch-action: none;
}

.beat-graph-column:hover,
.beat-graph-column:focus-visible,
.beat-graph-column.is-dragging {
  background: rgba(255, 255, 255, 0.035);
  outline: none;
}

.beat-graph-bar {
  position: absolute;
  left: 50%;
  width: min(24px, calc(100% - 8px));
  min-height: 2px;
  border-radius: 2px 2px 0 0;
  background: #54cbe8;
  transform: translateX(-50%);
  opacity: 0.28;
}

.mode-note .beat-graph-bar {
  height: 3px;
  background: #b8e7bd;
}

.mode-pan .beat-graph-bar {
  background: #aa61d2;
}

.beat-graph-column.is-active .beat-graph-bar {
  opacity: 1;
}

.beat-graph-value {
  position: absolute;
  left: 50%;
  padding: 1px 3px;
  border-radius: 3px;
  background: rgba(228, 255, 224, 0.88);
  color: #264331;
  font-size: 10px;
  font-weight: 800;
  line-height: 1.1;
  transform: translateX(-50%);
  opacity: 0;
  pointer-events: none;
}

.mode-note .beat-graph-column.is-active .beat-graph-value,
.beat-graph-column:hover .beat-graph-value,
.beat-graph-column:focus-visible .beat-graph-value,
.beat-graph-column.is-dragging .beat-graph-value {
  opacity: 1;
}

.mode-velocity .beat-graph-value {
  background: rgba(84, 203, 232, 0.9);
  color: #102f39;
}

.mode-pan .beat-graph-value {
  background: rgba(170, 97, 210, 0.9);
  color: #fff;
}

.beat-graph-tabs {
  display: flex;
  align-items: stretch;
  background: #2f4148;
  border-top: 1px solid rgba(0, 0, 0, 0.3);
}

.beat-graph-tab {
  width: auto;
  min-width: 0;
  padding: 8px 12px;
  border: 0;
  border-right: 1px solid rgba(0, 0, 0, 0.28);
  border-radius: 0;
  background: transparent;
  color: #d7e1e5;
  font-size: 12px;
}

.beat-graph-tab:hover {
  border-color: rgba(0, 0, 0, 0.28);
  color: #fff;
  transform: none;
}

.beat-graph-tab.is-active {
  color: #F2E205;
  background: rgba(0, 0, 0, 0.18);
}

.beat-empty {
  padding: 18px;
  background: #1f3038;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  color: #777;
  font-weight: 800;
}

.sample-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 14px;
}

.sample-actions {
  display: flex;
  justify-content: center;
  margin-top: 14px;
}

.sample-actions button {
  min-width: 180px;
  border-color: rgba(242, 226, 5, 0.5);
}

.card {
  position: relative;
  min-height: 292px;
  background: rgba(255, 255, 255, 0.055);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 20px;
  padding: 34px 14px 14px;
  cursor: grab;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.card:hover {
  border-color: rgba(242, 226, 5, 0.45);
  transform: translateY(-1px);
}

.card.is-picked {
  border-color: rgba(242, 226, 5, 0.62);
  box-shadow: inset 0 0 0 1px rgba(242, 226, 5, 0.18);
}

.add-card {
  height: 100%;
  min-height: 292px;
  border: 1px dashed rgba(242, 226, 5, 0.45);
  background: rgba(242, 226, 5, 0.035);
  color: #F2E205;
  border-radius: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.add-card span {
  font-size: 40px;
  line-height: 1;
}

.add-card strong {
  font-size: 14px;
}

.add-card:disabled {
  border-style: solid;
  color: #777;
}

.card:active,
.card.is-dragging-card {
  cursor: grabbing;
}

.card.is-dragging-card {
  opacity: 0.55;
}

.card.drag-over-swap {
  border-color: #F2E205;
  box-shadow: 0 0 0 2px rgba(242, 226, 5, 0.45);
}

.card canvas {
  width: 100%;
  height: 96px;
  background: #070707;
  border-radius: 12px;
  margin-bottom: 12px;
  cursor: pointer;
  touch-action: none;
}

.card input {
  width: 100%;
  background: #0d0d0d;
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.12);
  padding: 10px;
  border-radius: 12px;
  margin: 0;
  font-weight: 700;
  cursor: text;
}

.card button {
  width: 100%;
}

.card .remove-button {
  position: absolute;
  top: 8px;
  right: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  min-width: 24px;
  height: 24px;
  aspect-ratio: 1 / 1;
  min-height: 0;
  padding: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  color: #a8a8a8;
}

.card .remove-button:hover {
  border-color: #ff3b3b;
  color: #ff3b3b;
  transform: none;
}

.card .remove-button svg {
  width: 12px;
  height: 12px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.card .pitch-control {
  position: relative;
  top: auto;
  right: auto;
  grid-row: 1 / 4;
  grid-column: 2;
  height: 100%;
  width: 22px;
  justify-self: end;
  cursor: ns-resize;
  touch-action: none;
}

.card .pick-button {
  position: absolute;
  top: 8px;
  left: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  min-width: 24px;
  height: 24px;
  aspect-ratio: 1 / 1;
  min-height: 0;
  padding: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  color: #a8a8a8;
}

.card .pick-button:hover,
.card.is-picked .pick-button {
  border-color: #F2E205;
  background: #F2E205;
  color: #090909;
  transform: none;
}

.card .pick-button svg {
  width: 13px;
  height: 13px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.pitch-control {
  position: absolute;
  top: 34px;
  right: 14px;
  height: 96px;
  width: 22px;
  cursor: ns-resize;
  touch-action: none;
}

.pitch-track {
  position: relative;
  width: 100%;
  height: 100%;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.35);
}

.pitch-center {
  position: absolute;
  top: 50%;
  left: 5px;
  right: 5px;
  height: 1px;
  background: rgba(242, 226, 5, 0.6);
}

.pitch-knob {
  position: absolute;
  left: 50%;
  width: 14px;
  height: 14px;
  border-radius: 999px;
  background: #F2E205;
  box-shadow: 0 0 0 3px rgba(242, 226, 5, 0.14);
  transform: translate(-50%, -50%);
}

.pitch-value {
  position: absolute;
  left: calc(100% + 8px);
  min-width: 34px;
  padding: 2px 5px;
  border-radius: 7px;
  background: rgba(0, 0, 0, 0.72);
  color: #F2E205;
  font-size: 10px;
  font-weight: 800;
  line-height: 1.2;
  text-align: center;
  transform: translateY(-50%);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.15s ease;
}

.main-pitch-control .pitch-value {
  left: calc(100% + 8px);
}

.pitch-control:hover .pitch-track,
.pitch-control.is-dragging .pitch-track,
.pitch-control:focus-visible .pitch-track {
  border-color: #F2E205;
}

.pitch-control:hover .pitch-value,
.pitch-control.is-dragging .pitch-value,
.pitch-control:focus-visible .pitch-value {
  opacity: 1;
}

.card-actions {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 40px 40px;
  gap: 8px;
}

.card-controls {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 28px;
  grid-template-rows: auto auto auto;
  gap: 10px;
}

.card-controls input {
  grid-column: 1;
  grid-row: 1;
}

.card-controls .card-actions {
  grid-column: 1;
  grid-row: 2;
}

.card-controls .secondary {
  grid-column: 1;
  grid-row: 3;
}

.card-actions button {
  min-height: 40px;
  padding: 10px 8px;
  border-radius: 10px;
  font-size: 12px;
}

.card-actions .icon-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  padding: 0;
}

.icon-button svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.card button.secondary {
  background: #0d0d0d;
  color: #d8d8d8;
}

@media (max-width: 760px) {
  .hero,
  .section-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .controls {
    justify-content: flex-start;
  }

  .beat-rack-toolbar {
    align-items: flex-start;
    flex-direction: column;
    height: auto;
    gap: 8px;
    padding: 8px;
  }

  .beat-toolbar-left,
  .beat-toolbar-actions {
    width: 100%;
    flex-wrap: wrap;
  }

  .info {
    grid-template-columns: 1fr;
  }
}
