@font-face { font-family: 'Barlow SC'; src: url('../fonts/barlow-semi-condensed-latin-400-normal.woff2') format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Barlow SC'; src: url('../fonts/barlow-semi-condensed-latin-500-normal.woff2') format('woff2'); font-weight: 500; font-display: swap; }
@font-face { font-family: 'Barlow SC'; src: url('../fonts/barlow-semi-condensed-latin-600-normal.woff2') format('woff2'); font-weight: 600; font-display: swap; }
@font-face { font-family: 'Tilt Neon'; src: url('../fonts/tilt-neon-latin-400-normal.woff2') format('woff2'); font-display: swap; }
@font-face { font-family: 'DSEG7'; src: url('../fonts/DSEG7Classic-Bold.woff2') format('woff2'); font-display: block; }

:root {
  --black: #000; --ink-1: #09090b; --ink-2: #111114; --ink-3: #19191e; --ink-4: #24242b; --line: #2a2a32; --line-2: #3b3b46;
  --text: #f6eff3; --dim: #a39ba8; --faint: #6a6470;
  --pink: #ff2d9b; --pink-hot: #ffc2e6; --pink-deep: #9c0f5c; --pink-wash: rgba(255, 45, 155, .1); --rec: #ff3358;
  --glow: 0 0 5px rgba(255, 45, 155, .95), 0 0 16px rgba(255, 45, 155, .6), 0 0 38px rgba(255, 45, 155, .28);
  --glow-soft: 0 0 10px rgba(255, 45, 155, .45);
  --ui: 'Barlow SC', 'Arial Narrow', system-ui, sans-serif;
  --bottom-h: 318px; --heads-w: 236px;
}
* { box-sizing: border-box; }
html, body { height: 100%; margin: 0; background: var(--black); color: var(--text); font: 400 14px/1.3 var(--ui); overflow: hidden; -webkit-font-smoothing: antialiased; }
body { display: grid; grid-template-columns: minmax(0, 1fr); grid-template-rows: auto auto minmax(0, 1fr) auto auto; height: 100vh; height: 100dvh; user-select: none; -webkit-user-select: none; touch-action: manipulation; }
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 2px solid var(--pink-hot); outline-offset: 1px; }
.ic { display: block; flex: none; }
[hidden] { display: none !important; }
::selection { background: var(--pink); color: #000; }
::-webkit-scrollbar { width: 10px; height: 10px; } ::-webkit-scrollbar-track { background: var(--black); }
::-webkit-scrollbar-thumb { background: var(--ink-4); border-radius: 5px; border: 2px solid var(--black); } ::-webkit-scrollbar-thumb:hover { background: var(--pink-deep); }

/* ---------- Barra superior ---------- */
#top { display: flex; align-items: center; gap: 14px; padding: 8px 14px; border-bottom: 1px solid var(--line); background: var(--black); min-width: 0; }
#brand { font: 400 27px/1 'Tilt Neon', var(--ui); color: var(--pink-hot); text-shadow: var(--glow); letter-spacing: .01em; padding-right: 4px; animation: tube 1.5s linear 1 both; }
@keyframes tube { 0% { opacity: .08; text-shadow: none; } 9% { opacity: 1; } 12% { opacity: .15; text-shadow: none; } 21% { opacity: 1; } 24% { opacity: .3; } 30%, 100% { opacity: 1; } }
#menubar { display: flex; gap: 1px; }
#menubar button { background: none; border: 0; padding: 6px 9px; border-radius: 6px; color: var(--dim); font-weight: 500; }
#menubar button:hover, #menubar button.open { color: var(--text); background: var(--ink-3); }
#transport { display: flex; gap: 6px; margin-left: auto; }
.tb { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 50%; background: var(--ink-2); border: 1px solid var(--line); color: var(--text); transition: box-shadow .12s, background .12s, color .12s; }
.tb:hover { border-color: var(--line-2); background: var(--ink-3); }
.tb.on { color: var(--pink); border-color: var(--pink); box-shadow: var(--glow-soft), inset 0 0 10px rgba(255, 45, 155, .18); }
#btnPlay { width: 46px; height: 46px; margin-top: -4px; margin-bottom: -4px; }
#btnPlay.on { background: var(--pink); color: #000; box-shadow: var(--glow); }
#btnRec { color: var(--rec); }
#btnRec.on { background: var(--rec); color: #000; border-color: var(--rec); box-shadow: 0 0 6px var(--rec), 0 0 22px rgba(255, 51, 88, .7); animation: pulse 1s ease-in-out infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 3px var(--rec), 0 0 9px rgba(255, 51, 88, .4); } }
#lcd { display: flex; align-items: center; gap: 16px; padding: 6px 16px 6px 14px; background: #050003; border: 1px solid var(--pink-deep); border-radius: 8px; box-shadow: inset 0 0 22px rgba(255, 45, 155, .13), 0 0 14px rgba(255, 45, 155, .12); margin-right: auto; }
.lcd-pos { display: flex; font: 26px/1 'DSEG7', monospace; cursor: pointer; background: none; border: 0; padding: 2px 0; white-space: nowrap; }
.lcd-pos .g { position: relative; display: block; } .lcd-pos .g + .g { margin-left: 13px; }
.lcd-pos .g + .g::before { content: ''; position: absolute; left: -9px; bottom: 0; width: 4px; height: 4px; border-radius: 1px; background: var(--pink); box-shadow: 0 0 6px var(--pink); }
.lcd-pos.time .g:nth-child(2)::before { bottom: 5px; box-shadow: 0 -11px 0 var(--pink), 0 0 6px var(--pink); }
.lcd-pos i { font-style: normal; display: block; } .lcd-pos .ghost { color: rgba(255, 45, 155, .1); }
.lcd-pos .val { position: absolute; right: 0; top: 0; color: var(--pink); text-shadow: 0 0 6px rgba(255, 45, 155, .9), 0 0 18px rgba(255, 45, 155, .5); }
.lcd-f { display: flex; flex-direction: column; gap: 1px; font-size: 11px; color: var(--dim); }
.lcd-f input, .lcd-f select { width: 58px; background: none; border: 0; color: var(--pink-hot); font: 600 17px/1.1 var(--ui); padding: 0; font-variant-numeric: tabular-nums; -moz-appearance: textfield; }
.lcd-f select { width: 50px; appearance: none; cursor: pointer; } .lcd-f select option { background: var(--ink-2); color: var(--text); }
.lcd-f input::-webkit-inner-spin-button { display: none; }
#topRight { display: flex; align-items: center; gap: 12px; }
#masterMeter { width: 120px; height: 16px; display: block; }
.cta { background: var(--pink); color: #000; border: 0; font-weight: 600; padding: 9px 16px; border-radius: 8px; box-shadow: var(--glow-soft); white-space: nowrap; }
.cta:hover { box-shadow: var(--glow); background: #ff55ae; }

/* ---------- Barra de herramientas ---------- */
#toolbar { display: flex; align-items: center; gap: 6px; padding: 5px 12px; border-bottom: 1px solid var(--line); background: var(--ink-1); overflow-x: auto; scrollbar-width: none; }
#toolbar::-webkit-scrollbar { display: none; }
.sep { width: 1px; align-self: stretch; background: var(--line); margin: 2px 6px; flex: none; }
.btn { display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 9px; background: var(--ink-3); border: 1px solid var(--line); border-radius: 6px; color: var(--text); white-space: nowrap; flex: none; }
.btn:hover { border-color: var(--line-2); background: var(--ink-4); }
.btn.on { color: var(--pink); border-color: var(--pink); background: var(--pink-wash); box-shadow: var(--glow-soft); }
.btn.sq { width: 28px; padding: 0; justify-content: center; }
.btn:disabled { opacity: .35; cursor: default; }
.seg { display: flex; flex: none; } .seg .btn { border-radius: 0; margin-left: -1px; } .seg .btn:first-child { border-radius: 6px 0 0 6px; margin: 0; } .seg .btn:last-child { border-radius: 0 6px 6px 0; } .seg .btn.on { z-index: 1; }
select.btn { appearance: none; padding-right: 22px; background-image: linear-gradient(45deg, transparent 50%, var(--dim) 50%), linear-gradient(135deg, var(--dim) 50%, transparent 50%); background-position: calc(100% - 11px) 12px, calc(100% - 7px) 12px; background-size: 4px 4px; background-repeat: no-repeat; }
select.btn option { background: var(--ink-2); }
input[type=range] { -webkit-appearance: none; appearance: none; background: none; height: 20px; margin: 0; cursor: pointer; min-width: 0; }
input[type=range]::-webkit-slider-runnable-track { height: 4px; border-radius: 2px; background: linear-gradient(90deg, var(--pink) var(--fill, 50%), var(--ink-4) var(--fill, 50%)); }
input[type=range]::-moz-range-track { height: 4px; border-radius: 2px; background: var(--ink-4); } input[type=range]::-moz-range-progress { height: 4px; border-radius: 2px; background: var(--pink); }
input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; width: 12px; height: 12px; margin-top: -4px; border-radius: 50%; background: var(--pink-hot); box-shadow: 0 0 8px var(--pink); border: 0; }
input[type=range]::-moz-range-thumb { width: 12px; height: 12px; border-radius: 50%; background: var(--pink-hot); box-shadow: 0 0 8px var(--pink); border: 0; }
#zoom { width: 110px; flex: none; }
.grow { flex: 1; }

/* ---------- Zona de trabajo ---------- */
#work { display: flex; min-height: 0; min-width: 0; }
aside { width: 232px; flex: none; background: var(--ink-1); display: flex; flex-direction: column; min-height: 0; }
#lib { border-right: 1px solid var(--line); } #insp { border-left: 1px solid var(--line); }
.ph { display: flex; align-items: center; gap: 8px; padding: 9px 12px; font-weight: 600; font-size: 15px; border-bottom: 1px solid var(--line); }
.ph .btn { margin-left: auto; }
.pb { overflow-y: auto; flex: 1; padding: 8px; }
.note { color: var(--dim); font-size: 13px; line-height: 1.45; padding: 6px 4px; }
.li { display: grid; grid-template-columns: minmax(0, 1fr) 26px 26px 26px; column-gap: 2px; align-items: center; padding: 6px 4px 6px 9px; border-radius: 6px; border: 1px solid transparent; cursor: grab; }
.li:hover { background: var(--ink-3); border-color: var(--line); }
.li b { grid-area: 1 / 1; font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .li small { grid-area: 2 / 1; color: var(--dim); font-size: 12px; }
.li .ib { grid-row: 1 / span 2; } .li .ib:nth-of-type(1) { grid-column: 2; } .li .ib:nth-of-type(2) { grid-column: 3; } .li .ib:nth-of-type(3) { grid-column: 4; }
.ib { width: 26px; height: 26px; display: grid; place-items: center; background: none; border: 0; border-radius: 5px; color: var(--dim); }
.ib:hover { color: var(--pink); background: var(--pink-wash); } .ib.on { color: var(--pink); }
.fr { display: grid; grid-template-columns: 84px 1fr; gap: 8px; align-items: center; margin: 0 4px 8px; font-size: 13px; color: var(--dim); }
.fr input[type=text], .fr input[type=number], .fr select, dialog input[type=text], dialog input[type=number], dialog select { width: 100%; height: 28px; background: var(--black); border: 1px solid var(--line); border-radius: 6px; padding: 0 8px; color: var(--text); user-select: text; -webkit-user-select: text; }
.fr input:focus, dialog input:focus, dialog select:focus { border-color: var(--pink); outline: none; box-shadow: var(--glow-soft); }
.fr .sw { display: flex; gap: 5px; flex-wrap: wrap; } .sw button { width: 20px; height: 20px; border-radius: 50%; border: 2px solid transparent; padding: 0; } .sw button.on { border-color: #fff; box-shadow: 0 0 8px currentColor; }
.sec { font-weight: 600; color: var(--text); margin: 12px 4px 8px; font-size: 14px; } .sec:first-child { margin-top: 4px; }

#arr { flex: 1; display: flex; min-width: 0; min-height: 0; background: var(--black); }
#heads { width: var(--heads-w); flex: none; display: flex; flex-direction: column; border-right: 1px solid var(--line); background: var(--ink-1); min-height: 0; }
#headsTop { height: 38px; flex: none; display: flex; align-items: center; gap: 6px; padding: 0 8px; border-bottom: 1px solid var(--line); }
#headsWrap { flex: 1; overflow: hidden; position: relative; }
#headsList { position: absolute; left: 0; right: 0; top: 0; will-change: transform; }
.th { display: grid; grid-template-columns: 4px 1fr 14px; border-bottom: 1px solid var(--line); overflow: hidden; }
.th.sel { background: linear-gradient(90deg, rgba(255, 45, 155, .13), transparent 70%); }
.th .stripe { background: var(--c); box-shadow: 0 0 10px var(--c); }
.th .body { padding: 7px 8px 5px 9px; display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.th .r1 { display: flex; align-items: center; gap: 4px; }
.th .nm { flex: 1; min-width: 0; background: none; border: 1px solid transparent; border-radius: 4px; padding: 1px 4px; font-weight: 600; font-size: 15px; text-overflow: ellipsis; user-select: text; -webkit-user-select: text; }
.th .nm:focus { border-color: var(--pink); outline: none; background: var(--black); }
.msr { width: 24px; height: 22px; border-radius: 5px; border: 1px solid var(--line); background: var(--ink-3); color: var(--dim); font-weight: 600; font-size: 12px; padding: 0; flex: none; }
.msr:hover { color: var(--text); border-color: var(--line-2); }
.msr.m.on { background: var(--text); color: #000; border-color: var(--text); }
.msr.s.on { background: var(--pink); color: #000; border-color: var(--pink); box-shadow: var(--glow-soft); }
.msr.r.on { background: var(--rec); color: #000; border-color: var(--rec); box-shadow: 0 0 10px rgba(255, 51, 88, .7); }
.th .r2 { display: flex; align-items: center; gap: 8px; }
.th .r2 input[type=range] { flex: 1; } .th .db { width: 38px; text-align: right; font-size: 12px; color: var(--dim); font-variant-numeric: tabular-nums; }
.th canvas { width: 14px; height: 100%; display: block; }
.th.small .r2 { display: none; }
#tl { flex: 1; position: relative; min-width: 0; overflow: hidden; }
#tlc { position: absolute; left: 0; top: 0; width: calc(100% - 10px); height: calc(100% - 12px); display: block; touch-action: none; outline: none; }
#playhead { position: absolute; top: 0; bottom: 12px; left: 0; width: 1px; background: var(--pink-hot); box-shadow: 0 0 4px var(--pink), 0 0 12px var(--pink), 0 0 26px rgba(255, 45, 155, .6); pointer-events: none; will-change: transform; z-index: 2; }
#playhead::before { content: ''; position: absolute; top: 14px; left: -6px; border: 6px solid transparent; border-top: 9px solid var(--pink); filter: drop-shadow(0 0 5px var(--pink)); }
#hscroll { position: absolute; left: 0; right: 10px; bottom: 0; height: 12px; overflow-x: scroll; overflow-y: hidden; } #hscroll div { height: 1px; }
#vscroll { position: absolute; right: 0; top: 38px; bottom: 12px; width: 10px; overflow-y: scroll; overflow-x: hidden; } #vscroll div { width: 1px; }
#empty { position: absolute; inset: 38px 10px 12px 0; display: grid; place-items: center; text-align: center; padding: 20px; }
#empty .card { max-width: 430px; }
#empty h1 { font: 400 34px/1.1 'Tilt Neon', var(--ui); color: var(--pink-hot); text-shadow: var(--glow); margin: 0 0 12px; }
#empty p { color: var(--dim); font-size: 16px; line-height: 1.5; margin: 0 0 20px; }
#empty .row { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
#empty .btn { height: 38px; padding: 0 16px; font-weight: 500; }
#dropveil { position: fixed; inset: 0; z-index: 40; display: grid; place-items: center; background: rgba(0, 0, 0, .78); border: 2px dashed var(--pink); box-shadow: inset 0 0 90px rgba(255, 45, 155, .4); font: 400 34px 'Tilt Neon', var(--ui); color: var(--pink-hot); text-shadow: var(--glow); pointer-events: none; }

/* ---------- Panel inferior ---------- */
#split { height: 5px; cursor: row-resize; background: var(--line); position: relative; } #split:hover, #split.drag { background: var(--pink); box-shadow: var(--glow-soft); }
#bottomWrap { min-width: 0; }
#bottom { height: var(--bottom-h); display: flex; flex-direction: column; background: var(--ink-1); min-height: 0; min-width: 0; }
#tabs { display: flex; align-items: stretch; border-bottom: 1px solid var(--line); padding: 0 8px; gap: 2px; flex: none; }
#tabs button[data-tab] { background: none; border: 0; padding: 8px 14px 7px; color: var(--dim); font-weight: 600; font-size: 15px; border-bottom: 2px solid transparent; }
#tabs button[data-tab]:hover { color: var(--text); }
#tabs button[data-tab].on { color: var(--pink-hot); border-bottom-color: var(--pink); text-shadow: 0 0 12px var(--pink); }
#tabInfo { margin-left: auto; align-self: center; color: var(--dim); font-size: 13px; padding-right: 6px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.panel { flex: 1; min-height: 0; min-width: 0; display: flex; }
/* Mezclador */
#pMixer { overflow-x: auto; padding: 8px; gap: 6px; align-items: stretch; }
.strip { width: 92px; flex: none; display: flex; flex-direction: column; align-items: center; gap: 5px; background: var(--ink-2); border: 1px solid var(--line); border-top: 3px solid var(--c, var(--line)); border-radius: 6px; padding: 6px 5px; cursor: default; }
.strip.sel { border-color: var(--pink); border-top-color: var(--c, var(--pink)); box-shadow: var(--glow-soft); }
.strip.master { width: 104px; margin-left: auto; position: sticky; right: 0; border-color: var(--pink-deep); border-top-color: var(--pink); background: #0d0409; }
.strip .snm { font-weight: 600; font-size: 13px; width: 100%; text-align: center; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.strip .slots { width: 100%; display: flex; flex-direction: column; gap: 2px; height: 48px; overflow: hidden; flex: none; }
.slot { font-size: 11px; line-height: 14px; padding: 0 4px; border-radius: 3px; background: var(--pink-wash); color: var(--pink-hot); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; border: 0; text-align: left; width: 100%; }
.slot.off { color: var(--faint); background: var(--ink-3); text-decoration: line-through; } .slot.add { background: none; color: var(--faint); border: 1px dashed var(--line); text-align: center; } .slot.add:hover { color: var(--pink); border-color: var(--pink); }
.strip .fm { flex: 1; min-height: 60px; display: flex; gap: 6px; align-items: stretch; }
.strip .fm canvas { width: 14px; height: 100%; }
.fader { width: 26px; position: relative; cursor: ns-resize; touch-action: none; }
.fader::before { content: ''; position: absolute; left: 11px; top: 4px; bottom: 4px; width: 4px; border-radius: 2px; background: var(--black); border: 1px solid var(--line); }
.fader i { position: absolute; left: 1px; width: 24px; height: 14px; margin-top: -7px; border-radius: 3px; background: linear-gradient(#3a3a44, #1c1c22); border: 1px solid var(--line-2); box-shadow: 0 2px 5px #000; }
.fader i::after { content: ''; position: absolute; left: 2px; right: 2px; top: 5px; height: 2px; background: var(--pink); box-shadow: 0 0 6px var(--pink); }
.strip .sdb { font-size: 12px; color: var(--dim); font-variant-numeric: tabular-nums; height: 15px; }
.strip .sb { display: flex; gap: 3px; align-items: flex-start; } .strip .sb .msr { margin-top: 2px; width: 22px; }
.strip > * { flex-shrink: 0; } .strip .fm { flex: 1 1 44px; min-height: 44px; }
#pMixer { overflow-y: auto; }
/* Perillas */
.knob { display: flex; flex-direction: column; align-items: center; gap: 1px; width: 66px; cursor: ns-resize; touch-action: none; border-radius: 6px; }
.knob svg { display: block; overflow: visible; }
.knob .kb { stroke: var(--ink-4); } .knob .kv { stroke: var(--pink); filter: drop-shadow(0 0 3px var(--pink)); } .knob .kp { stroke: var(--pink-hot); } .knob .kc { fill: var(--ink-3); stroke: var(--line-2); }
.knob .kt { font-size: 12px; color: var(--text); font-variant-numeric: tabular-nums; white-space: nowrap; } .knob .kl { font-size: 11px; color: var(--dim); white-space: nowrap; max-width: 100%; overflow: hidden; text-overflow: ellipsis; }
.knob.mini { width: 34px; } .knob.mini .kt { display: none; } .knob.mini .kl { font-size: 10px; }
/* Efectos */
#pFx { flex-direction: column; }
.fxbar { display: flex; align-items: center; gap: 8px; padding: 7px 10px; border-bottom: 1px solid var(--line); flex: none; }
.fxbar b { font-weight: 600; } .fxbar .c { width: 10px; height: 10px; border-radius: 50%; background: var(--c); box-shadow: 0 0 8px var(--c); }
#fxRack { flex: 1; display: flex; gap: 8px; padding: 8px; overflow: auto; align-items: flex-start; }
.fxc { flex: none; background: var(--ink-2); border: 1px solid var(--line); border-radius: 8px; max-width: 420px; }
.fxc.off { opacity: .5; } .fxc.off .kv { stroke: var(--faint); filter: none; }
.fxh { display: flex; align-items: center; gap: 2px; padding: 4px 4px 4px 10px; border-bottom: 1px solid var(--line); } .fxh b { font-weight: 600; margin-right: auto; padding-right: 10px; } .fxh .gr { font-size: 12px; color: var(--pink-hot); font-variant-numeric: tabular-nums; margin-right: 6px; }
.fxb { display: flex; flex-wrap: wrap; gap: 8px 2px; padding: 10px 8px; align-items: flex-start; }
.fxb .selw { display: flex; flex-direction: column; gap: 3px; align-items: center; font-size: 11px; color: var(--dim); width: 124px; padding-top: 6px; } .fxb .selw select { width: 116px; }
.fxc canvas.eq { display: block; width: 404px; height: 96px; margin: 8px 8px 0; background: var(--black); border-radius: 5px; border: 1px solid var(--line); }
/* Editor */
#pEditor { flex-direction: column; }
.edbar { display: flex; align-items: center; gap: 6px; padding: 6px 10px; border-bottom: 1px solid var(--line); flex: none; overflow-x: auto; scrollbar-width: none; }
#edWrap { flex: 1; position: relative; min-height: 0; background: var(--black); }
#edc { position: absolute; inset: 0; width: 100%; height: 100%; display: block; touch-action: none; cursor: text; }
#edHead { position: absolute; top: 0; bottom: 0; width: 1px; background: var(--pink-hot); box-shadow: 0 0 8px var(--pink), 0 0 18px var(--pink); pointer-events: none; }
.hole { position: absolute; inset: 0; display: grid; place-items: center; color: var(--dim); font-size: 15px; text-align: center; padding: 20px; }
/* Analizador */
#pAnalyzer { gap: 8px; padding: 8px; }
#anSpec { flex: 1; min-width: 0; height: 100%; background: var(--black); border: 1px solid var(--line); border-radius: 6px; }
#anScope { height: 100%; aspect-ratio: 1; background: var(--black); border: 1px solid var(--line); border-radius: 6px; flex: none; max-width: 30%; }
#anNums { width: 132px; flex: none; display: flex; flex-direction: column; gap: 8px; justify-content: center; font-size: 13px; color: var(--dim); }
#anNums b { display: block; font: 600 22px/1.1 var(--ui); color: var(--pink-hot); font-variant-numeric: tabular-nums; text-shadow: 0 0 12px rgba(255, 45, 155, .6); }

/* ---------- Estado, menús, diálogos ---------- */
#status { display: flex; gap: 16px; white-space: pre; padding: 4px 12px; border-top: 1px solid var(--line); background: var(--black); color: var(--dim); font-size: 12.5px; white-space: nowrap; overflow: hidden; }
#status #hint { overflow: hidden; text-overflow: ellipsis; } #stInfo { margin-left: auto; font-variant-numeric: tabular-nums; }
#menu { position: fixed; z-index: 60; min-width: 230px; max-height: 82vh; overflow-y: auto; background: var(--ink-2); border: 1px solid var(--line-2); border-radius: 8px; padding: 5px; box-shadow: 0 14px 44px #000, 0 0 0 1px rgba(255, 45, 155, .12), 0 0 26px rgba(255, 45, 155, .14); }
#menu button { display: flex; width: 100%; gap: 22px; align-items: center; background: none; border: 0; padding: 6px 10px; border-radius: 5px; text-align: left; }
#menu button:hover, #menu button:focus-visible { background: var(--pink); color: #000; outline: none; } #menu button:hover kbd, #menu button:focus-visible kbd { color: #000; }
#menu button:disabled { color: var(--faint); background: none; cursor: default; }
#menu kbd { margin-left: auto; font: inherit; font-size: 12.5px; color: var(--dim); } #menu hr { border: 0; border-top: 1px solid var(--line); margin: 5px 4px; }
#menu .mh { padding: 5px 10px 2px; font-size: 12px; color: var(--dim); }
#toast { position: fixed; left: 50%; bottom: 46px; transform: translate(-50%, 14px); z-index: 80; background: var(--ink-2); border: 1px solid var(--pink); color: var(--text); padding: 9px 16px; border-radius: 8px; box-shadow: var(--glow-soft); opacity: 0; pointer-events: none; transition: opacity .16s, transform .16s; max-width: min(90vw, 560px); text-align: center; }
#toast.show { opacity: 1; transform: translate(-50%, 0); } #toast.err { border-color: var(--rec); box-shadow: 0 0 14px rgba(255, 51, 88, .5); }
#busy { position: fixed; inset: 0; z-index: 90; background: rgba(0, 0, 0, .72); display: grid; place-items: center; }
#busy .box { width: min(360px, 84vw); text-align: center; font-size: 16px; } #busy .bar { height: 4px; background: var(--ink-4); border-radius: 2px; margin-top: 14px; overflow: hidden; }
#busyBar { height: 100%; background: var(--pink); box-shadow: var(--glow); width: 0; transition: width .12s; } #busyBar.indet { animation: indet 1.1s ease-in-out infinite; transform-origin: left; }
@keyframes indet { 0% { transform: translateX(-100%) scaleX(.4); } 100% { transform: translateX(100%) scaleX(.4); } }
dialog { background: var(--ink-2); color: var(--text); border: 1px solid var(--pink-deep); border-radius: 12px; padding: 0; width: min(440px, 92vw); box-shadow: 0 24px 80px #000, 0 0 40px rgba(255, 45, 155, .2); }
dialog::backdrop { background: rgba(0, 0, 0, .7); }
dialog form { padding: 18px 20px; } dialog h2 { margin: 0 0 4px; font: 600 20px/1.2 var(--ui); } dialog p.sub { margin: 0 0 14px; color: var(--dim); font-size: 13.5px; line-height: 1.45; }
dialog label { display: grid; grid-template-columns: 150px 1fr; gap: 10px; align-items: center; margin-bottom: 9px; color: var(--dim); }
dialog .acts { display: flex; justify-content: flex-end; gap: 8px; margin-top: 16px; } dialog .acts .btn { height: 34px; padding: 0 14px; } dialog .acts .cta { height: 34px; padding: 0 16px; }
dialog.wide { width: min(680px, 94vw); } .keys { display: grid; grid-template-columns: 1fr 1fr; gap: 3px 26px; font-size: 13.5px; } .keys div { display: flex; justify-content: space-between; gap: 10px; padding: 3px 0; border-bottom: 1px solid var(--line); } .keys kbd { font: inherit; color: var(--pink-hot); white-space: nowrap; }

@media (max-width: 1240px) {
  #insp { display: none; } #masterMeter { display: none; }
  #top { flex-wrap: wrap; row-gap: 8px; } #topRight { order: 3; margin-left: auto; } #transport { order: 4; margin-left: 0; } #lcd { order: 5; margin-right: 0; }
}
@media (max-width: 900px) {
  #lib { display: none; } :root { --heads-w: 172px; } #menubar button { padding: 6px 6px; } #top { gap: 8px; }
  #transport { order: 3; } #topRight { order: 4; margin-left: auto; } .th .db { display: none; }
  .th .r1 { flex-wrap: wrap; row-gap: 3px; } .th .nm { flex-basis: 100%; } .th .body { gap: 3px; padding-top: 4px; }
}
@media (max-width: 620px) { #brand { font-size: 22px; } .lcd-pos { font-size: 20px; } .cta span { display: none; } :root { --heads-w: 128px; } .tb { width: 34px; height: 34px; } #btnPlay { width: 42px; height: 42px; } #transport { gap: 4px; } #lcd { width: 100%; } }
@media (max-height: 780px) { :root { --bottom-h: 250px; } .strip .slots { height: 31px; } }
@media (max-height: 620px) { :root { --bottom-h: 190px; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }
