/* The music studio's arrangement timeline (.mu-tl-*), step sequencer (.mu-st-*), piano roll (.mu-pr-*) and audio clip editor (.mu-ac-*),
   built by js/music-timeline.js and js/music-editors.js. Chrome follows the app's tokens (--rl-*) so it follows light and dark with the
   rest of the site; the few colours the tokens do not cover (lane shades, grid lines, piano keys) are the --mu-* values below, which
   the canvases read back with getComputedStyle, so a canvas and its DOM neighbours always agree. */

.mu-tl, .mu-st, .mu-pr, .mu-ac, .mu-menu, .mu-pop {
    --mu-lane: #e8ebf0; --mu-lane-alt: #e0e4ea; --mu-lane-sel: #f2f4f9;
    --mu-grid-bar: rgba(15, 23, 42, .26); --mu-grid-beat: rgba(15, 23, 42, .12); --mu-grid-sub: rgba(15, 23, 42, .06);
    --mu-ink: #16181d;
    --mu-row-white: #f4f6fa; --mu-row-black: #e3e7ee; --mu-row-scale: rgba(47, 109, 246, .09);
    --mu-key-white: #fbfbfd; --mu-key-black: #2a2e37; --mu-key-edge: #c3c8d2;
    --mu-play: #e11d48;
}
@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) :is(.mu-tl, .mu-st, .mu-pr, .mu-ac, .mu-menu, .mu-pop) {
        --mu-lane: #181b20; --mu-lane-alt: #1d2127; --mu-lane-sel: #232831;
        --mu-grid-bar: rgba(255, 255, 255, .22); --mu-grid-beat: rgba(255, 255, 255, .10); --mu-grid-sub: rgba(255, 255, 255, .05);
        --mu-ink: #ffffff;
        --mu-row-white: #1f242c; --mu-row-black: #161a20; --mu-row-scale: rgba(111, 155, 255, .10);
        --mu-key-white: #d8dce5; --mu-key-black: #14161c; --mu-key-edge: #2c313a;
        --mu-play: #fb7185;
    }
}
:root[data-theme="dark"] :is(.mu-tl, .mu-st, .mu-pr, .mu-ac, .mu-menu, .mu-pop) {
    --mu-lane: #181b20; --mu-lane-alt: #1d2127; --mu-lane-sel: #232831;
    --mu-grid-bar: rgba(255, 255, 255, .22); --mu-grid-beat: rgba(255, 255, 255, .10); --mu-grid-sub: rgba(255, 255, 255, .05);
    --mu-ink: #ffffff;
    --mu-row-white: #1f242c; --mu-row-black: #161a20; --mu-row-scale: rgba(111, 155, 255, .10);
    --mu-key-white: #d8dce5; --mu-key-black: #14161c; --mu-key-edge: #2c313a;
    --mu-play: #fb7185;
}
:root[data-theme="light"] :is(.mu-tl, .mu-st, .mu-pr, .mu-ac, .mu-menu, .mu-pop) {
    --mu-lane: #e8ebf0; --mu-lane-alt: #e0e4ea; --mu-lane-sel: #f2f4f9;
    --mu-grid-bar: rgba(15, 23, 42, .26); --mu-grid-beat: rgba(15, 23, 42, .12); --mu-grid-sub: rgba(15, 23, 42, .06);
    --mu-ink: #16181d;
    --mu-row-white: #f4f6fa; --mu-row-black: #e3e7ee; --mu-row-scale: rgba(47, 109, 246, .09);
    --mu-key-white: #fbfbfd; --mu-key-black: #2a2e37; --mu-key-edge: #c3c8d2;
    --mu-play: #e11d48;
}

