.atmo-style-orbit .beep-left {
  position: absolute;
  left: 0;
  width: 250px;
  top: 0;
  bottom: 0;
  background: #161b22;
  border-right: 1px solid rgba(255,255,255,0.1);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.atmo-style-orbit .beep-right {
  position: absolute;
  right: 0;
  /* left will be managed by SplitBar or left-panel width */
  top: 0;
  bottom: 0;
  display: flex;
  flex-direction: column;
  background: #0d1117;
  overflow: hidden;
}

.atmo-style-orbit .beep-splitbar {
  position: absolute;
  left: 250px;
  top: 0;
  bottom: 0;
  width: 10px;
  cursor: ew-resize;
  background: rgba(255,255,255,0.05);
  transition: background 0.2s;
  z-index: 10;
}

.atmo-style-orbit .beep-splitbar:hover {
  background: #4ade80;
}

.atmo-style-orbit .beepinfo {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 60px;
  background: #1a1f34;
  padding: 0 15px;
  display: flex;
  align-items: center;
  gap: 20px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  overflow-x: auto;
  overflow-y: hidden;
  white-space: nowrap;
}

.atmo-style-orbit .beepinfo-section {
  display: inline-flex;
  flex-direction: column;
  gap: 4px;
}

.atmo-style-orbit .section-label {
  color: #4ade80;
  font-size: 10px;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.atmo-style-orbit .oscillator-selector {
  display: flex;
  gap: 5px;
}

.atmo-style-orbit .osc-btn {
  width: 32px;
  height: 32px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border-radius: 4px;
  transition: all 0.2s;
  color: rgba(255,255,255,0.7);
}

.atmo-style-orbit .osc-btn:hover {
  background: rgba(255,255,255,0.1);
  border-color: #4ade80;
}

.atmo-style-orbit .osc-btn.selected {
  background: linear-gradient(135deg, #4ade80 0%, #22c55e 100%);
  color: #1a1f34;
  border-color: #4ade80;
}

.atmo-style-orbit .envelope-controls {
  display: flex;
  gap: 12px;
  background: rgba(0,0,0,0.2);
  padding: 4px 10px;
  border-radius: 6px;
}

.atmo-style-orbit .control-group {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}

.atmo-style-orbit .control-group label {
  font-size: 9px;
  color: rgba(255,255,255,0.4);
}

.atmo-style-orbit .control-group input[type="range"] {
  -webkit-appearance: none;
  width: 40px;
  height: 3px;
  background: rgba(255,255,255,0.1);
  border-radius: 2px;
  outline: none;
}

.atmo-style-orbit .control-group input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 10px;
  height: 10px;
  background: #4ade80;
  border-radius: 50%;
  cursor: pointer;
}

.atmo-style-orbit #beep-editor-container {
  position: absolute;
  top: 60px;
  left: 0;
  right: 0;
  bottom: 0;
  overflow: hidden;
}

.atmo-style-orbit #beep-piano-roll-container {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 155px;
  background: #0d1117;
  cursor: crosshair;
}

.atmo-style-orbit #beep-piano-roll {
  width: 100%;
  height: 100%;
}

.atmo-style-orbit #beep-keyboard-container {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 80px;
  background: #1a1f34;
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 5px;
}

.atmo-style-orbit #beep-keyboard {
  display: flex;
  gap: 1px;
  width: 100%;
  height: 100%;
}

.atmo-style-orbit .beep-key {
  flex: 1;
  background: white;
  border-radius: 0 0 3px 3px;
  cursor: pointer;
  position: relative;
  min-width: 0;
  touch-action: none;
  user-select: none;
}

.atmo-style-orbit .beep-key.black {
  background: #161b22;
  flex: 0 0 1.5%;
  height: 60%;
  z-index: 1;
  margin-left: -0.75%;
  margin-right: -0.75%;
  border: 1px solid rgba(255,255,255,0.1);
}

.atmo-style-orbit .beep-key:active {
  background: #4ade80;
}

.atmo-style-orbit .beepinfo .buttons {
  display: flex;
  gap: 6px;
}

.atmo-style-orbit .beepinfo .buttons div {
  width: 32px;
  height: 32px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border-radius: 4px;
  color: rgba(255,255,255,0.7);
}

.atmo-style-orbit .beepinfo .buttons div:hover {
  background: rgba(255,255,255,0.1);
  border-color: #4ade80;
  color: #fff;
}

.atmo-style-orbit .beepinfo .buttons div#delete-beep:hover {
  border-color: #f87171;
  color: #f87171;
}

.atmo-style-orbit .beepinfo .buttons div#record-beep.active {
  border-color: #ef4444;
  color: #ef4444;
  box-shadow: 0 0 10px rgba(239, 68, 68, 0.4);
}

