/* Redbird Web Studio Mode — Classic Hardware Rack Aesthetics + 4-Zone DAW & Mixer/FX */
:root {
  --st-bg-deep: #111315;
  --st-bg-panel: #1a1c1e;
  --st-bg-elev: #232628;
  --st-bg-header: #16181a;
  --st-border: rgba(255, 255, 255, 0.09);
  --st-border-strong: #060708;
  --st-text: #dddcd6;
  --st-text-dim: #a0a29d;
  --st-text-muted: #787a76;
  --st-amber: #ffb331;
  --st-orange: #f38327;
  --st-crimson: #ef3024;
  --st-cyan: #ff9f26;
  --st-gold: #ecc838;
  --st-emerald: #6dc968;
  --st-cobalt: #6c96df;
  --st-violet: #b680db;
  --st-magenta: #df5e8f;
}

.studio-daw-shell {
  display: flex;
  flex-direction: column;
  height: 100vh;
  width: 100vw;
  /* Classic Redbird Rosewood/Walnut Wood Cheeks on left & right */
  padding: 0 14px;
  background:
    repeating-linear-gradient(91deg, transparent 0 2px, rgba(0, 0, 0, 0.16) 2px 3px),
    linear-gradient(90deg, #2d160f 0%, #683420 0.7%, #26140e 1.1%, #0c0e10 1.2%, #0c0e10 98.8%, #26140e 98.9%, #683420 99.3%, #2d160f 100%);
  color: var(--st-text);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", sans-serif;
  overflow: hidden;
  user-select: none;
  box-sizing: border-box;
}

.studio-daw-shell.hidden { display: none; }

.st-topbar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 12px;
  height: 46px;
  background:
    repeating-linear-gradient(180deg, rgba(255,255,255,0.022) 0 1px, transparent 1px 3px),
    linear-gradient(180deg, #292c2e 0%, #1e2022 18%, #16181a 85%, #101214 100%);
  border-top: 1px solid rgba(255,255,255,0.12);
  border-bottom: 2px solid #050607;
  box-shadow: inset 0 -1px 0 rgba(255,255,255,0.07);
  flex-shrink: 0;
  overflow-x: auto;
}

.st-brand {
  display: flex;
  align-items: center;
  gap: 4px;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Rounded", sans-serif;
  font-weight: 900;
  font-size: 15px;
  letter-spacing: 0.04em;
}
.st-brand-dot {
  width: 9px; height: 9px; border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #ff766b, var(--st-crimson) 65%, #750d08);
  box-shadow: 0 0 8px rgba(239, 48, 36, 0.7);
  margin-right: 3px;
}
.st-brand-red { color: #d6d5d0; }
.st-brand-bird { color: var(--st-orange); }
.st-ver-badge {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 9px; font-weight: 700; color: var(--st-amber);
  background: #08090a; border: 1px solid rgba(255, 179, 49, 0.35);
  border-radius: 3px; padding: 1px 5px; margin-left: 4px;
}
.st-mode-group { display: flex; gap: 3px; }

.studio-daw-shell .st-btn {
  background: linear-gradient(180deg, #3c4042 0%, #232628 55%, #16181a 100%);
  color: #dddcd6;
  border: 1px solid #060708;
  border-radius: 3.5px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.13), 0 1px 2px rgba(0,0,0,0.55);
  padding: 4px 8px;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.03em;
  cursor: pointer;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.studio-daw-shell .st-btn:hover {
  background: linear-gradient(180deg, #4b5052 0%, #2d3133 100%);
  color: #fff;
}
.studio-daw-shell .st-btn.active,
.studio-daw-shell .st-btn.primary {
  background: linear-gradient(180deg, #ffca5c 0%, #f39024 100%);
  color: #140d04;
  border-color: #060708;
  box-shadow: inset 0 1px 0 rgba(255,235,180,0.65), 0 0 8px rgba(255, 179, 49, 0.28);
}
.studio-daw-shell .st-btn.danger.active {
  background: linear-gradient(180deg, #ff584e 0%, #d42117 100%);
  color: #fff;
  border-color: #060708;
  box-shadow: inset 0 1px 0 rgba(255,190,185,0.5), 0 0 8px rgba(239, 48, 36, 0.4);
}
.studio-daw-shell .st-btn.cyan.active {
  background: linear-gradient(180deg, #ffca5c 0%, #e88e20 100%);
  color: #140d04;
  border-color: #060708;
}
.studio-daw-shell .st-btn.sm { padding: 2px 6px; font-size: 9.5px; }

.st-hw-led {
  display: inline-block;
  width: 6px; height: 6px;
  border-radius: 1.5px;
  background: #333;
  border: 1px solid #000;
}
.st-hw-led.on {
  background: #35e055;
  box-shadow: 0 0 5px rgba(53, 224, 85, 0.8);
}

.st-led-box {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #0d0f11;
  border: 1px solid #050607;
  box-shadow: inset 0 1px 3px rgba(0,0,0,0.85), 0 1px 0 rgba(255,255,255,0.08);
  border-radius: 4px;
  padding: 3px 9px;
  font-family: ui-monospace, monospace;
}
.st-led-label {
  font-family: ui-monospace, monospace;
  font-size: 8px; font-weight: 700; letter-spacing: 0.08em; color: var(--st-text-muted);
}
.st-pos {
  color: var(--st-amber);
  background: #000;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 2.5px;
  padding: 1px 6px;
  font-weight: 800;
  font-size: 12.5px;
  text-shadow: 0 0 5px rgba(255, 179, 49, 0.45);
}
.st-bpm-input {
  width: 52px;
  background: #000;
  color: #ff4b40;
  text-shadow: 0 0 5px rgba(239, 48, 36, 0.45);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 2.5px;
  padding: 2px 4px;
  font-family: ui-monospace, monospace;
  font-weight: 800;
  font-size: 12px;
}

.st-main-grid {
  display: flex;
  flex: 1;
  min-height: 0;
  overflow: hidden;
  gap: 4px;
  padding: 4px 0;
  background: #0c0e10;
}

/* Left Sidebar: Dynamic Tracks (Classic Brushed Rack Bay) */
.st-sidebar {
  width: 248px;
  min-width: 210px;
  background: var(--st-bg-panel);
  border-right: 1px solid var(--st-border-strong);
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
}
.st-sidebar-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 10px;
  height: 36px;
  background: var(--st-bg-header);
  border-bottom: 1px solid var(--st-border);
  font-size: 10.5px;
  font-weight: 700;
  font-family: ui-monospace, monospace;
  color: var(--st-text-dim);
}
.st-add-row {
  display: flex;
  gap: 4px;
  padding: 6px;
  border-bottom: 1px solid var(--st-border);
  background: rgba(0,0,0,0.2);
}
.st-select {
  background: var(--st-bg-elev);
  color: var(--st-text);
  border: 1px solid var(--st-border-strong);
  border-radius: 4px;
  padding: 3px 6px;
  font-size: 11px;
  min-width: 0;
}
.st-track-list {
  flex: 1;
  overflow-y: auto;
  padding: 6px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.st-track-card {
  background: rgba(255,255,255,0.025);
  border: 1px solid var(--st-border);
  border-radius: 6px;
  padding: 6px 8px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.st-track-card.selected {
  background: var(--st-bg-elev);
  border-color: var(--st-amber);
}
.st-track-top { display: flex; align-items: center; gap: 6px; }
.st-color-bar { width: 4px; height: 24px; border-radius: 2px; flex-shrink: 0; }
.st-track-info { flex: 1; min-width: 0; }
.st-track-name { font-size: 11.5px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.st-track-sub { font-size: 9.5px; color: var(--st-text-muted); font-family: ui-monospace, monospace; }
.st-track-btns { display: flex; gap: 2px; }
.st-track-vol {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 14px;
  background: transparent;
  cursor: pointer;
}
.st-track-vol::-webkit-slider-runnable-track {
  height: 4px;
  background: #0a0c10;
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 2px;
}
.st-track-vol::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 14px;
  height: 12px;
  margin-top: -5px;
  border-radius: 1px;
  border: 1px solid #000;
  background: linear-gradient(180deg, #dbdbdb 0%, #6e6e6e 50%, #a3a3a3 100%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.55), 0 1px 2px rgba(0,0,0,0.7);
}

/* Right 3-Tier Stack */
.st-right-col {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

/* Top Right: Adaptive Instrument Panel */
.st-inspector {
  min-height: 122px;
  max-height: 170px;
  background: var(--st-bg-panel);
  border-bottom: 1px solid var(--st-border-strong);
  padding: 8px 12px;
  display: flex;
  align-items: center;
  gap: 12px;
  overflow-x: auto;
  flex-shrink: 0;
}
.st-insp-group {
  background: rgba(0,0,0,0.28);
  border: 1px solid var(--st-border);
  border-radius: 6px;
  padding: 6px 10px;
  display: flex;
  flex-direction: column;
  gap: 5px;
  flex-shrink: 0;
}
.st-insp-title {
  font-size: 9px;
  font-weight: 800;
  font-family: ui-monospace, monospace;
  color: var(--st-amber);
  letter-spacing: 0.04em;
}
.st-insp-controls { display: flex; align-items: center; gap: 10px; }
.st-ctrl {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  min-width: 50px;
}
.st-ctrl label {
  font-size: 8.5px;
  font-family: ui-monospace, monospace;
  color: #d8d8d8;
  font-weight: 700;
  letter-spacing: 0.04em;
}
.st-ctrl span {
  font-size: 8px;
  font-family: ui-monospace, monospace;
  color: var(--st-text-muted);
}

/* Classic Redbird hardware rotary knob (exact match to RackKnobFace) */
.studio-daw-shell .st-knob {
  --angle: 0deg;
  --arc: 135deg;
  --tint: var(--st-amber);
  -webkit-appearance: none;
  appearance: none;
  width: 38px;
  height: 38px;
  min-width: 38px;
  min-height: 38px;
  border-radius: 50%;
  padding: 0;
  margin: 0;
  opacity: 1;
  border: 1.5px solid #000;
  position: relative;
  cursor: ns-resize;
  touch-action: none;
  background-color: #262626;
  background-image:
    radial-gradient(circle at center, #474747 0 56%, transparent 57%),
    conic-gradient(from 225deg, var(--tint) 0deg, var(--tint) var(--arc), rgba(0, 0, 0, 0.88) var(--arc), rgba(0, 0, 0, 0.88) 270deg, transparent 270deg 360deg);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.8), inset 0 0 0 1px rgba(255, 255, 255, 0.12);
  transform: none;
}
.studio-daw-shell .st-knob::before {
  content: '';
  position: absolute;
  inset: 5px;
  border-radius: 50%;
  background: radial-gradient(circle at 38% 30%, #585c59 0%, #3d403e 55%, #242625 100%);
  border: 1px solid rgba(0, 0, 0, 0.92);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2);
  pointer-events: none;
}
.studio-daw-shell .st-knob::after {
  content: '';
  position: absolute;
  width: 2.5px;
  height: 11px;
  left: calc(50% - 1.25px);
  top: 5px;
  border-radius: 1.5px;
  background: #f02e24;
  transform-origin: center 14px;
  transform: rotate(var(--angle));
  box-shadow: 0 0 4px rgba(240, 46, 36, 0.65);
  pointer-events: none;
}
.studio-daw-shell .st-knob:hover,
.studio-daw-shell .st-knob:active,
.studio-daw-shell .st-knob.dragging {
  transform: none;
  background-color: #262626;
  background-image:
    radial-gradient(circle at center, #474747 0 56%, transparent 57%),
    conic-gradient(from 225deg, var(--tint) 0deg, var(--tint) var(--arc), rgba(0, 0, 0, 0.88) var(--arc), rgba(0, 0, 0, 0.88) 270deg, transparent 270deg 360deg);
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.9), 0 0 0 1.5px var(--tint);
}
.st-ctrl.dragging span {
  color: var(--st-amber);
  font-weight: 800;
}

/* Center: Large Shared Editor */
.st-editor {
  flex: 1;
  min-height: 180px;
  display: flex;
  flex-direction: column;
  background: var(--st-bg-deep);
  border-bottom: 1px solid var(--st-border-strong);
  overflow: hidden;
}
.st-editor-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 12px;
  height: 32px;
  background: var(--st-bg-header);
  border-bottom: 1px solid var(--st-border);
  flex-shrink: 0;
  overflow-x: auto;
}
.st-editor-body {
  flex: 1;
  overflow: auto;
  display: flex;
}

/* Drum Editor Table */
.st-drum-wrap { display: flex; flex-direction: column; min-width: 100%; }
.st-drum-row { display: flex; align-items: center; border-bottom: 1px solid rgba(255,255,255,0.045); height: 30px; }
.st-drum-row.selected { background: rgba(247, 157, 46, 0.08); }
.st-pad-head {
  position: sticky; left: 0; z-index: 2;
  width: 175px; min-width: 175px; height: 100%;
  background: var(--st-bg-panel);
  border-right: 1px solid var(--st-border-strong);
  display: flex; align-items: center; gap: 6px; padding: 0 8px;
  cursor: pointer;
}
.st-pad-icon {
  width: 20px; height: 20px; border-radius: 4px;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 700; background: rgba(255,255,255,0.08);
}
.st-pad-label { flex: 1; font-size: 11px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.st-drum-steps { display: flex; align-items: center; padding: 0 4px; gap: 3px; }
.st-step-cell {
  width: 28px; height: 22px; border-radius: 4px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.06);
  cursor: pointer; position: relative; overflow: hidden;
  display: flex; align-items: flex-end; justify-content: center;
}
.st-step-cell.beat-alt { background: rgba(255,255,255,0.025); }
.st-step-cell.playing { box-shadow: inset 0 0 0 1.5px var(--st-amber); }
.st-step-cell.on .st-step-fill { width: 100%; background: var(--st-cyan); border-radius: 2px; }
.st-step-cell.on.accent { border-color: var(--st-amber); }
.st-step-cell.on.accent .st-step-fill { background: var(--st-amber); }
.st-step-cell.on.flam .st-step-fill { background: var(--st-violet); }
.st-acc-badge {
  position: absolute; top: 1px; right: 2px;
  font-size: 8px; font-weight: 900; color: #fff;
}

/* Piano Roll DAW Grid (Long Notes, Right-Edge Resize, Quantize) */
.st-pr-tool {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-family: ui-monospace, monospace;
  font-size: 9.5px;
  font-weight: 700;
  color: var(--st-text-dim);
}
.st-pr-sel-tools {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 0 6px;
  border-left: 1px solid rgba(255,255,255,0.12);
}
.st-pr-shell {
  display: flex;
  align-items: flex-start;
  min-width: 100%;
}
.st-pr-keys-col {
  position: sticky;
  left: 0;
  z-index: 4;
  width: 50px;
  min-width: 50px;
  background: var(--st-bg-panel);
  border-right: 1.5px solid #050607;
  display: flex;
  flex-direction: column;
}
.st-pr-ruler-corner {
  position: sticky;
  top: 0;
  z-index: 5;
  height: 20px;
  background: #181a1c;
  border-bottom: 1px solid #050607;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: ui-monospace, monospace;
  font-size: 8px;
  font-weight: 700;
  color: var(--st-text-muted);
}
.st-pr-key {
  width: 50px;
  height: 16px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding-right: 5px;
  font-size: 8.5px;
  font-family: ui-monospace, monospace;
  font-weight: 700;
  cursor: pointer;
  border-bottom: 1px solid rgba(0, 0, 0, 0.38);
  box-sizing: border-box;
}
.st-pr-key.white { background: #d4d3ce; color: #16181a; }
.st-pr-key.black { background: #232628; color: #8c908b; }
.st-pr-key.is-c { border-bottom-color: rgba(0, 0, 0, 0.7); }
.st-pr-grid-col {
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
}
.st-pr-ruler {
  position: sticky;
  top: 0;
  z-index: 3;
  height: 20px;
  background: linear-gradient(180deg, #242729 0%, #17191b 100%);
  border-bottom: 1px solid #050607;
  position: relative;
}
.st-pr-bar-lbl {
  position: absolute;
  top: 3px;
  padding-left: 5px;
  border-left: 1px solid rgba(255, 255, 255, 0.25);
  font-family: ui-monospace, monospace;
  font-size: 9px;
  font-weight: 700;
  color: var(--st-amber);
  pointer-events: none;
}
.st-pr-canvas {
  position: relative;
  background-color: #101214;
  background-image:
    repeating-linear-gradient(to right, rgba(255,255,255,0.22) 0 1.5px, transparent 1.5px var(--pr-bar, 384px)),
    repeating-linear-gradient(to right, rgba(255,255,255,0.10) 0 1px, transparent 1px var(--pr-beat, 96px)),
    repeating-linear-gradient(to right, rgba(255,255,255,0.04) 0 1px, transparent 1px var(--pr-sub, 24px));
  cursor: crosshair;
  touch-action: none;
}
.st-pr-lane {
  position: absolute;
  left: 0;
  right: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  pointer-events: none;
  box-sizing: border-box;
}
.st-pr-lane.white { background: rgba(255, 255, 255, 0.025); }
.st-pr-lane.is-c { border-bottom-color: rgba(255, 179, 49, 0.16); background: rgba(255, 179, 49, 0.04); }
.st-pr-note {
  position: absolute;
  border-radius: 3px;
  border: 1px solid rgba(0, 0, 0, 0.85);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35), 0 1px 2px rgba(0, 0, 0, 0.45);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 2px 0 4px;
  cursor: grab;
  box-sizing: border-box;
  z-index: 2;
  overflow: hidden;
}
.st-pr-note.selected {
  border: 1.5px solid #fff;
  box-shadow: 0 0 6px rgba(255, 179, 49, 0.65), inset 0 1px 0 rgba(255, 255, 255, 0.45);
  z-index: 3;
}
.st-pr-note-lbl {
  font-family: ui-monospace, monospace;
  font-size: 8.5px;
  font-weight: 800;
  color: rgba(0, 0, 0, 0.88);
  pointer-events: none;
  white-space: nowrap;
}
.st-pr-resize {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 8px;
  cursor: ew-resize;
  background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.42) 55%, rgba(0, 0, 0, 0.35) 100%);
  border-left: 1px solid rgba(0, 0, 0, 0.35);
}
.st-pr-resize:hover {
  background: rgba(255, 255, 255, 0.78);
}

/* Bottom Rack Dock: Track Area | Main Mixer | Master-Effekte | Mixer + Effekte */
.st-arrangement {
  height: 224px;
  min-height: 170px;
  background:
    repeating-linear-gradient(180deg, rgba(255,255,255,0.018) 0 1px, transparent 1px 3px),
    linear-gradient(180deg, #212426 0%, #16181a 25%, #111315 100%);
  border: 1px solid #050607;
  border-radius: 4px;
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
  overflow: hidden;
}
.st-arrangement.st-dock-mixer { height: 295px; }
.st-arrangement.st-dock-effects { height: 215px; }
.st-arrangement.st-dock-mixfx { height: 420px; }

.st-dock-tabs {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  background: linear-gradient(180deg, #272a2c 0%, #191b1d 100%);
  border-bottom: 1.5px solid #050607;
  flex-shrink: 0;
  overflow-x: auto;
}
.st-dock-fx-pills {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 4px;
}
.st-dock-body {
  flex: 1;
  min-height: 0;
  overflow: auto;
  display: flex;
  flex-direction: column;
}
.st-rack-subhead {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 5px 12px;
  font-family: ui-monospace, monospace;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: var(--st-amber);
  background: rgba(0, 0, 0, 0.35);
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}
.st-mixer-rack, .st-fx-rack {
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
}
.st-mixer-row {
  display: flex;
  align-items: stretch;
  gap: 10px;
  padding: 8px 10px;
}
.st-mixer-channels {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  flex: 1;
  padding-bottom: 2px;
}
.st-mix-ch {
  width: 176px;
  min-width: 176px;
  background: #101214;
  border: 1px solid #050607;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.08);
  border-radius: 4px;
  padding: 7px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  cursor: pointer;
}
.st-mix-ch.selected { border-color: var(--st-amber); }
.st-mix-ch-head {
  display: flex;
  align-items: center;
  gap: 5px;
  font-family: ui-monospace, monospace;
  font-size: 10.5px;
  font-weight: 700;
}
.st-mix-ch-title {
  color: var(--st-amber);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.st-mix-main {
  display: flex;
  align-items: center;
  justify-content: space-around;
  gap: 6px;
}
.st-mix-side {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
}
.st-mix-ms { display: flex; gap: 3px; }
.st-mix-sends {
  display: flex;
  justify-content: space-between;
  gap: 2px;
  padding-top: 4px;
  border-top: 1px solid rgba(255,255,255,0.08);
}
.st-mix-sends .st-ctrl { min-width: 36px; }
.st-mix-sends .st-knob { width: 26px; height: 26px; }
.st-mix-inserts {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 3px;
}
.st-mix-master {
  width: 176px;
  min-width: 176px;
  background: #1d2022;
  border: 1px solid #050607;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.1);
  border-radius: 4px;
  padding: 8px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.st-mix-master-knobs {
  display: flex;
  justify-content: space-around;
  gap: 8px;
}
.st-mix-power {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding-top: 6px;
  border-top: 1px solid rgba(255,255,255,0.08);
}
.st-mix-power-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
}

.st-fx-grid {
  display: flex;
  gap: 8px;
  padding: 8px 10px;
  overflow-x: auto;
}
.st-fx-unit {
  min-width: 215px;
  background: #1c1f21;
  border: 1px solid #050607;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.09);
  border-radius: 4px;
  padding: 8px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.st-fx-unit.wide { min-width: 320px; }
.st-fx-head {
  display: flex;
  align-items: center;
  gap: 5px;
}
.st-fx-stepper {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  margin-left: auto;
}
.st-led-num {
  font-family: ui-monospace, monospace;
  font-size: 13px;
  font-weight: 800;
  color: var(--st-amber);
  background: #000;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 2.5px;
  padding: 1px 6px;
  min-width: 28px;
  text-align: center;
}
.st-fx-knobs {
  display: flex;
  justify-content: space-around;
  gap: 8px;
}
.st-fx-route {
  display: flex;
  align-items: center;
  gap: 3px;
  flex-wrap: wrap;
  padding-top: 4px;
  border-top: 1px solid rgba(255,255,255,0.08);
}
.st-arr-body {
  flex: 1;
  overflow: auto;
  display: flex;
  flex-direction: column;
}
.st-arr-row {
  display: flex;
  align-items: center;
  height: 40px;
  border-bottom: 1px solid var(--st-border);
}
.st-arr-lane-head {
  position: sticky; left: 0; z-index: 3;
  width: 175px; min-width: 175px; height: 100%;
  background: var(--st-bg-panel);
  border-right: 1px solid var(--st-border-strong);
  display: flex; align-items: center; gap: 5px; padding: 0 7px;
  cursor: pointer;
}
.st-arr-lane-head.selected { background: var(--st-bg-elev); }
.st-arr-lane {
  position: relative;
  height: 100%;
  flex-shrink: 0;
  background-image: repeating-linear-gradient(
    to right,
    rgba(255,255,255,0.12) 0px,
    rgba(255,255,255,0.12) 1px,
    transparent 1px,
    transparent 96px
  );
}
.st-region {
  position: absolute;
  top: 4px;
  height: 32px;
  border-radius: 5px;
  border: 1px solid rgba(255,255,255,0.45);
  background: rgba(247, 157, 46, 0.25);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 6px;
  font-size: 10px;
  font-weight: 700;
  overflow: hidden;
}
.st-region.selected { border: 1.5px solid #fff; background: rgba(247, 157, 46, 0.42); }
.st-region-actions { display: flex; gap: 2px; }
.st-playhead-bar {
  position: absolute;
  top: 0; bottom: 0; width: 2px;
  background: var(--st-amber);
  pointer-events: none;
  z-index: 4;
}

@media (max-width: 900px) {
  .st-sidebar { width: 185px; min-width: 160px; }
  .st-pad-head, .st-arr-lane-head { width: 135px; min-width: 135px; }
}