.mu-tl, .mu-st, .mu-pr, .mu-ac { color: var(--rl-text); font-size: .8rem; min-width: 0; min-height: 0; outline: none; user-select: none; -webkit-user-select: none; }
.mu-tl button, .mu-st button, .mu-pr button, .mu-ac button, .mu-menu button, .mu-pop button { font: inherit; color: inherit; }
.mu-tl canvas, .mu-st canvas, .mu-pr canvas, .mu-ac canvas { display: block; }
.mu-sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---- shared controls ---- */
.mu-btn { display: inline-flex; align-items: center; justify-content: center; gap: .3rem; min-height: 1.75rem; padding: 0 .6rem; border: 1px solid var(--rl-border); background: var(--rl-surface-raised); border-radius: 8px; cursor: pointer; white-space: nowrap; line-height: 1; }
.mu-btn:hover:not(:disabled) { background: var(--rl-surface-sunken); }
.mu-btn:disabled { opacity: .45; cursor: default; }
.mu-btn.is-on { background: var(--rl-accent); border-color: var(--rl-accent); color: var(--rl-accent-contrast); }
.mu-btn--ico { min-width: 1.75rem; padding: 0 .3rem; }
.mu-btn:focus-visible, .mu-sel:focus-visible, .mu-num:focus-visible, .mu-tl-ib:focus-visible, .mu-tl-hb:focus-visible { outline: 2px solid var(--rl-accent); outline-offset: 1px; }
.mu-sel, .mu-num, .mu-txt { min-height: 1.75rem; border: 1px solid var(--rl-border); background: var(--rl-surface); color: var(--rl-text); border-radius: 8px; padding: 0 .4rem; font: inherit; }
.mu-sel { max-width: 11rem; }
.mu-num { width: 4.4rem; text-align: right; font-variant-numeric: tabular-nums; }
.mu-txt { width: 100%; }
.mu-lab { display: inline-flex; align-items: center; gap: .35rem; color: var(--rl-text-muted); font-size: .74rem; white-space: nowrap; }
.mu-lab input[type=range] { width: 6rem; accent-color: var(--rl-accent); height: 1.75rem; margin: 0; }
.mu-lab input[type=checkbox] { accent-color: var(--rl-accent); width: 1rem; height: 1rem; margin: 0; }
.mu-grp { display: inline-flex; align-items: center; gap: .3rem; padding-right: .6rem; margin-right: .1rem; border-right: 1px solid var(--rl-border); }
.mu-grp:last-child { border-right: 0; }
.mu-seg { display: inline-flex; border: 1px solid var(--rl-border); border-radius: 8px; overflow: hidden; }
.mu-seg > button { min-height: 1.75rem; border: 0; border-right: 1px solid var(--rl-border); background: var(--rl-surface); padding: 0 .6rem; cursor: pointer; display: inline-flex; align-items: center; gap: .3rem; }
.mu-seg > button:last-child { border-right: 0; }
.mu-seg > button:hover { background: var(--rl-surface-sunken); }
.mu-seg > button.is-on { background: var(--rl-accent); color: var(--rl-accent-contrast); }
.mu-empty { display: grid; place-items: center; text-align: center; padding: 2rem 1rem; color: var(--rl-text-muted); line-height: 1.5; }

/* ---- popup menu (right click) ---- */
.mu-menu { position: fixed; z-index: 1000; min-width: 12rem; padding: .25rem; background: var(--rl-surface); border: 1px solid var(--rl-border); border-radius: 10px; box-shadow: 0 10px 34px rgba(15, 23, 42, .32), 0 1px 3px rgba(15, 23, 42, .2); font-size: .82rem; color: var(--rl-text); }
.mu-menu__item { display: grid; grid-template-columns: 1fr auto; gap: 1.2rem; align-items: center; width: 100%; min-height: 1.9rem; text-align: left; border: 0; background: transparent; padding: .25rem .55rem; border-radius: 6px; cursor: pointer; white-space: nowrap; }
.mu-menu__item:hover:not(:disabled), .mu-menu__item:focus-visible { background: var(--rl-accent); color: var(--rl-accent-contrast); outline: none; }
.mu-menu__item:disabled { opacity: .42; cursor: default; }
.mu-menu__key { color: var(--rl-text-muted); font-size: .72rem; }
.mu-menu__item:hover:not(:disabled) .mu-menu__key, .mu-menu__item:focus-visible .mu-menu__key { color: inherit; opacity: .85; }
.mu-menu__sep { height: 1px; margin: .25rem .3rem; background: var(--rl-border); }

/* ---- custom scrollbar (views that scroll by their own state) ---- */
.mu-sb { position: relative; background: transparent; touch-action: none; }
.mu-sb--h { height: 14px; }
.mu-sb--v { width: 14px; }
.mu-sb__thumb { position: absolute; left: 2px; top: 2px; border-radius: 5px; background: var(--rl-text-muted); opacity: .4; }
.mu-sb--h .mu-sb__thumb { height: 10px; }
.mu-sb--v .mu-sb__thumb { width: 10px; }
.mu-sb:hover .mu-sb__thumb { opacity: .7; }
.mu-sb.is-full .mu-sb__thumb { opacity: .14; }
.mu-sb--h { cursor: pointer; } .mu-sb--v { cursor: pointer; }