.atmo-style-orbit .info-row {
  display: flex;
  align-items: center;
  gap: 5px;
}

.atmo-style-orbit #beep-name {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  color: #fff;
  padding: 4px 8px;
  border-radius: 4px;
  width: 120px;
  font-size: 13px;
}

#beep-chord-blocks {
  position: absolute;
  bottom: 80px;
  left: 5px;
  right: 5px;
  height: 65px;
  display: flex;
  margin-bottom: 5px;
  gap: 5px;
}

#beep-chord-popup {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: rgba(0, 0, 0, 0.7);
  color: #4ade80;
  font-size: 72px;
  font-weight: bold;
  padding: 20px 40px;
  border-radius: 20px;
  z-index: 100;
  pointer-events: none;
  backdrop-filter: blur(4px);
  text-shadow: 0 0 20px rgba(74, 222, 128, 0.5);
}

#beep-top-tools {
  position: absolute;
  top: 8px;
  right: 10px;
  left: 10px;
  z-index: 30;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
  pointer-events: none;
}

#beep-top-tools .beep-tool-row {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
  max-width: 100%;
  pointer-events: auto;
}

#beep-top-tools .beep-tool-group,
#beep-top-tools .beep-tool-toggle,
#beep-top-tools button {
  background: rgba(13, 17, 23, 0.86);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 4px;
  color: #8b949e;
  font-size: 11px;
}

#beep-top-tools .beep-tool-group {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 5px 6px;
}

#beep-top-tools .beep-tool-toggle {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 5px 6px;
}

#beep-top-tools select,
#beep-top-tools button {
  background: #0d1117;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 3px;
  color: #e6edf3;
  font-size: 11px;
  height: 24px;
  padding: 2px 6px;
}

#beep-top-tools button {
  cursor: pointer;
  color: #4ade80;
  border-color: rgba(74, 222, 128, 0.45);
  padding: 3px 8px;
}

#beep-top-tools button:hover {
  background: rgba(74, 222, 128, 0.16);
}

#beep-master-volume {
  width: 86px;
}

#beep-tempo-bpm {
  width: 84px;
}

#beep-tempo-bpm-value {
  min-width: 24px;
  color: #e6edf3;
  text-align: right;
}

#beep-pro-instrument {
  width: 112px;
}

#beep-render-mode-group.beep-mode-basic #beep-pro-instrument,
#beep-render-mode-group.beep-mode-basic #beep-pro-status {
  display: none;
}

#beep-pro-status {
  min-width: 42px;
  color: #4ade80;
  text-align: right;
}

#beep-help-popup {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: rgba(22, 27, 34, 0.95);
  color: #e6edf3;
  padding: 20px 30px;
  border: 1px solid #30363d;
  border-radius: 8px;
  z-index: 200;
  box-shadow: 0 10px 30px rgba(0,0,0,0.5);
  min-width: 300px;
}

#beep-help-popup h3 {
  margin-top: 0;
  margin-bottom: 15px;
  color: #4ade80;
}

#beep-help-popup ul {
  padding-left: 20px;
  margin-bottom: 20px;
  line-height: 1.6;
}

#beep-help-popup .close-btn {
  background: #238636;
  color: white;
  text-align: center;
  padding: 8px;
  border-radius: 4px;
  cursor: pointer;
}

#beep-help-popup .close-btn:hover {
  background: #2ea043;
}

.chord-block {
  flex: 1;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 4px;
  padding: 5px;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  flex-direction: column;
}

.chord-block:hover {
  background: rgba(255, 255, 255, 0.1);
}

.chord-block.active {
  background: rgba(74, 222, 128, 0.1);
  border-color: #4ade80;
}

.chord-block .block-title {
  font-size: 10px;
  text-align: center;
  color: #8b949e;
  margin-bottom: 5px;
  pointer-events: none;
}

.chord-block.active .block-title {
  color: #4ade80;
}

.chord-block .chords {
  display: flex;
  justify-content: space-between;
}

.chord-block .chords div {
  flex: 1;
  text-align: center;
  background: rgba(255,255,255,0.1);
  margin: 0 2px;
  border-radius: 3px;
  font-size: 11px;
  padding: 4px 0;
  cursor: pointer;
  user-select: none;
  color: #e6edf3;
}

.chord-block .chords div:hover {
  background: rgba(255,255,255,0.2);
}

.chord-block .chords div:active {
  background: #4ade80;
  color: black;
}

.chord-block .chords div.pressed {
  background: #4ade80;
  color: #0d1117;
}

.atmo-style-orbit .validate-button {
  background: #4ade80;
  color: #1a1f34;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: bold;
  cursor: pointer;
}
