.eq-top-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 144px;
  min-width: 0;
  min-height: 276px;
  border: 1px solid var(--rx-border);
  border-radius: var(--rx-radius-sm);
  background: var(--rx-surface);
}

.band-editor-pane {
  display: grid;
  grid-template-columns: 90px minmax(0, 1fr);
  min-width: 0;
  min-height: 0;
}

.eq-label-rail {
  display: grid;
  grid-template-rows: 34px 33px 33px 33px minmax(120px, 1fr);
  min-width: 0;
  padding: 0 3px;
  border-right: 1px solid var(--rx-divider);
  color: var(--rx-muted);
  font-size: 10px;
  text-align: right;
}

.eq-label-rail > span { display: block; }
.eq-label-rail > strong { align-self: center; font-size: 10px; font-weight: 600; white-space: nowrap; }

.rail-gain-scale {
  display: flex;
  padding: 5px 0 8px;
  flex-direction: column;
  justify-content: space-between;
  color: var(--rx-muted);
  font-size: 9px;
}

.rx-band-editor {
  display: grid;
  grid-template-columns: repeat(var(--band-count), minmax(0, 1fr));
  min-width: 0;
  min-height: 0;
}

.band-column {
  min-width: 0;
  min-height: 274px;
  padding: 7px 7px 6px;
  border-right: 1px solid var(--rx-divider);
  color: var(--rx-text);
  background: var(--rx-surface);
}

.band-column:last-child { border-right: 0; }
.band-column:hover, .band-column:focus-visible { background: var(--rx-hover); }
.band-column.selected-band-column { background: var(--rx-surface); box-shadow: inset 0 -2px 0 var(--rx-red); }

.band-column-heading {
  display: flex;
  min-height: 27px;
  align-items: center;
  justify-content: center;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--rx-divider);
}

.band-number {
  display: grid;
  width: 25px;
  height: 25px;
  place-items: center;
  border: 1px solid currentColor;
  border-radius: 50%;
  color: var(--rx-text);
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
}

.band-column:nth-child(1) .band-number { color: var(--rx-band-1); }
.band-column:nth-child(2) .band-number { color: var(--rx-band-2); }
.band-column:nth-child(3) .band-number { color: var(--rx-band-3); }
.band-column:nth-child(4) .band-number { color: var(--rx-band-4); }
.band-column:nth-child(5) .band-number { color: var(--rx-band-5); }
.band-column:nth-child(6) .band-number { color: var(--rx-band-6); }
.band-column:nth-child(7) .band-number { color: var(--rx-band-7); }
.band-name { display: none; }

.band-fields {
  display: grid;
  grid-template-rows: repeat(3, 29px);
  gap: 5px;
  padding-top: 6px;
}

.band-value-input {
  width: 100%;
  min-width: 0;
  height: 29px;
  padding: 3px 4px;
  border: 1px solid #DCDCDC;
  border-radius: var(--rx-radius-sm);
  color: var(--rx-text);
  background: var(--rx-surface);
  font-size: 11px;
  font-weight: 600;
}

.band-value-input:hover:not(:disabled), .band-value-input:focus { border-color: var(--rx-red); outline: 0; }
.band-value-input:disabled { color: var(--rx-muted); background: var(--rx-hover); }

.slider-wrap.fader-control {
  display: grid;
  position: relative;
  min-height: 120px;
  margin-top: 6px;
  justify-items: center;
  gap: 2px;
}

.slider-mark { color: var(--rx-muted); font-size: 9px; line-height: 1; }

.rx-peq {
  display: flex;
  min-width: 0;
  min-height: 0;
  padding: 10px 11px;
  flex-direction: column;
  align-items: stretch;
  justify-content: center;
  gap: 10px;
  border-left: 1px solid var(--rx-divider);
  background: var(--rx-hover);
}

.rx-peq > strong {
  margin-bottom: 2px;
  color: var(--rx-text);
  font-size: 11px;
  letter-spacing: .1em;
  text-align: center;
}

.rx-peq__button {
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 5px 6px;
  border-color: #DADADA;
  color: var(--rx-text);
  background: var(--rx-surface);
  font-size: 10px;
}

.rx-peq__button:hover:not(:disabled) { border-color: var(--rx-red); color: var(--rx-text); background: var(--rx-hover); }
.action-icon { display: inline-flex; align-items: center; color: var(--rx-red); }

.rx-frequency-response-graph {
  position: relative;
  min-width: 0;
  height: auto;
  overflow: visible;
  padding: 7px 9px 5px;
  border: 1px solid var(--rx-border);
  border-radius: var(--rx-radius-sm);
  background: var(--rx-surface);
}

