.gain-section { container-type: size; position: absolute; left: 0; right: 0; bottom: 0; height: var(--dsp-control-heigth); display: flex; align-items: flex-end; justify-content: center; box-sizing: border-box; background: var(--bg-panel); z-index: 20; border-top: var(--border-width) solid var(--border-hairline); user-select: none; -webkit-user-select: none; } .gain-panels { display: grid; grid-auto-flow: column; height: 100%; gap: var(--space-2); overflow-x: auto; } .gain-panel { position: relative; height: 100%; aspect-ratio: 1 / 4; flex: 0 0 auto; display: flex; flex-direction: column; align-items: center; justify-content: flex-start; border: var(--border-width) solid var(--border-hairline); border-radius: var(--radius-md); box-sizing: border-box; gap: 2cqh; background: var(--bg-void); padding-bottom: 2cqh; } .gain-panel__title { flex: 0 0 auto; width: 100%; text-align: center; font-family: var(--font-ui); font-size: 4cqh; font-weight: var(--font-weight-semibold); padding-top: 2cqh; padding-bottom: 2cqh; border-bottom: var(--border-width) solid var(--border-hairline); min-width: 0; overflow: hidden; text-overflow: ellipsis; } .gain-linear-graph-section { flex: 0 0 calc(100% - var(--dsp-control-heigth)); min-height: 0; display: flex; flex-direction: row; gap: 1cqh; padding: 0.5cqh; box-sizing: border-box; background: var(--bg-panel); user-select: none; -webkit-user-select: none; } .gain-graph-panel { flex: 1; min-width: 0; min-height: 0; display: flex; flex-direction: column; border: var(--border-width) solid var(--border-hairline); border-radius: var(--radius-md); } .gain-graph-title { flex: 0 0 auto; text-align: center; padding: 1cqh; font-family: var(--font-ui); font-size: 2.5cqh; font-weight: var(--font-weight-semibold); } .gain-graph-panel > .container { flex: 1; min-height: 0; } .gain-graph-title-row { flex: 0 0 auto; display: flex; flex-direction: column; align-items: stretch; gap: 0.75cqh; padding: 1cqh 1.5cqh; min-width: 0; overflow: hidden; } /* First row: title left, Show stages right */ .gain-graph-title-line { display: flex; align-items: center; justify-content: space-between; width: 100%; min-width: 0; gap: 1cqh; } .gain-graph-title-line .gain-graph-title { flex: 1 1 auto; min-width: 0; padding: 0; text-align: left; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } /* Compact button on the right */ .gain-stages-toggle { flex: 0 0 auto; width: auto !important; min-width: max-content; padding: 0.4cqh 1cqh; font-size: 1.8cqh; line-height: 1.2; white-space: nowrap; } /* Channel Selector */ .magnitude-selector { width: 100%; min-width: 0; display: flex; align-items: center; flex-wrap: nowrap; gap: 0.5cqh; overflow: hidden; user-select: none; -webkit-user-select: none; } .magnitude-selector__chip { flex: 0 1 auto; min-width: 0; display: flex; align-items: center; gap: 0.6cqh; font-family: var(--font-ui); font-size: 1.8cqh; padding: 0.4cqh 1cqh; background: var(--bg-void); color: var(--text-muted); border: var(--border-width) solid var(--border-hairline); border-radius: var(--radius-sm); cursor: pointer; opacity: 0.5; white-space: nowrap; overflow: hidden; } .magnitude-selector__chip.active { opacity: 1; color: var(--text-primary); border-color: var(--chip-color); } .magnitude-selector__swatch { width: 1.2cqh; height: 1.2cqh; border-radius: 50%; background: var(--chip-color); flex: 0 0 auto; } .magnitude-selector__label { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }