/* ------------------------------------------------------------------
   Mvox-look panels for the stream mixer (assets/js/mvox-ui.js): the draggable EQ, the M-Comp panel and the widget's read-only mirrors.
   Colours are the plugin's own (Source/GUI/MvoxLookAndFeel.h, dark theme): black plot, graphite panels, champagne gold, silver nodes.
   The console around them stays the site's brown/gold; inside these panels it is Mvox. Everything is sized in em, so a panel scales with the
   font-size of whatever holds it (the widget sets that from the viewport). Michroma ships one weight: emphasis is colour and size, never bold.
-------------------------------------------------------------------*/
.mvx {
  --mvx-bg: #000000;
  --mvx-panel: #0c0c0f;
  --mvx-raised: #101013;
  --mvx-bright: #17171b;
  --mvx-border: #2c2c36;
  --mvx-text: #e8e8ec;
  --mvx-muted: #8a8a95;
  --mvx-silver: #c4c4cc;
  --mvx-gold: #c49a3a;
  --mvx-gold-hi: #e1c15a;
  --mvx-gold-active: #f0d477;
  --mvx-pointer: #ffea65;
  --mvx-red: #cf5353;
  --mvx-orange: #e0954a;
  --mvx-btn: #1c1c22;

  box-sizing: border-box;
  position: relative;
  width: 100%;
  padding: 0.85em;
  font-family: var(--font-body, "Michroma", "Segoe UI", sans-serif);
  font-size: 12px;
  line-height: 1.4;
  color: var(--mvx-text);
  background: var(--mvx-panel);
  border: 1px solid var(--mvx-border);
  border-radius: 0.8em;
  text-align: left;
}
.mvx *, .mvx *::before, .mvx *::after { box-sizing: border-box; }
.mvx [hidden] { display: none !important; }
.mvx-msg { margin: 0; padding: 0.4em 0.2em; color: var(--mvx-muted); font-size: 0.9em; }

