/* Master output meter (top bar, master-meter.js), and the effect windows' LFO bits (mixer.js). */

.master-meter { display: inline-flex; align-items: center; gap: 7px; height: 28px; padding: 0 7px; border: 1px solid #000; border-radius: 3px; background: #0e0f11; color: var(--text); cursor: pointer; flex: none; }
.master-meter:hover { border-color: var(--line-soft); }
.master-meter:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
.mm-bars { display: grid; gap: 2px; width: 96px; }
/* Zones at −12 and −3 dB (80 % and 95 % of a −60…0 dB bar); the mask hides what isn't lit. */
.mm-bar { position: relative; height: 5px; border-radius: 1px; background: linear-gradient(to right, #4cc472 0 80%, #e8c547 80% 95%, #e5484d 95%); overflow: hidden; }
.mm-mask { position: absolute; inset: 0; background: #23262b; transform-origin: right; }
.mm-hold { position: absolute; top: 0; bottom: 0; left: 0; width: 2px; margin-left: -2px; background: #f2f2ee; opacity: 0; }
.mm-hold.on { opacity: 0.9; }
.mm-readouts { display: grid; min-width: 62px; text-align: right; line-height: 1.15; }
.mm-peak { font: 600 11px var(--mono); color: #e8f1ff; }
.mm-peak.over { justify-self: end; padding: 0 4px; border-radius: 2px; background: #e5484d; color: #fff; letter-spacing: .06em; }
.mm-lufs { font: 9px var(--mono); color: var(--text-dim); }
@media (max-width: 1500px) { .mm-bars { width: 64px; } .mm-readouts { min-width: 54px; } }
@media (max-width: 1400px) { .mm-lufs { display: none; } .mm-readouts { min-width: 46px; } }
@media (orientation: landscape) and (max-height: 520px) {
  .master-meter { height: 30px; gap: 5px; }
  .mm-bars { width: 64px; }
  .mm-lufs { display: none; }
}

/* Effect windows: the LFO under the effect's own controls; "LFO" on a slot whose LFO is on. */
.plugin-body .effect-lfo { padding-top: 8px; border-top: 1px solid #000; }
.slot-lfo { flex: none; padding: 1px 3px; border-radius: 2px; background: #263b57; color: #9cc8ff; font: 700 8px/1.2 var(--mono); letter-spacing: .05em; }