.rx-frequency-response-graph__header {
  display: flex;
  min-height: 20px;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 0 2px;
}

.rx-frequency-response-graph__header h2 { color: var(--rx-text); font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.graph-note { color: var(--rx-muted); font: 10px ui-monospace, SFMono-Regular, Menlo, monospace; }

.rx-frequency-response-graph__container {
  position: relative;
  min-width: 0;
  min-height: 0;
  height: auto;
  overflow: visible;
  margin-top: 2px;
  background: var(--rx-surface);
  user-select: none;
  -webkit-user-select: none;
  -webkit-user-drag: none;
  touch-action: none;
}

.eq-graph-svg {
  display: block;
  width: 100%;
  height: 230px !important;
  min-width: 0;
  min-height: 230px;
  max-height: none;
  padding: 0;
  user-select: none;
  -webkit-user-select: none;
  -webkit-user-drag: none;
  touch-action: none;
}

.eq-graph-plot { fill: #fff; stroke: var(--rx-border); }
.eq-graph-grid { stroke: var(--rx-grid); stroke-width: 1; }
.eq-graph-zero { stroke: var(--rx-zero-line); stroke-width: 1; stroke-dasharray: 4 4; }
.eq-graph-axis-label { fill: #555; font: 10px ui-monospace, SFMono-Regular, Menlo, monospace; }
.eq-graph-main-response { fill: none; stroke: var(--rx-red); stroke-width: 1.7; opacity: 1; }
.eq-graph-main-response.eq-graph-filtered-response { stroke: #299b60; }
.eq-graph-band-fill { fill: var(--band-color); opacity: .065; }
.eq-graph-band-fill.is-selected { opacity: .11; }
.eq-graph-individual-response { fill: none; stroke: var(--band-color); stroke-width: 1; opacity: .62; }
.eq-graph-individual-response.is-selected { opacity: .7; }
.eq-graph-marker-circle { fill: #fff; stroke: var(--marker-color); stroke-width: 1.3; cursor: grab; }
.eq-graph-marker-circle:focus-visible { stroke: var(--rx-red); stroke-width: 2.4; }
.rx-frequency-response-graph__container.is-dragging .eq-graph-marker-circle { cursor: grabbing; }
.eq-graph-marker-number { fill: var(--marker-color); font: 600 10px ui-sans-serif, system-ui, sans-serif; }
.eq-graph-marker-group.is-selected .eq-graph-marker-circle { stroke-width: 2; }
.eq-graph-marker-group.is-selected .eq-graph-marker-number { fill: var(--marker-color); }
.eq-graph-filter-marker-group { pointer-events: none; }
.eq-graph-filter-marker-hit-area {
  fill: transparent;
  stroke: transparent;
  cursor: ew-resize;
  pointer-events: auto;
}
.eq-graph-filter-marker-circle {
  fill: var(--filter-marker-color);
  stroke: #fff;
  stroke-width: 1.6;
  pointer-events: none;
}
.eq-graph-filter-marker-glow {
  fill: var(--filter-marker-color);
  opacity: .2;
  pointer-events: none;
}
.eq-graph-filter-marker-hit-area:focus-visible { stroke: #fff; stroke-width: 2.6; outline: none; }
.eq-graph-selected-band {
  fill: #555;
  font: 600 10px/12px ui-monospace, SFMono-Regular, Menlo, monospace;
  pointer-events: none;
}
.eq-graph-disconnected-overlay { fill: #777; font: 11px ui-sans-serif, system-ui, sans-serif; }

.edit-notice { margin: 0; padding: 5px 2px 0; color: var(--rx-red); font-size: 11px; }

@media (max-width: 1000px) {
  .eq-top-row { grid-template-columns: minmax(0, 1fr) 140px; }
}

@media (max-width: 820px) {
  .eq-top-row { grid-template-columns: minmax(0, 1fr) 120px; }
  .band-editor-pane { grid-template-columns: 54px minmax(0, 1fr); }
}

@media (max-width: 600px) {
  .eq-top-row { grid-template-columns: minmax(0, 1fr); }
  .rx-peq { grid-row: auto; grid-column: 1; border-top: 1px solid var(--rx-divider); border-left: 0; }
}

@media (max-height: 820px) and (min-width: 1001px) {
  .eq-graph-svg { height: 224px !important; min-height: 224px; }
  .slider-wrap.fader-control { min-height: 108px; }
}