/* ---- shared bits ---- */
.mvx-title {
  font-size: 0.95em; letter-spacing: 0.22em; text-transform: uppercase; color: var(--mvx-gold-hi);
  text-shadow: 0 0 0.7em rgba(196, 154, 58, 0.5);
}
.mvx-btn, .mvx-select, .mvx-chip, .mvx-seg-btn {
  font: inherit; font-size: 0.78em; color: var(--mvx-silver); background: var(--mvx-btn);
  border: 1px solid var(--mvx-border); border-radius: 0.5em;
}
.mvx-btn, .mvx-chip, .mvx-seg-btn { appearance: none; -webkit-appearance: none; cursor: pointer; padding: 0.55em 1em; letter-spacing: 0.05em; min-height: 2.4em; }
.mvx-btn:hover, .mvx-chip:hover, .mvx-seg-btn:hover { border-color: var(--mvx-gold); color: var(--mvx-gold-active); }
.mvx-btn:focus-visible, .mvx-chip:focus-visible, .mvx-seg-btn:focus-visible, .mvx-select:focus-visible, .mvx-knob-body:focus-visible, .mvx-range:focus-visible {
  outline: 2px solid var(--mvx-gold-active); outline-offset: 2px;
}
.mvx-btn.is-on, .mvx-chip.is-on, .mvx-seg-btn.is-on { background: var(--mvx-gold); border-color: var(--mvx-gold); color: #17140c; }
.mvx-btn--bad:hover { border-color: var(--mvx-red); color: #ffb4b4; }
.mvx-btn--sm { padding: 0.25em 0.8em; min-height: 0; font-size: 0.66em; }
.mvx-btn:disabled { opacity: 0.45; cursor: default; }
/* each module's own Bypass (separate from the mixer's global Bypass A/B): lit red while the module is switched out of the sound */
.mvx-byp { min-height: 0; padding: 0.35em 0.95em; }
.mvx-byp.is-on, .mvx-byp.is-on:hover { background: var(--mvx-red); border-color: var(--mvx-red); color: #fff4f4; }
.mvx-select { padding: 0.5em 0.7em; min-height: 2.4em; max-width: 100%; }
.mvx-select option { background: #101013; color: var(--mvx-text); }
.mvx-sr { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* ---- the EQ ---- */
.mvx-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5em 0.9em; }
.mvx-chips { display: flex; flex-wrap: wrap; gap: 0.35em; align-items: center; min-width: 0; }
.mvx-chip { min-width: 2.6em; padding: 0.4em 0.6em; text-align: center; }
.mvx-chips-empty { font-size: 0.72em; color: var(--mvx-muted); }
.mvx-bar-r { display: flex; flex-wrap: wrap; gap: 0.5em; margin-left: auto; align-items: center; }
.mvx-stage {
  position: relative; width: 100%; margin-top: 0.7em; aspect-ratio: 2.1 / 1; min-height: 190px; max-height: 360px;
  background: var(--mvx-bg); border: 1px solid var(--mvx-border); border-radius: 0.5em; overflow: hidden;
}
.mvx-canvas { position: absolute; left: 0; top: 0; display: block; outline: none; touch-action: none; cursor: crosshair; -webkit-tap-highlight-color: transparent; }
.mvx-badge {
  position: absolute; top: 0.6em; right: 0.7em; padding: 0.25em 0.8em; font-size: 0.68em; letter-spacing: 0.08em; pointer-events: none;
  color: #ffd9d9; background: rgba(207, 83, 83, 0.82); border-radius: 999px;
}
.mvx-insp { margin-top: 0.7em; padding: 0.7em 0.8em; background: var(--mvx-raised); border: 1px solid var(--mvx-border); border-radius: 0.5em; }
.mvx-insp-head { display: flex; align-items: center; justify-content: space-between; gap: 0.6em; }
.mvx-insp-title { font-size: 0.82em; letter-spacing: 0.14em; text-transform: uppercase; color: var(--mvx-gold-hi); }
.mvx-insp.is-empty .mvx-insp-title { color: var(--mvx-muted); }
.mvx-insp-empty { margin-top: 0.4em; font-size: 0.74em; color: var(--mvx-muted); }
.mvx-insp-row { display: flex; flex-wrap: wrap; gap: 0.7em 1em; margin-top: 0.7em; align-items: flex-end; }
.mvx-fld { display: flex; flex-direction: column; gap: 0.3em; flex: 1 1 9.5em; min-width: 8em; }
.mvx-fld-l { font-size: 0.62em; letter-spacing: 0.16em; text-transform: uppercase; color: var(--mvx-muted); }
.mvx-fld-v { font-size: 0.74em; color: var(--mvx-silver); }
.mvx-insp-tog { display: flex; flex-wrap: wrap; gap: 0.5em; flex: 1 1 100%; }
.mvx-hint { margin: 0.7em 0 0; font-size: 0.62em; line-height: 1.55; color: var(--mvx-muted); }
.mvx-range { width: 100%; height: 1.8em; margin: 0; background: transparent; accent-color: var(--mvx-gold); cursor: pointer; }
.mvx-eq.is-bypassed .mvx-insp-row, .mvx-eq.is-modoff .mvx-insp-row { opacity: 0.7; }

/* ---- the compressor ---- */
.mvx-comp { background: linear-gradient(180deg, #22222a, #17171b 55%); }
.mvx-housing {
  padding: 0.7em; border: 1px solid rgba(196, 154, 58, 0.35); border-radius: 0.8em;
  background: linear-gradient(180deg, #28262c, #141216);
}
.mvx-comp-head { display: flex; align-items: center; justify-content: space-between; gap: 0.6em; margin-bottom: 0.5em; }
.mvx-comp-head .mvx-title { font-size: 1.1em; text-shadow: 0 0 0.6em rgba(196, 154, 58, 0.55); }
.mvx-seg { display: flex; gap: 0.3em; }
.mvx-seg-btn { padding: 0.4em 1em; }
.mvx-meterbox { padding: 0.5em 0.6em 0.3em; background: #0d0d10; border: 1px solid #1a1a1f; border-radius: 0.6em; }
.mvx-meter-tags { display: flex; justify-content: space-between; font-size: 0.6em; letter-spacing: 0.14em; color: rgba(196, 154, 58, 0.85); }
.mvx-meter-gr::before { content: ""; display: inline-block; width: 0.7em; height: 0.7em; margin-right: 0.5em; border-radius: 50%; background: var(--mvx-muted); }
.mvx-meter-gr.is-on { color: var(--mvx-gold); }
.mvx-meter-gr.is-on::before { background: var(--mvx-gold); box-shadow: 0 0 0.7em var(--mvx-gold); }
.mvx-meter-title { margin-top: 0.15em; text-align: center; font-size: 0.82em; letter-spacing: 0.18em; color: var(--mvx-gold); }
.mvx-gauge { display: block; width: 100%; max-width: 30em; margin: 0 auto; height: auto; }
.mvx-g-minor { stroke: rgba(196, 154, 58, 0.16); stroke-width: 1; }
.mvx-g-fill { stroke: var(--mvx-gold); stroke-width: 3.2; stroke-linecap: round; filter: drop-shadow(0 0 3px rgba(196, 154, 58, 0.7)); }
.mvx-g-fill.mvx-g-red { stroke: var(--mvx-red); filter: drop-shadow(0 0 3px rgba(207, 83, 83, 0.7)); }
.mvx-g-major { stroke: rgba(196, 154, 58, 0.85); stroke-width: 1.6; }
.mvx-g-major.is-danger { stroke: rgba(207, 83, 83, 0.9); }
.mvx-g-label { fill: var(--mvx-silver); font-size: 9px; font-family: inherit; }
.mvx-g-bracket { stroke: rgba(255, 255, 255, 0.92); stroke-width: 2.4; stroke-linecap: round; }
.mvx-g-readout { fill: var(--mvx-gold); font-size: 27px; font-family: inherit; }
.mvx-g-unit { fill: var(--mvx-muted); font-size: 10px; font-family: inherit; }
.mvx-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.5em; margin-top: 0.5em; }
.mvx-card { min-width: 0; padding: 0.45em 0.5em; text-align: center; background: #0d0d10; border: 1px solid #23232a; border-radius: 0.5em; }
.mvx-card-l { font-size: 0.55em; letter-spacing: 0.14em; color: var(--mvx-muted); }
.mvx-card-v { margin-top: 0.3em; font-size: 0.85em; color: var(--mvx-gold); white-space: nowrap; }
.mvx-card .mvx-btn { margin-top: 0.35em; }
.mvx-spark { display: block; width: 100%; height: 2em; margin-top: 0.2em; }
.mvx-spark-line { stroke: rgba(196, 154, 58, 0.85); stroke-width: 1.4; vector-effect: non-scaling-stroke; }
.mvx-knobs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0.9em 0.4em; margin-top: 0.9em; }
.mvx-knob { display: flex; flex-direction: column; align-items: center; gap: 0.35em; min-width: 0; }
.mvx-knob-label { font-size: 0.66em; letter-spacing: 0.1em; color: var(--mvx-silver); }
.mvx-knob-body { width: 4.8em; height: 4.8em; cursor: ns-resize; touch-action: none; border-radius: 50%; -webkit-tap-highlight-color: transparent; }
.mvx-knob-body svg { display: block; width: 100%; height: 100%; }
.mvx-knob-value { font-size: 0.66em; color: var(--mvx-muted); white-space: nowrap; min-height: 1.4em; }
.mvx-k-track { stroke: var(--mvx-border); stroke-width: 3; stroke-linecap: round; }
.mvx-k-arc { stroke: var(--mvx-gold-hi); stroke-width: 2.8; stroke-linecap: round; filter: drop-shadow(0 0 2.5px rgba(225, 193, 90, 0.55)); }
.mvx-k-cap { fill: #15151a; stroke: var(--mvx-border); stroke-width: 1; }
.mvx-k-ptr { stroke: var(--mvx-pointer); stroke-width: 2.6; stroke-linecap: round; }
.mvx-comp.is-bypassed .mvx-knobs { opacity: 0.7; }
.mvx-comp.is-modoff .mvx-knobs { opacity: 0.55; }
.mvx-comp.is-modoff .mvx-meterbox { opacity: 0.6; }
.mvx-comp-head .mvx-title { margin-right: auto; }
.mvx-comp-head .mvx-byp { order: 3; }

/* ---- a one-line status inside a panel (view.setNote): "the audio module did not load" ---- */
.mvx-note { margin: 0.5em 0 0; padding: 0.35em 0.65em; font-size: 0.74em; line-height: 1.4; color: #ffdcb3; background: rgba(224, 149, 74, 0.14); border: 1px solid rgba(224, 149, 74, 0.45); border-radius: 0.4em; }

/* ---- Space (reverb) and Delay: one shell, a knob grid, a strip underneath ---- */
.mvx-fx { display: flex; flex-direction: column; gap: 0.6em; min-height: 100%; background: linear-gradient(180deg, #22222a, #17171b 55%); container-type: inline-size; container-name: mvxfx; }
.mvx-fx > * { min-width: 0; }
.mvx-fx-head { display: flex; align-items: center; justify-content: space-between; gap: 0.6em; }
.mvx-fx-head .mvx-title { margin-right: auto; font-size: 1.1em; text-shadow: 0 0 0.6em rgba(196, 154, 58, 0.55); }
.mvx-fx .mvx-note { margin-top: 0; }
.mvx-fx-head .mvx-seg-btn { padding: 0.35em 0.85em; min-height: 0; }
.mvx-fx-head .mvx-ezseg { flex: 0 0 auto; }
.mvx-fx-body { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0.6em; flex: 1 1 auto; align-content: center; }
.mvx-fx-main { display: flex; flex-direction: column; justify-content: center; gap: 0.5em; min-width: 0; }
.mvx-fx-knobs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0.7em 0.25em; align-items: start; }
.mvx-fx-cell { display: flex; flex-direction: column; align-items: center; min-width: 0; }
.mvx-fx-cell > .mvx-knob, .mvx-fx-cell > .mvx-notebox { width: 100%; }
.mvx-fx-cell.is-sync { grid-column: span 2; }          /* narrow (4 per row): the Note select gets two cells, which also makes the 7 knobs + note an even 4 + 4 */
.mvx-notebox { justify-content: flex-start; }
.mvx-notebox .mvx-select { width: 100%; min-height: 0; padding: 0.35em 0.4em; font-size: 0.72em; }
.mvx-fx-strip { display: flex; flex-wrap: wrap; align-items: center; gap: 0.45em 0.8em; padding-top: 0.55em; border-top: 1px solid rgba(255, 255, 255, 0.07); }
.mvx-fx-strip .mvx-btn { min-height: 0; padding: 0.4em 0.9em; }
.mvx-tog.is-on { background: var(--mvx-gold); border-color: var(--mvx-gold); color: #17140c; }
.mvx-fx.is-bypassed .mvx-fx-body { opacity: 0.7; }
.mvx-fx.is-modoff .mvx-fx-body, .mvx-fx.is-modoff .mvx-fx-strip { opacity: 0.55; }
.mvx-fx.is-modoff .mvx-fx-strip .mvx-byp { opacity: 1; }
/* the small labelled meters (Space: wet level, Delay: duck reduction) */
.mvx-lvl { display: flex; align-items: center; gap: 0.6em; flex: 1 1 10em; min-width: 8em; }
.mvx-lvl-l { font-size: 0.6em; letter-spacing: 0.14em; color: var(--mvx-muted); white-space: nowrap; }
.mvx-lvl-track { position: relative; flex: 1 1 auto; height: 0.7em; min-width: 3em; overflow: hidden; background: #0d0d10; border: 1px solid #23232a; border-radius: 999px; }
.mvx-lvl-fill { position: absolute; left: 0; top: 0; bottom: 0; width: 0; background: linear-gradient(90deg, var(--mvx-gold), var(--mvx-gold-hi)); box-shadow: 0 0 0.6em rgba(196, 154, 58, 0.55); }
.mvx-lvl--duck .mvx-lvl-fill { background: var(--mvx-red); box-shadow: 0 0 0.6em rgba(207, 83, 83, 0.55); }
.mvx-lvl-v { min-width: 4.6em; text-align: right; font-size: 0.66em; color: var(--mvx-silver); white-space: nowrap; }
.mvx-lvl.is-idle { opacity: 0.55; }
/* Space: the plugin's wireframe corridor (warm taupe backdrop, gold-white lines) */
.mvx-room { position: relative; min-height: 4.4em; overflow: hidden; background: #2a2622; border: 1px solid #1a1814; border-radius: 0.5em; }
.mvx-room-svg { position: absolute; left: 0; top: 0; width: 100%; height: 100%; display: block; }
.mvx-room-spoke, .mvx-room-ring, .mvx-room-core { fill: none; stroke: #dcc99a; stroke-width: 1.1px; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.mvx-room-ring.is-front { stroke-width: 1.8px; }
.mvx-room-t { position: absolute; top: 0.3em; right: 0.5em; font-size: 0.62em; letter-spacing: 0.08em; color: rgba(190, 184, 170, 0.85); pointer-events: none; }
.mvx-fx.is-modoff .mvx-room { opacity: 0.45; }
/* EZ | ADV: the knobs that belong to one mode only. EZ has only a few knobs, so the one-line hint sits beside them (same panel height as Advanced, nothing jumps when you switch) */
.mvx-fx:not(.is-ez) .mvx-ez-only, .mvx-fx.is-ez .mvx-adv-only { display: none; }
.mvx-ezhint { margin: 0; font-size: 0.7em; line-height: 1.55; color: var(--mvx-muted); }
.mvx-fx.is-ez .mvx-fx-knobs { display: flex; flex-wrap: wrap; justify-content: center; align-items: flex-start; gap: 0.7em 1.4em; }
.mvx-fx.is-ez .mvx-fx-knobs > .mvx-knob, .mvx-fx.is-ez .mvx-fx-knobs > .mvx-fx-cell { flex: 0 0 auto; width: 7.4em; }
@container mvxfx (min-width: 440px) {
  .mvx-delay.is-ez .mvx-fx-body { display: flex; align-items: center; gap: 1.2em; }
  .mvx-fx.is-ez .mvx-fx-main { flex-direction: row; align-items: center; gap: 1.2em; }
  .mvx-fx.is-ez .mvx-fx-knobs { flex-wrap: nowrap; justify-content: flex-start; flex: 0 0 auto; }
  .mvx-fx.is-ez .mvx-ezhint { flex: 1 1 8em; text-align: left; }
}
/* Delay: the tempo cluster (effective BPM large, status word, detection confidence, Half / Double / Tap / Auto, the song's own BPM) */
.mvx-tempo { display: flex; flex-wrap: wrap; align-items: center; gap: 0.4em 0.9em; padding: 0.4em 0.65em; background: #0d0d10; border: 1px solid #1a1a1f; border-radius: 0.6em; }
.mvx-tempo-main { display: flex; align-items: center; gap: 0.7em; flex: 1 1 14em; min-width: 0; }
.mvx-tempo-num { display: flex; flex-direction: column; align-items: center; flex: 0 0 auto; }
.mvx-tempo-big { font-size: 2.1em; line-height: 1.05; font-variant-numeric: tabular-nums; white-space: nowrap; color: var(--mvx-gold-hi); text-shadow: 0 0 0.5em rgba(196, 154, 58, 0.45); }
.mvx-tempo-unit { font-size: 0.5em; letter-spacing: 0.2em; color: var(--mvx-muted); }
.mvx-tempo.is-guess .mvx-tempo-big { color: var(--mvx-muted); text-shadow: none; }
.mvx-tempo-info { display: flex; flex-direction: column; gap: 0.15em; flex: 1 1 auto; min-width: 0; }
.mvx-tempo-l1 { display: flex; flex-wrap: wrap; align-items: center; gap: 0.15em 0.6em; }
.mvx-tempo-status { font-size: 0.74em; line-height: 1.3; color: var(--mvx-silver); }
.mvx-tempo-maths { font-size: 0.62em; line-height: 1.35; color: var(--mvx-muted); }
.mvx-conf { display: inline-flex; align-items: center; gap: 0.4em; }
.mvx-conf-track { position: relative; display: inline-block; width: 3.2em; height: 0.5em; overflow: hidden; background: #050506; border: 1px solid #23232a; border-radius: 999px; }
.mvx-conf-track > i { position: absolute; left: 0; top: 0; bottom: 0; width: 0; background: var(--mvx-gold); }
.mvx-conf-w { font-size: 0.58em; letter-spacing: 0.12em; text-transform: uppercase; color: var(--mvx-muted); }
.mvx-tempo-btns { display: flex; flex-wrap: wrap; align-items: center; gap: 0.3em; }
.mvx-tempo-btns .mvx-btn { min-height: 0; padding: 0.35em 0.75em; }
.mvx-tempo-set { display: flex; align-items: center; gap: 0.4em; }
.mvx-tempo-set-l { font-size: 0.6em; letter-spacing: 0.14em; color: var(--mvx-muted); }
.mvx-bpm-in {
  width: 4.4em; min-height: 0; padding: 0.35em 0.5em; font: inherit; font-size: 0.78em; text-align: right; color: var(--mvx-silver);
  background: var(--mvx-bg); border: 1px solid var(--mvx-border); border-radius: 0.5em; -moz-appearance: textfield; appearance: textfield;
}
.mvx-bpm-in::-webkit-outer-spin-button, .mvx-bpm-in::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.mvx-bpm-in:focus-visible { outline: 2px solid var(--mvx-gold-active); outline-offset: 2px; }
.mvx-tempo.is-idle { opacity: 0.62; }
.mvx-tempo.is-idle:focus-within, .mvx-tempo.is-idle:hover { opacity: 1; }
.mvx-fx.is-modoff .mvx-tempo { opacity: 0.55; }
.mvx-tap.is-hit { background: var(--mvx-gold); border-color: var(--mvx-gold); color: #17140c; }
.mvx-tbtn.is-suggest { border-color: var(--mvx-gold); color: var(--mvx-gold-active); }
.mvx-fx-knobs .mvx-knob-label { text-align: center; }
/* the knobs reflow with the width of the PANEL (a container query), not of the window */
@container mvxfx (min-width: 440px) {
  .mvx-fx-knobs { grid-template-columns: repeat(7, minmax(0, 1fr)); }
  .mvx-delay .mvx-fx-knobs { grid-template-columns: minmax(0, 1.7fr) repeat(6, minmax(0, 1fr)); }
  .mvx-fx-cell.is-sync { grid-column: auto; }
  .mvx-space.mvx--compact .mvx-fx-body { grid-template-columns: 8.2em minmax(0, 1fr); align-items: stretch; }
  .mvx-space:not(.mvx--compact) .mvx-room { min-height: 6.5em; }
}
@container mvxfx (min-width: 700px) { .mvx-space:not(.mvx--compact) .mvx-room { min-height: 8.5em; } }

/* ---- compact variants (host panel): about 11 px type, small knobs, no long text ---- */
.mvx.mvx--compact { padding: 0.55em 0.6em; font-size: 11px; border-radius: 0.7em; }
.mvx--compact .mvx-btn { min-height: 0; padding: 0.4em 0.9em; }
.mvx--compact .mvx-chip { min-height: 0; padding: 0.3em 0.6em; }
.mvx--compact .mvx-select { min-height: 0; padding: 0.3em 0.5em; }
.mvx.mvx--compact .mvx-knob-body { width: 3.4em; height: 3.4em; }
.mvx-fx.mvx--compact .mvx-knob-body { width: 3.9em; height: 3.9em; }
.mvx--compact .mvx-knob { gap: 0.25em; }
/* compact type has a floor: the em values stack on the 11 px root (0.6em of it is 6.6 px, unreadable), so the parameter names and values stay at 9 px and the small captions at 8 px */
.mvx--compact .mvx-knob-label { font-size: max(9px, 0.66em); letter-spacing: 0.06em; }
.mvx--compact .mvx-knob-value { font-size: max(9px, 0.66em); min-height: 1.2em; }
.mvx--compact .mvx-tempo-unit { font-size: max(8px, 0.5em); }
.mvx--compact .mvx-conf-w { font-size: max(8px, 0.58em); }
.mvx--compact .mvx-grbar-l, .mvx--compact .mvx-grbar-num, .mvx--compact .mvx-lvl-l { font-size: max(8px, 0.6em); }
.mvx--compact .mvx-lvl-v { font-size: max(8px, 0.66em); }
.mvx-fx-knobs .mvx-knob-label, .mvx-fx-knobs .mvx-knob-value { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mvx--compact .mvx-fx-knobs { gap: 0.5em 0.2em; }
.mvx-space.mvx--compact .mvx-room { min-height: 4em; }
/* compact EQ: shorter stage, the long hint becomes a tooltip (the text stays in the DOM for aria-describedby), a one-line-per-field inspector */
.mvx-eq.mvx--compact, .mvx-comp.mvx--compact { display: flex; flex-direction: column; min-height: 100%; }
.mvx-eq.mvx--compact .mvx-stage { margin-top: 0.45em; aspect-ratio: 2.5 / 1; min-height: 140px; max-height: 220px; }
.mvx-eq.mvx--compact .mvx-bar { gap: 0.35em 0.6em; }
.mvx-eq.mvx--compact .mvx-bar-r { gap: 0.35em; }
.mvx-eq.mvx--compact .mvx-insp { margin-top: 0.45em; padding: 0.4em 0.6em; flex: 1 1 auto; }
.mvx-eq.mvx--compact .mvx-insp-row { margin-top: 0.35em; gap: 0.35em 0.7em; }
.mvx-eq.mvx--compact .mvx-fld { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 0.1em 0.4em; flex: 1 1 8.5em; min-width: 7.5em; }
.mvx-eq.mvx--compact .mvx-fld > .mvx-fld-l { grid-row: 1; grid-column: 1; }
.mvx-eq.mvx--compact .mvx-fld > .mvx-fld-v { grid-row: 1; grid-column: 2; text-align: right; font-size: 0.66em; }
.mvx-eq.mvx--compact .mvx-fld > .mvx-range, .mvx-eq.mvx--compact .mvx-fld > .mvx-select { grid-row: 2; grid-column: 1 / -1; }
.mvx-eq.mvx--compact .mvx-range { height: 1.4em; }
.mvx-eq.mvx--compact .mvx-insp-tog { flex: 0 0 auto; margin-left: auto; }
.mvx-eq.mvx--compact .mvx-insp-empty { margin-top: 0.3em; }
.mvx--compact .mvx-hint { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
/* compact compressor: the slim gain-reduction bar replaces the dome and the three cards */
.mvx-comp.mvx--compact .mvx-housing { padding: 0.45em 0.5em 0.5em; }
.mvx-comp.mvx--compact .mvx-comp-head { margin-bottom: 0.4em; }
.mvx-comp.mvx--compact .mvx-seg-btn { padding: 0.35em 0.8em; min-height: 0; }
.mvx-comp.mvx--compact .mvx-knobs { margin-top: 0.6em; gap: 0.5em 0.25em; flex: 1 1 auto; align-content: space-around; }
.mvx-grbar { display: flex; align-items: center; gap: 0.7em; padding: 0.4em 0.6em 0.3em; background: #0d0d10; border: 1px solid #1a1a1f; border-radius: 0.6em; }
.mvx-grbar-l { font-size: 0.6em; letter-spacing: 0.14em; color: rgba(196, 154, 58, 0.85); white-space: nowrap; }
.mvx-grbar-main { flex: 1 1 auto; min-width: 0; padding: 0 0.7em; }
.mvx-grbar-track { position: relative; height: 0.8em; overflow: hidden; background: #050506; border: 1px solid #23232a; border-radius: 999px; }
.mvx-grbar-fill { position: absolute; left: 0; top: 0; bottom: 0; width: 0; background: var(--mvx-gold); box-shadow: 0 0 0.6em rgba(196, 154, 58, 0.6); }
.mvx-grbar-fill.mvx-grbar-red { background: var(--mvx-red); box-shadow: 0 0 0.6em rgba(207, 83, 83, 0.6); }
.mvx-grbar-tick { position: absolute; bottom: 0; width: 1px; height: 45%; margin-left: -0.5px; background: rgba(196, 154, 58, 0.5); }
.mvx-grbar-tick.is-danger { background: rgba(207, 83, 83, 0.7); }
.mvx-grbar-tip { position: absolute; top: 0; bottom: 0; width: 2px; margin-left: -1px; border-radius: 1px; background: rgba(255, 255, 255, 0.92); }
.mvx-grbar-nums { position: relative; height: 1.2em; margin-top: 0.2em; }
.mvx-grbar-num { position: absolute; top: 0; transform: translateX(-50%); font-size: 0.6em; color: var(--mvx-silver); white-space: nowrap; }
.mvx-grbar-r { display: flex; flex-direction: column; align-items: flex-end; gap: 0.1em; min-width: 6.4em; }
.mvx-grbar-v { font-size: 0.95em; color: var(--mvx-gold); white-space: nowrap; }
.mvx-grbar-peak { appearance: none; -webkit-appearance: none; padding: 0.15em 0; font: inherit; font-size: 0.55em; letter-spacing: 0.08em; color: var(--mvx-muted); white-space: nowrap; background: none; border: 0; cursor: pointer; }
.mvx-grbar-peak:hover { color: var(--mvx-gold-active); }
.mvx-grbar-peak:focus-visible { outline: 2px solid var(--mvx-gold-active); outline-offset: 2px; }
.mvx-grbar-peak { position: relative; }
.mvx-grbar-peak::after { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 24px; transform: translateY(-50%); }          /* a 24 px high hit area for a 10 px high label (no layout change) */
.mvx--compact .mvx-grbar-peak { font-size: max(8px, 0.55em); }          /* UI-F4: legibility floor (was 6 px) */
/* touch: every control is at least 44 px high (absolute px: 2.6em of an 8.6 px compact font was only 22 px) */
@media (pointer: coarse) {
  .mvx .mvx-btn, .mvx .mvx-select, .mvx .mvx-chip, .mvx .mvx-seg-btn, .mvx .mvx-bpm-in, .mvx-comp.mvx--compact .mvx-seg-btn, .mvx-eq.mvx--compact .mvx-btn,
  .mvx-fx.mvx--compact .mvx-fx-head .mvx-seg-btn { min-height: 44px; }
  .mvx .mvx-grbar-peak { min-height: 44px; min-width: 44px; }
  .mvx .mvx-grbar-peak::after { display: none; }
}
.mvx-comp.is-modoff .mvx-grbar { opacity: 0.6; }

/* ---- read-only mirrors (the OBS widget): drawn from broadcast data, never interactive ---- */
.mvx--mirror {
  --mvx-gold: var(--gold, #c49a3a);
  --mvx-gold-hi: var(--gold-hi, #e1c15a);
  --mvx-text: var(--ink, #e8e8ec);
  --mvx-silver: var(--ink-dim, #c4c4cc);
  --mvx-muted: var(--ink-faint, #8a8a95);
  font-size: 1em; padding: 0.35em; background: rgba(0, 0, 0, 0.42); border-color: var(--hairline, #2c2c36); border-radius: 0.6em;
  transition: opacity 0.4s;
}
.mvx--mirror.is-stale { opacity: 0.45; }
.mvx-eqm { display: block; width: 100%; height: auto; }
.mvx-eqm-grid line { stroke: rgba(196, 196, 204, 0.16); stroke-width: 1; }
.mvx-eqm-zero { stroke: rgba(196, 196, 204, 0.3); stroke-width: 1; }
.mvx-eqm-area { fill: rgba(196, 154, 58, 0.12); stroke: none; }
.mvx-eqm-line { stroke: var(--mvx-gold); stroke-width: 2.2; stroke-linejoin: round; stroke-linecap: round; filter: drop-shadow(0 0 2px rgba(196, 154, 58, 0.6)); }
.mvx-eqm-node { fill: var(--mvx-silver); stroke: #000; stroke-width: 1.2; }
.mvx-eqm-node.is-off { fill: var(--mvx-red); opacity: 0.8; }
.mvx-eqm-tag { fill: var(--mvx-muted); font-size: 8.5px; letter-spacing: 0.14em; font-family: inherit; }
.mvx--mirror.is-bypassed .mvx-eqm-line { opacity: 0.3; filter: none; }
.mvx--mirror.is-bypassed .mvx-eqm-area { opacity: 0.3; }
.mvx--mirror.is-bypassed .mvx-eqm-node { opacity: 0.35; }
.mvx-compm-wrap { text-align: center; }
.mvx-compm-title { font-size: 0.6em; letter-spacing: 0.14em; color: var(--mvx-gold); white-space: nowrap; }
.mvx-compm-wrap .mvx-gauge { max-width: none; }
.mvx-compm-info { font-size: 0.58em; letter-spacing: 0.08em; color: var(--mvx-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mvx--mirror.is-bypassed .mvx-g-fill, .mvx--mirror.is-bypassed .mvx-g-bracket { opacity: 0.3; }
/* Space / Delay mirrors: a name, a few key values and a thin wet bar */
.mvx-fxm-wrap { display: flex; flex-direction: column; gap: 0.3em; min-width: 0; }
.mvx-fxm-row { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.1em 0.6em; min-width: 0; }
.mvx-fxm-name { font-size: 0.6em; letter-spacing: 0.14em; color: var(--mvx-gold); white-space: nowrap; }
.mvx-fxm-off { font-size: 0.5em; letter-spacing: 0.1em; padding: 0.15em 0.6em; color: #fff4f4; background: var(--mvx-red); border-radius: 999px; }
.mvx-fxm-vals { display: flex; flex-wrap: wrap; gap: 0 0.7em; font-size: 0.58em; letter-spacing: 0.06em; color: var(--mvx-silver); min-width: 0; }
.mvx-fxm-i { white-space: nowrap; }
.mvx-fxm-bar { display: block; height: 0.22em; overflow: hidden; background: rgba(196, 196, 204, 0.14); border-radius: 999px; }
.mvx-fxm-bar > i { display: block; width: 0; height: 100%; background: var(--mvx-gold); }
.mvx--mirror.is-bypassed .mvx-fxm-vals, .mvx--mirror.is-bypassed .mvx-fxm-bar { opacity: 0.35; }
.mvx--mirror.is-bypassed .mvx-fxm-name { opacity: 0.6; }

/* the widget's light theme: a pale panel instead of the dark one, dark lines instead of light ones */
html[data-theme="light"] .mvx--mirror { background: rgba(255, 255, 255, 0.55); }
html[data-theme="light"] .mvx-eqm-grid line, html[data-theme="light"] .mvx-eqm-zero { stroke: rgba(27, 20, 8, 0.22); }
html[data-theme="light"] .mvx-eqm-node { stroke: #fff; }
html[data-theme="light"] .mvx-eqm-area { fill: rgba(138, 108, 31, 0.16); }
html[data-theme="light"] .mvx-g-minor { stroke: rgba(138, 108, 31, 0.28); }
html[data-theme="light"] .mvx-g-bracket { stroke: rgba(27, 20, 8, 0.9); }
html[data-theme="light"] .mvx-fxm-bar { background: rgba(27, 20, 8, 0.14); }

@media (max-width: 560px) {
  .mvx { padding: 0.65em; }
  .mvx-knobs { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0.8em 0.2em; }
  .mvx-knob-body { width: 4.1em; height: 4.1em; }
  .mvx-fld { flex-basis: 45%; min-width: 0; }
  .mvx-bar-r { margin-left: 0; width: 100%; }
}
@media (prefers-reduced-motion: reduce) { .mvx--mirror { transition: none; } }