/* ================================================================= timeline ================================================================= */
.mu-tl { position: relative; display: flex; flex-direction: column; flex: 1; background: var(--rl-surface-sunken); overflow: hidden; }
.mu-tl-rulerrow { flex: none; display: flex; height: 40px; border-bottom: 1px solid var(--rl-border); background: var(--rl-surface); }
.mu-tl-corner { flex: none; width: var(--mu-head-w, 212px); box-sizing: border-box; display: flex; align-items: center; justify-content: space-between; gap: .25rem; padding: 0 .4rem; border-right: 1px solid var(--rl-border); }
.mu-tl-corner__btns { display: inline-flex; align-items: center; gap: .05rem; }
.mu-tl-snap { min-height: 1.6rem; max-width: 6.6rem; border: 1px solid var(--rl-border); background: var(--rl-surface-raised); color: var(--rl-text); border-radius: 6px; font: inherit; font-size: .72rem; padding: 0 .2rem; }
.mu-tl-ib { display: inline-grid; place-items: center; width: 1.6rem; height: 1.6rem; border: 0; background: transparent; border-radius: 6px; cursor: pointer; padding: 0; }
.mu-tl-ib:hover { background: var(--rl-surface-sunken); }
.mu-tl-ib.is-on { color: var(--rl-accent); }
.mu-tl-ruler { cursor: text; touch-action: none; flex: none; }

.mu-tl-body { flex: 1; min-height: 0; overflow-y: auto; overflow-x: hidden; position: relative; overscroll-behavior: contain; }
.mu-tl-rows { position: relative; }
.mu-tl-row { display: flex; position: relative; height: 72px; }
.mu-tl-row--tail { min-height: 56px; }
.mu-tl-lane { flex: none; touch-action: pan-y; }

