/* Mixeur du direct = table de mixage en TRANCHES verticales, comme le Studio multipiste (css/rec-studio.css .rsm-*).
   Une tranche : nom, source, vumètre + fader, valeur, M / S / 🎧, puis 🎛️ et ⚙ (réglages rangés, une tranche ouverte à la fois). */
.mx-console { display: flex; gap: 8px; align-items: stretch; overflow-x: auto; padding: 2px 2px 8px; }
.mx-console .mx-strip { flex: 0 0 116px; width: 116px; display: flex; flex-direction: column; align-items: stretch; gap: 6px; margin: 0;
  padding: 10px 8px; border-radius: 12px; background: var(--panel2); border: 1px solid var(--line2); border-top: 3px solid var(--c, var(--gold)); min-width: 0; }
.mx-console .mx-strip.open { flex-basis: 260px; width: 260px; }
.mx-console .mx-master { flex-basis: 132px; width: 132px; margin-left: auto; background: linear-gradient(180deg, rgba(243,194,79,.07), transparent 40%), var(--panel2); }
.mx-console .mx-master.open { flex-basis: 280px; width: 280px; }
.mx-console .mx-head { justify-content: center; margin: 0; text-align: center; font-size: 12.5px; min-width: 0; }
.mx-console .mx-name { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.mx-console .mx-rename { width: 86px; text-align: center; }
.mx-console .mx-strip > * { flex: none; }
.mx-srcname { width: 100%; height: 22px; padding: 2px 4px; font-size: 10.5px; line-height: 1.2; color: var(--muted); background: transparent; border: 1px dashed var(--line2);
  border-radius: 6px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; cursor: pointer; }
.mx-srcname:hover { color: var(--text); border-color: var(--gold); }
/* vumètre vertical + fader vertical, côte à côte */
.mx-mf { display: flex; gap: 8px; height: 170px; align-items: stretch; justify-content: center; }
.mx-console .mx-meter { position: relative; width: 12px; height: auto; margin: 0; border-radius: 3px; background: #0a0e14; overflow: hidden; }
.mx-console .mx-bar { position: absolute; left: 0; right: 0; bottom: 0; width: auto; height: 0; background: linear-gradient(to top, var(--green) 65%, var(--warn) 84%, var(--red)); }
.mx-console .mx-clip { top: 2px; right: 0; left: 0; text-align: center; font-size: 7px; padding: 0; }
.mx-console .mx-vol { -webkit-appearance: none; appearance: none; writing-mode: vertical-lr; direction: rtl; width: 26px; height: 100%; margin: 0; background: transparent; cursor: ns-resize; flex: none; }
.mx-console .mx-vol::-webkit-slider-runnable-track { width: 6px; border-radius: 3px; background: #2a3240; }
.mx-console .mx-vol::-webkit-slider-thumb { -webkit-appearance: none; width: 26px; height: 14px; border-radius: 4px; background: linear-gradient(#f6dd9c, #c9a64a); border: 1px solid #1a1205; box-shadow: 0 2px 4px rgba(0,0,0,.5); }
.mx-console .mx-volv { min-width: 0; text-align: center; font-size: 11px; }
.mx-console .mx-sig { min-width: 0; min-height: 13px; text-align: center; font-size: 10px; }
.mx-console .mx-btns { display: flex; justify-content: center; gap: 4px; flex-wrap: wrap; }
.mx-console .mx-btns button { flex: 1 1 0; min-width: 0; padding: 4px 0; font-size: 12px; font-weight: 700; }
.mx-console .mx-tools button { font-weight: 400; }
.mx-console .mx-music { display: flex; gap: 4px; }
.mx-console .mx-music button { flex: 1; padding: 4px 0; font-size: 12px; }
.mx-console .mx-cap { width: 100%; padding: 4px; font-size: 11px; }
.mx-console .mx-duck { align-self: center; font-size: 10px; visibility: hidden; }
.mx-console .mx-duck.on { visibility: visible; }
.mx-duckck { font-size: 11px; line-height: 1.25; }
/* réglages de la tranche (⚙) */
.mx-console .mx-set { border-top: 1px dashed var(--line); padding-top: 6px; display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.mx-console .mx-set[hidden] { display: none; }
.mx-console .mx-set select, .mx-console .mx-set input[type=range] { width: 100%; min-width: 0; }
.mx-console .mx-adv { border: 0; margin: 0; padding: 0; }
/* tranche « + Ajouter » */
.mx-console .mx-addrow { flex: 0 0 76px; margin: 0; display: flex; align-self: stretch; max-height: 390px; }
.mx-console .mx-add { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; border: 1px dashed var(--line2);
  background: transparent; border-radius: 12px; font-size: 11px; line-height: 1.25; padding: 8px 4px; white-space: normal; }
.mx-console .mx-add b { font-size: 22px; font-weight: 400; }
/* Mode simple : l'essentiel seulement (S n'apparaît que s'il est déjà actif, pour pouvoir le couper) */
body.simple .mx-console .mx-solo:not(.on) { display: none; }
@media (max-width: 700px) { .mx-console .mx-strip { flex-basis: 100px; width: 100px; } .mx-mf { height: 140px; } }

/* ---- presets audio en un clic (page Audio, js/audio-presets.js) ---- */
.ap { display: flex; flex-direction: column; gap: 6px; margin: 4px 0 8px; }
.ap-h { display: flex; align-items: baseline; gap: 8px; font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--muted, #8f9bb0); }
.ap-h span { font-weight: 500; letter-spacing: 0; text-transform: none; }
.ap-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 6px; }
.ap-cards button { min-width: 0; width: auto !important; display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 9px 6px; border-radius: 10px; border: 1.5px solid rgba(255,255,255,.12); background: #111823; text-align: center; }
.ap-cards button .ap-i { font-size: 20px; line-height: 1; }
.ap-cards button b { font-size: 12px; line-height: 1.15; white-space: normal; }
.ap-cards button small { font-size: 10.5px; line-height: 1.2; color: var(--muted, #8f9bb0); white-space: normal; }
.ap-cards button.sel { border-color: #f3c24f; box-shadow: 0 0 0 1px #f3c24f inset; background: linear-gradient(180deg, rgba(243,194,79,.14), rgba(243,194,79,.03)); }
.ap-undo { display: flex; align-items: center; gap: 10px; padding: 6px 8px 6px 10px; border-radius: 8px; background: rgba(46,204,113,.12); border: 1px solid rgba(46,204,113,.35); font-size: 12.5px; }
.ap-undo span { flex: 1; min-width: 0; }
.ap-undo button { flex: none; width: auto !important; padding: 4px 12px; }
