/* ============ Rack ============ */
/* Two modes over one bottom bar. A drum channel opens the step sequencer, a
   chromatic one the piano roll; the plugin chain is the second mode either way.
   Everything vertical in the step view is measured off --rack-row, so a channel
   pill and its row of steps land on the same line and the ruler above the grid
   is exactly the padding that pushes the channel list down to meet it. */

.rack-view {
  --rack-row: 30px;      /* a channel, and the step row it plays */
  --rack-ruler: 18px;    /* the numbered ruler over the step grid */
  --rack-bar: 34px;      /* the mode bar along the bottom */

  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 0;
  min-width: 0;
  background: #141414;
}

/* ---------- Body and panes ---------- */

.rack-body {
  flex: 1;
  display: flex;
  min-height: 0;
  min-width: 0;
}

.rack-pane {
  display: none;
}

.rack-pane.is-active {
  display: flex;
  gap: 10px;
  flex: 1;
  min-height: 0;
  min-width: 0;
  padding: 6px;
}

/* One scroller shape for every horizontally-run thing in the rack: the step
   grid, the piano roll and the chain. */
.rack-scroller {
  flex: 1;
  min-width: 0;
  min-height: 0;
  overflow: auto;
}

/* Panels, the tone the shell uses for a panel that has tabs. */
.rack-fx,
.rack-channels,
.rack-plugin-face {
  background: var(--sh-panel);
  border-radius: var(--sh-radius);
  flex-shrink: 0;
}

/* ---------- Settings sections ---------- */

.rack-fx {
  width: 152px;
  padding: 4px 12px;
  overflow-y: auto;
}

.rack-fx-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 11px 0;
  background: none;
  border: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.09);
  color: #b0b0b0;
  font-family: var(--font-condensed);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  cursor: pointer;
}

.rack-fx-row:last-child {
  border-bottom: none;
}

.rack-fx-row .material-symbols-outlined {
  font-size: 17px;
  color: #c8c8c8;
}

.rack-fx-row:hover {
  color: #ffffff;
}