.mu-tl-head { position: relative; z-index: 2; flex: none; width: var(--mu-head-w, 212px); box-sizing: border-box; display: flex; flex-direction: column; justify-content: center; gap: .3rem; padding: .25rem .5rem .25rem .8rem; background: var(--rl-surface); border-right: 1px solid var(--rl-border); border-bottom: 1px solid var(--rl-border); overflow: hidden; }
.mu-tl-head__bar { position: absolute; left: 0; top: 0; bottom: 0; width: 5px; background: var(--mu-tc, var(--rl-accent)); }
.mu-tl-row.is-sel .mu-tl-head { background: var(--rl-surface-raised); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--mu-tc, var(--rl-accent)) 55%, transparent); }
.mu-tl-row.is-muted .mu-tl-name { opacity: .5; text-decoration: line-through; }
.mu-tl-head__r1, .mu-tl-head__r2 { display: flex; align-items: center; gap: .3rem; min-width: 0; }
.mu-tl-kind { display: inline-flex; color: var(--rl-text-muted); flex: none; }
.mu-tl-name { flex: 1; min-width: 0; font-weight: 700; font-size: .8rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; cursor: text; }
.mu-tl-rename { flex: 1; min-width: 0; min-height: 1.5rem; border: 1px solid var(--rl-accent); background: var(--rl-surface); color: var(--rl-text); border-radius: 5px; font: inherit; font-weight: 700; padding: 0 .3rem; user-select: text; -webkit-user-select: text; }
.mu-tl-cliprename { position: absolute; z-index: 30; width: 150px; min-height: 1.6rem; border: 2px solid var(--rl-accent); background: var(--rl-surface); color: var(--rl-text); border-radius: 6px; font: inherit; font-weight: 600; padding: 0 .35rem; user-select: text; -webkit-user-select: text; }
.mu-tl-hb { flex: none; display: inline-grid; place-items: center; min-width: 1.6rem; height: 1.6rem; padding: 0 .2rem; border: 1px solid var(--rl-border); background: var(--rl-surface-raised); border-radius: 6px; font-size: .7rem; font-weight: 800; cursor: pointer; color: var(--rl-text-muted); }
.mu-tl-hb:hover { color: var(--rl-text); }
.mu-tl-hb--ico { border-color: transparent; background: transparent; }
.mu-tl-hb--ico:hover { background: var(--rl-surface-sunken); }
.mu-tl-hb--m.is-on { background: var(--rl-danger); border-color: var(--rl-danger); color: #fff; }
.mu-tl-hb--s.is-on { background: #d97706; border-color: #d97706; color: #fff; }
.mu-tl-vol { flex: 1; min-width: 0; height: 1.6rem; margin: 0; accent-color: var(--rl-accent); }
.mu-tl-voltxt { flex: none; width: 2.5rem; text-align: right; color: var(--rl-text-muted); font-size: .68rem; font-variant-numeric: tabular-nums; }
.mu-tl-head--tail { justify-content: center; background: transparent; border-bottom: 0; }
.mu-tl-tailhint { color: var(--rl-text-muted); font-size: .72rem; line-height: 1.35; opacity: .8; }

.mu-tl-row.is-drop .mu-tl-lane, .mu-tl-row--tail.is-drop .mu-tl-lane { outline: 2px dashed var(--rl-accent); outline-offset: -3px; }
.mu-tl-row--tail.is-drop .mu-tl-tailhint { color: var(--rl-accent); opacity: 1; }
.mu-tl.is-dragging, .mu-tl.is-dragging * { cursor: grabbing !important; }

.mu-tl-hscroll { flex: none; display: flex; height: 16px; border-top: 1px solid var(--rl-border); background: var(--rl-surface); }
.mu-tl-hscroll__pad { flex: none; width: var(--mu-head-w, 212px); border-right: 1px solid var(--rl-border); }
.mu-tl-hscroll .mu-sb { flex: 1; height: 100%; }
.mu-tl-hscroll .mu-sb__thumb { top: 3px; }

/* Overlay: playhead, loop shading and guides live in the lane area, above the canvases, and never take the pointer. */
.mu-tl-ov { position: absolute; top: 0; bottom: 16px; pointer-events: none; overflow: hidden; }
.mu-tl-ph { position: absolute; left: -1px; top: 0; bottom: 0; width: 2px; background: var(--mu-play); will-change: transform; }
.mu-tl-ph__head { position: absolute; left: -5px; top: 27px; width: 0; height: 0; border-left: 6px solid transparent; border-right: 6px solid transparent; border-top: 9px solid var(--mu-play); }
.mu-tl-loopshade { position: absolute; left: 0; top: 40px; bottom: 0; background: color-mix(in srgb, var(--rl-accent) 13%, transparent); border-left: 1px solid color-mix(in srgb, var(--rl-accent) 55%, transparent); border-right: 1px solid color-mix(in srgb, var(--rl-accent) 55%, transparent); display: none; will-change: transform; }
.mu-tl-snapline { position: absolute; left: 0; top: 40px; bottom: 0; width: 1px; background: var(--rl-accent); box-shadow: 0 0 0 1px color-mix(in srgb, var(--rl-accent) 30%, transparent); display: none; will-change: transform; }

/* ================================================================= popovers ================================================================= */
.mu-pop { position: absolute; z-index: 40; width: 17.5rem; max-width: calc(100% - 12px); box-sizing: border-box; display: flex; flex-direction: column; gap: .5rem; padding: .7rem .8rem; background: var(--rl-surface); color: var(--rl-text); border: 1px solid var(--rl-border); border-radius: 12px; box-shadow: 0 10px 34px rgba(15, 23, 42, .32), 0 1px 3px rgba(15, 23, 42, .2); user-select: none; }
.mu-pop--wide { width: 21rem; }
.mu-pop__f { display: grid; grid-template-columns: 5.2rem minmax(0, 1fr); align-items: center; gap: .4rem; color: var(--rl-text-muted); font-size: .76rem; }
.mu-pop__pair { display: flex; gap: .3rem; min-width: 0; }
.mu-pop__pair > * { flex: 1; min-width: 0; }
.mu-pop__foot { display: flex; justify-content: flex-end; gap: .4rem; margin-top: .1rem; }
.mu-pop__hint { color: var(--rl-text-muted); font-size: .74rem; min-height: 1.1em; padding-left: 5.6rem; }
.mu-pop .pe-rng { display: grid; grid-template-columns: 5.2rem minmax(0, 1fr) auto; gap: .4rem; align-items: center; }
.mu-pop .pe-rng input[type=range] { width: 100%; min-width: 0; height: 1.75rem; margin: 0; accent-color: var(--rl-accent); }
.mu-pop .pe-rng__num { width: 3.7rem; }

/* ================================================================ step editor =============================================================== */
.mu-st { position: relative; display: flex; flex-direction: column; background: var(--rl-surface-sunken); overflow: hidden; }
.mu-st-bar, .mu-pr-bar { flex: none; display: flex; flex-wrap: wrap; align-items: center; gap: .35rem .3rem; padding: .35rem .6rem; border-bottom: 1px solid var(--rl-border); background: var(--rl-surface); }
.mu-st-info, .mu-pr-info { margin-left: auto; color: var(--rl-text-muted); font-size: .74rem; font-variant-numeric: tabular-nums; white-space: pre; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.mu-st-out { min-width: 1.4rem; text-align: right; font-variant-numeric: tabular-nums; color: var(--rl-text); }
.mu-st-scroll { flex: 1; min-height: 0; overflow: auto; position: relative; }
.mu-st-inner { display: grid; grid-template-columns: var(--mu-pad-w, 380px) max-content; grid-template-rows: 26px auto; width: max-content; min-width: 100%; }
.mu-st-corner { position: sticky; left: 0; top: 0; z-index: 4; box-sizing: border-box; padding: 0 .6rem; display: flex; align-items: center; color: var(--rl-text-muted); font-size: .7rem; text-transform: uppercase; letter-spacing: .06em; background: var(--rl-surface); border-right: 1px solid var(--rl-border); border-bottom: 1px solid var(--rl-border); }
.mu-st-rulercell { position: sticky; top: 0; z-index: 3; background: var(--rl-surface); }
.mu-st-pads { position: sticky; left: 0; z-index: 2; background: var(--rl-surface); border-right: 1px solid var(--rl-border); }
.mu-st-gridcell { position: relative; background: var(--mu-lane); }
.mu-st-grid { touch-action: none; cursor: pointer; outline: none; }
.mu-st-play { position: absolute; left: 0; top: 0; bottom: 0; background: color-mix(in srgb, var(--mu-play) 22%, transparent); border-left: 1px solid var(--mu-play); border-right: 1px solid var(--mu-play); pointer-events: none; visibility: hidden; will-change: transform; }
.mu-st-pad { display: flex; align-items: center; gap: .3rem; box-sizing: border-box; padding: 0 .4rem 0 .6rem; border-bottom: 1px solid var(--rl-border); position: relative; }
.mu-st-pad::before { content: ""; position: absolute; left: 0; top: 4px; bottom: 4px; width: 3px; border-radius: 2px; background: var(--mu-tc, var(--rl-accent)); opacity: .5; }
.mu-st-pad.is-sel { background: var(--rl-surface-raised); }
.mu-st-pad.is-sel::before { opacity: 1; }
.mu-st-pad.is-quiet .mu-st-pad__name, .mu-st-pad.is-quiet .mu-st-pad__voice { opacity: .5; }
.mu-st-pad__name { flex: 1 1 6rem; min-width: 4.6rem; min-height: 1.75rem; text-align: left; border: 0; background: transparent; padding: 0 .2rem; font-weight: 700; font-size: .8rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; cursor: pointer; border-radius: 6px; }
.mu-st-pad__name:hover { background: var(--rl-surface-sunken); }
.mu-st-pad__voice { flex: 0 1 7.4rem; min-width: 5.8rem; font-size: .72rem; padding: 0 .2rem; }
.mu-st-pad .mu-tl-hb { min-width: 1.75rem; height: 1.75rem; }
.mu-st-pad__name:focus-visible, .mu-st-grid:focus-visible { outline: 2px solid var(--rl-accent); outline-offset: -2px; }

/* ================================================================= piano roll =============================================================== */
.mu-pr { position: relative; display: flex; flex-direction: column; background: var(--rl-surface-sunken); overflow: hidden; }
.mu-pr-main { position: relative; flex: 1; min-height: 0; display: grid; grid-template-columns: 64px minmax(0, 1fr) 14px; grid-template-rows: 24px minmax(0, 1fr) 56px 14px; }
.mu-pr-cell { position: relative; min-width: 0; min-height: 0; overflow: hidden; }
.mu-pr-cell > canvas { position: absolute; left: 0; top: 0; }
.mu-pr-corner, .mu-pr-vcorner { background: var(--rl-surface); border-right: 1px solid var(--rl-border); border-bottom: 1px solid var(--rl-border); }
.mu-pr-vcorner { display: flex; align-items: center; justify-content: center; border-top: 1px solid var(--rl-border); font-size: .66rem; text-transform: uppercase; letter-spacing: .05em; color: var(--rl-text-muted); }
.mu-pr-rulercell { cursor: default; }
.mu-pr-keys { cursor: pointer; touch-action: none; }
.mu-pr-grid { touch-action: none; outline: none; cursor: crosshair; }
.mu-pr-vel { touch-action: none; cursor: ns-resize; }
.mu-pr-vsb, .mu-pr-hsb { background: var(--rl-surface); }
.mu-pr-vsb .mu-sb, .mu-pr-hsb .mu-sb { position: absolute; inset: 0; width: auto; height: auto; }
.mu-pr-blank { background: var(--rl-surface); }
.mu-pr-ov { position: absolute; top: 0; bottom: 14px; pointer-events: none; overflow: hidden; }
.mu-pr-play { position: absolute; left: -1px; top: 0; bottom: 0; width: 2px; background: var(--mu-play); visibility: hidden; will-change: transform; }

/* ============================================================= audio clip editor ============================================================ */
.mu-ac { position: relative; display: flex; flex-direction: column; gap: .5rem; padding: .6rem .8rem; background: var(--rl-surface-sunken); overflow: auto; }
.mu-ac-wavewrap { position: relative; flex: none; border: 1px solid var(--rl-border); border-radius: 10px; overflow: hidden; background: var(--mu-lane); }
.mu-ac-wave { cursor: col-resize; touch-action: none; outline: none; }
.mu-ac-wave:focus-visible { outline: 2px solid var(--rl-accent); outline-offset: -2px; }
.mu-ac-play { position: absolute; left: -1px; top: 0; bottom: 0; width: 2px; background: var(--mu-play); visibility: hidden; pointer-events: none; will-change: transform; }
.mu-ac-readout { position: absolute; right: .5rem; top: .3rem; color: var(--rl-text-muted); font-size: .68rem; pointer-events: none; font-variant-numeric: tabular-nums; }
.mu-ac-meta { color: var(--rl-text-muted); font-size: .76rem; padding: 0 .2rem; font-variant-numeric: tabular-nums; }
.mu-ac-controls { display: grid; grid-template-columns: repeat(auto-fit, minmax(17rem, 1fr)); gap: .6rem; align-items: start; }
.mu-ac-sec { display: flex; flex-direction: column; gap: .5rem; padding: .6rem .7rem; background: var(--rl-surface); border: 1px solid var(--rl-border); border-radius: 10px; }
.mu-ac-sec h3 { margin: 0; font-size: .72rem; text-transform: uppercase; letter-spacing: .06em; color: var(--rl-text-muted); }
.mu-ac-sec .pe-rng { display: grid; grid-template-columns: 3.4rem minmax(0, 1fr) auto; gap: .4rem; align-items: center; }
.mu-ac-sec .pe-rng input[type=range] { width: 100%; min-width: 0; height: 1.75rem; margin: 0; accent-color: var(--rl-accent); }
.mu-ac-sec .pe-rng__num { width: 3.7rem; }
.mu-ac-sec .pe-seg { display: flex; flex-direction: column; align-items: stretch; gap: .25rem; }
.mu-ac-sec .pe-seg__row { display: flex; }
.mu-ac-sec .pe-seg__b { flex: 1; min-height: 1.75rem; }
.mu-ac-f { display: grid; grid-template-columns: 7rem minmax(0, 1fr); align-items: center; gap: .4rem; }
.mu-ac-f__row { display: flex; flex-wrap: wrap; gap: .3rem; align-items: center; min-width: 0; }
.mu-ac-checks { display: flex; flex-wrap: wrap; gap: .3rem 1rem; }
.mu-ac-ratio { color: var(--rl-text-muted); font-size: .76rem; line-height: 1.4; }
.mu-ac-audition { align-self: flex-start; min-width: 7.5rem; min-height: 2rem; }

@media (prefers-reduced-motion: reduce) { .mu-tl *, .mu-st *, .mu-pr *, .mu-ac * { transition: none !important; animation: none !important; } }

/* Narrow studio: the header column slims down, dropping the volume slider and the follow toggle. */
.mu-tl.is-compact .mu-tl-vol, .mu-tl.is-compact .mu-tl-voltxt, .mu-tl.is-compact .mu-tl-ib--follow { display: none; }
.mu-tl.is-compact .mu-tl-snap { max-width: 4.6rem; }
.mu-tl.is-compact .mu-tl-corner { padding: 0 .25rem; }
.mu-tl.is-compact .mu-tl-head { padding-left: .7rem; }
