/* AUM Studio — estética de estudio: negro, grafito y casi sin color (inspirada en Logic Pro) */
:root {
  /* Layout: barra de control + herramientas arriba, pistas en el centro, panel de mezcla abajo */
  --bg: #121314;          /* fondo general */
  --s1: #1b1c1e;          /* barras */
  --s2: #232427;          /* paneles */
  --s3: #2d2e32;          /* controles */
  --s4: #3a3b40;          /* controles encendidos */
  --line: #34353a;
  --line2: #0a0a0b;
  --fg: #e4e4e6;
  --fg2: #a7a8ad;
  --fg3: #74757b;
  --lane: #18191b;
  --lane2: #1c1d20;
  --grid: #26272b;
  --gridB: #303136;
  --white: #f4f4f5;
  --rec: #e0524c;
  --solo: #cdb257;
  --mute: #6d97b0;
  --cycle: #b09a5a;
  --ok: #57b56a;
  --lcd: #0b0c0d;
  --lcdfg: #e9e6dc;
  --ui: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", system-ui, sans-serif;
  --num: "SF Mono", ui-monospace, Menlo, "Roboto Mono", monospace;
  --headW: 210px;
  --dockH: 330px;
  color-scheme: dark;
}
html, body { height: 100%; }
[hidden] { display: none !important; }
body { margin: 0; background: var(--bg); color: var(--fg); font: 14px/1.35 var(--ui); overflow: hidden; -webkit-user-select: none; user-select: none; -webkit-tap-highlight-color: transparent; -webkit-touch-callout: none; }
button, select, input { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 2px solid #8a8b92; outline-offset: 1px; }
svg { fill: currentColor; }

#app { height: 100%; display: grid; grid-template-rows: auto auto minmax(120px, 1fr) var(--dockH); padding-left: env(safe-area-inset-left, 0px); padding-right: env(safe-area-inset-right, 0px); }
#app.dock-hidden { grid-template-rows: auto auto 1fr 40px; }

/* ---------- Barra de control ---------- */
.cbar { display: flex; align-items: center; gap: 10px; padding: 8px 10px; padding-top: max(8px, env(safe-area-inset-top, 0px)); background: linear-gradient(#26272a, #1c1d1f); border-bottom: 1px solid var(--line2); box-shadow: inset 0 -1px 0 #2c2d31; flex-wrap: wrap; }
.cb-left, .cb-right { display: flex; align-items: center; gap: 6px; flex: 1 1 0; min-width: max-content; }
.cb-right { justify-content: flex-end; }
.cb-mid { display: flex; align-items: center; gap: 10px; }
.brand { display: flex; align-items: center; gap: 7px; margin-right: 6px; white-space: nowrap; }
.brand img { width: 26px; height: 26px; border-radius: 7px; box-shadow: 0 0 0 1px #000; }
.brand b { font-weight: 600; letter-spacing: .02em; font-size: 15px; }
.brand small { color: var(--fg3); font-size: 11px; font-weight: 600; letter-spacing: .06em; }

.tb { height: 32px; padding: 0 12px; border-radius: 6px; border: 1px solid #0d0d0e; background: linear-gradient(#3a3b3f, #2e2f33); color: var(--fg); font-size: 13px; font-weight: 500; box-shadow: inset 0 1px 0 rgba(255,255,255,.07), 0 1px 1px rgba(0,0,0,.4); white-space: nowrap; display: inline-flex; align-items: center; gap: 6px; }
.tb:hover { background: linear-gradient(#424348, #35363a); }
.tb:active { background: linear-gradient(#2a2b2e, #333438); box-shadow: inset 0 1px 3px rgba(0,0,0,.6); }
.tb.on, .tb[aria-pressed="true"] { background: linear-gradient(#55565c, #47484d); color: #fff; box-shadow: inset 0 1px 0 rgba(255,255,255,.12), inset 0 0 0 1px rgba(255,255,255,.08); }
.tb.accent { background: linear-gradient(#ececee, #c9c9cd); color: #151517; border-color: #000; font-weight: 600; }
.tb.accent:hover { background: linear-gradient(#fff, #d7d7da); }
.tb.danger:hover { color: #ff8a84; }
.tb:disabled { opacity: .4; cursor: default; }
.save-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--fg3); }
.save-dot.ok { background: #7fbf8a; }
.save-dot.busy { background: var(--solo); }

.transport { display: flex; gap: 4px; }
.tr { width: 36px; height: 32px; border-radius: 6px; border: 1px solid #0b0b0c; background: linear-gradient(#3a3b3f, #2b2c30); color: #d9d9dc; display: grid; place-items: center; box-shadow: inset 0 1px 0 rgba(255,255,255,.07), 0 1px 1px rgba(0,0,0,.4); padding: 0; }
.tr svg { width: 17px; height: 17px; }
.tr.sm { width: 32px; }
.tr:active { box-shadow: inset 0 1px 3px rgba(0,0,0,.6); }
.tr.play.on { color: #fff; background: linear-gradient(#5b5c62, #47484d); }
.tr.rec { color: #c45a55; }
.tr.rec.on { color: #fff; background: linear-gradient(#c8463f, #9c2f2a); animation: recpulse 1s infinite alternate; }
@keyframes recpulse { to { background: linear-gradient(#e0524c, #b53a34); } }
.tr.tog.on { color: #151515; background: linear-gradient(#d9d9dc, #b9b9bd); }
#tCycle.on { color: #17140a; background: linear-gradient(#d1bd7c, #a8935a); }
.tr-txt { font: 600 10px var(--num); letter-spacing: .02em; }

.lcd { display: flex; align-items: stretch; background: var(--lcd); border: 1px solid #000; border-radius: 8px; box-shadow: inset 0 1px 4px rgba(0,0,0,.9), 0 1px 0 #34353a; padding: 3px 4px; min-height: 38px; cursor: pointer; }
.lcd-main { display: flex; flex-direction: column; justify-content: center; padding: 0 10px; min-width: 124px; }
.lcd-main b { font: 500 21px/1 var(--num); color: var(--lcdfg); letter-spacing: .02em; font-variant-numeric: tabular-nums; }
.lcd-main span { font: 500 11px/1.3 var(--num); color: #8d8a80; letter-spacing: .08em; font-variant-numeric: tabular-nums; }
.lcd.bars .lcd-main b { font-size: 19px; }
.lcd-sep { width: 1px; background: #26272a; margin: 3px 4px; }
.lcd-cell { display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 0 10px; touch-action: none; }
.lcd-cell b { font: 500 17px/1 var(--num); color: var(--lcdfg); font-variant-numeric: tabular-nums; }
.lcd-cell small { font-size: 9.5px; text-transform: uppercase; letter-spacing: .12em; color: #7c7a72; margin-top: 3px; }
.lcd-cell:hover b { color: #fff; }

.mmeter { width: 96px; height: 30px; border-radius: 5px; background: #0b0c0d; border: 1px solid #000; box-shadow: inset 0 1px 3px rgba(0,0,0,.8); overflow: hidden; }
.mmeter canvas { width: 100%; height: 100%; display: block; }

/* ---------- Barra de herramientas ---------- */
.tbar { display: flex; align-items: center; gap: 14px; padding: 6px 12px; background: var(--s1); border-bottom: 1px solid var(--line2); overflow-x: auto; scrollbar-width: none; }
.tbar::-webkit-scrollbar { display: none; }
.tbar .tb { height: 30px; padding: 0 11px; }
.grp { display: flex; gap: 4px; align-items: center; flex: none; }
.grp.right { margin-left: auto; }
.seg { gap: 0; }
.seg .tb { border-radius: 0; margin-left: -1px; }
.seg .tb:first-child { border-radius: 6px 0 0 6px; margin-left: 0; }
.seg .tb:last-child { border-radius: 0 6px 6px 0; }
.sel { height: 30px; border-radius: 6px; border: 1px solid #0d0d0e; background: #2a2b2f; padding: 0 8px; font-size: 13px; }

/* ---------- Pistas ---------- */
.arrange { display: grid; grid-template-columns: var(--headW) 1fr; min-height: 0; position: relative; background: var(--lane); }
.heads { background: var(--s2); border-right: 1px solid var(--line2); display: flex; flex-direction: column; min-height: 0; position: relative; z-index: 2; }
.heads-top { height: 40px; flex: none; display: flex; align-items: center; justify-content: space-between; padding: 0 8px 0 12px; border-bottom: 1px solid var(--line2); background: var(--s1); font-size: 11.5px; text-transform: uppercase; letter-spacing: .1em; color: var(--fg3); }
.mini { width: 26px; height: 24px; border-radius: 5px; border: 1px solid #0d0d0e; background: linear-gradient(#3a3b3f, #2e2f33); color: var(--fg); font-size: 15px; line-height: 1; padding: 0; }
.heads-list { flex: 1; overflow: hidden; position: relative; }
.heads-inner { position: absolute; left: 0; right: 0; top: 0; will-change: transform; }
.th { position: relative; display: grid; grid-template-columns: 5px 1fr; border-bottom: 1px solid var(--line2); background: linear-gradient(90deg, #2a2b2f, #26272a); box-sizing: border-box; overflow: hidden; }
.th.cur { background: linear-gradient(90deg, #393a3f, #333439); }
.th .tcol { background: var(--tc); opacity: .9; }
.th .tmain { padding: 7px 8px 6px 9px; display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.th .trow { display: flex; align-items: center; gap: 5px; min-width: 0; }
.th .tbtns { display: flex; gap: 4px; flex: none; }
.th .tname { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: 13.5px; font-weight: 500; }
.th .tnum { font: 11px var(--num); color: var(--fg3); width: 16px; }
.th .tbtn { width: 25px; height: 21px; border-radius: 4px; border: 1px solid #0c0c0d; background: linear-gradient(#3b3c40, #303135); font: 600 11px var(--ui); color: var(--fg2); padding: 0; flex: none; }
.th .tbtn.m.on { background: var(--mute); color: #0e1418; }
.th .tbtn.s.on { background: var(--solo); color: #17140a; }
.th .tbtn.r.on { background: var(--rec); color: #fff; }
.th .tbtn.a.on { background: #b9b9bd; color: #111; }
.th .tvol { flex: 1; min-width: 40px; }
.th .tmeter { height: 4px; border-radius: 2px; background: #111214; overflow: hidden; position: relative; }
.th .tmeter i { position: absolute; left: 0; top: 0; bottom: 0; width: 0; background: linear-gradient(90deg, #4f9b5f 0%, #74b86f 70%, #d0b44a 88%, #d4524b 100%); background-size: var(--mw, 180px) 100%; }
.th .th-rz { position: absolute; left: 0; right: 0; bottom: -3px; height: 8px; cursor: ns-resize; touch-action: none; }
.th .tvolrow { flex: 1; display: flex; min-width: 0; }
.th.compact .tvolrow { display: none; }

input[type=range].rng { -webkit-appearance: none; appearance: none; height: 18px; background: transparent; width: 100%; margin: 0; touch-action: none; }
input[type=range].rng::-webkit-slider-runnable-track { height: 4px; border-radius: 2px; background: #121315; box-shadow: inset 0 1px 1px #000, 0 1px 0 #3a3b40; }
input[type=range].rng::-moz-range-track { height: 4px; border-radius: 2px; background: #121315; }
input[type=range].rng::-webkit-slider-thumb { -webkit-appearance: none; width: 14px; height: 14px; border-radius: 50%; margin-top: -5px; background: linear-gradient(#f0f0f2, #b8b8bc); border: 1px solid #000; box-shadow: 0 1px 2px rgba(0,0,0,.6); }
input[type=range].rng::-moz-range-thumb { width: 13px; height: 13px; border-radius: 50%; background: linear-gradient(#f0f0f2, #b8b8bc); border: 1px solid #000; }

.lanes { position: relative; min-width: 0; min-height: 0; overflow: hidden; touch-action: none; }
#tlCv { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.drop-hint { position: absolute; inset: 12px; border: 2px dashed #6b6c72; border-radius: 12px; display: grid; place-items: center; font-size: 18px; color: var(--fg2); background: rgba(0,0,0,.35); pointer-events: none; }
.empty { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -40%); width: min(520px, 90%); text-align: center; padding: 26px 24px; background: rgba(28,29,31,.94); border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 20px 50px rgba(0,0,0,.5); }
.empty .e1 { font-size: 17px; margin: 0 0 16px; font-weight: 500; }
.empty .e2 { font-size: 13px; color: var(--fg3); margin: 16px 0 0; }
.e-actions { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; }

/* ---------- Panel inferior ---------- */
.dock { background: var(--s2); border-top: 1px solid var(--line2); display: flex; flex-direction: column; min-height: 0; position: relative; }
.rz { position: absolute; left: 0; right: 0; top: -6px; height: 12px; cursor: ns-resize; z-index: 5; touch-action: none; display: grid; place-items: center; }
.rz i { width: 42px; height: 4px; border-radius: 2px; background: #4a4b50; opacity: .7; }
.dock-tabs { display: flex; align-items: center; gap: 2px; padding: 6px 10px 0; background: var(--s1); border-bottom: 1px solid var(--line2); flex: none; overflow-x: auto; scrollbar-width: none; }
.dt { height: 32px; padding: 0 14px; border: 1px solid transparent; border-bottom: none; border-radius: 7px 7px 0 0; background: none; color: var(--fg2); font-size: 13px; font-weight: 500; white-space: nowrap; }
.dt.on { background: var(--s2); color: #fff; border-color: var(--line2); position: relative; top: 1px; }
.dt:hover { color: #fff; }
.spacer { flex: 1; }
.dock-body { flex: 1; min-height: 0; overflow: auto; position: relative; }
#app.dock-hidden .dock-body { display: none; }

/* Mezclador */
.mixer { display: flex; height: 100%; min-height: 240px; }
.mix-strips { display: flex; overflow-x: auto; flex: 1; }
.strip { width: 92px; flex: none; border-right: 1px solid var(--line2); display: flex; flex-direction: column; align-items: stretch; padding: 6px 6px 8px; gap: 5px; background: linear-gradient(#26272a, #212225); box-sizing: border-box; }
.strip.cur { background: linear-gradient(#303136, #29292d); }
.strip.master { background: linear-gradient(#2c2c30, #242427); border-left: 1px solid var(--line2); width: 108px; }
.strip > * { flex-shrink: 0; }
.strip > .fader-wrap { flex: 1 1 auto; flex-shrink: 1; min-height: 60px; }
.strip .ins { display: flex; flex-direction: column; gap: 2px; }
.slot { height: 22px; border-radius: 4px; border: 1px solid #0c0c0d; background: #1a1b1d; color: var(--fg2); font-size: 11.5px; padding: 0 5px; text-align: left; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.slot.fx { background: linear-gradient(#4a4b51, #3c3d42); color: #f0f0f2; }
.slot.fx.off { background: #2a2b2f; color: var(--fg3); text-decoration: line-through; }
.slot.add { color: var(--fg3); text-align: center; }
.knob { width: 34px; height: 34px; margin: 2px auto 0; border-radius: 50%; background: radial-gradient(circle at 50% 35%, #55565b, #2b2c30 70%); border: 1px solid #000; box-shadow: 0 2px 3px rgba(0,0,0,.6), inset 0 1px 0 rgba(255,255,255,.12); position: relative; touch-action: none; cursor: ns-resize; }
.knob::after { content: ""; position: absolute; left: 50%; top: 4px; width: 2px; height: 12px; margin-left: -1px; background: #eee; border-radius: 1px; transform-origin: 50% 13px; transform: rotate(var(--rot, 0deg)); }
.kval { text-align: center; font: 11px var(--num); color: var(--fg2); }
.fader-wrap { flex: 1; display: grid; grid-template-columns: 1fr 14px; gap: 4px; min-height: 90px; }
.fader { position: relative; touch-action: none; cursor: ns-resize; }
.fader .ftrack { position: absolute; left: 50%; top: 8px; bottom: 8px; width: 4px; margin-left: -2px; background: #0e0f10; border-radius: 2px; box-shadow: inset 0 1px 1px #000, 1px 0 0 #3a3b40; }
.fader .fcap { position: absolute; left: 50%; width: 30px; height: 16px; margin: -8px 0 0 -15px; border-radius: 3px; background: linear-gradient(#d8d8db, #9fa0a4 45%, #bcbcc0 55%, #8e8f93); border: 1px solid #000; box-shadow: 0 2px 4px rgba(0,0,0,.6); }
.fader .fcap::after { content: ""; position: absolute; left: 3px; right: 3px; top: 7px; height: 1px; background: #222; }
.fader .ftick { position: absolute; right: 0; width: 6px; height: 1px; background: #4a4b50; }
.smeter { background: #0b0c0d; border-radius: 3px; border: 1px solid #000; overflow: hidden; position: relative; }
.smeter canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.strip .vval { text-align: center; font: 12px var(--num); color: #e8e8ea; background: #0f1011; border-radius: 4px; padding: 2px 0; border: 1px solid #000; }
.strip .ms { display: flex; gap: 3px; justify-content: center; }
.strip .ms .tbtn { width: 28px; height: 22px; border-radius: 4px; border: 1px solid #0c0c0d; background: linear-gradient(#3b3c40, #303135); font: 600 11px var(--ui); color: var(--fg2); padding: 0; }
.strip .ms .tbtn.m.on { background: var(--mute); color: #0e1418; }
.strip .ms .tbtn.s.on { background: var(--solo); color: #17140a; }
.strip .sname { text-align: center; font-size: 12px; padding: 4px 2px; border-radius: 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; background: #141516; border-top: 3px solid var(--tc, #555); }

/* Paneles con formularios */
.pane { padding: 14px 16px 20px; display: flex; flex-direction: column; gap: 14px; }
.card h3, .pane h3 { margin: 0; font-size: 12px; text-transform: uppercase; letter-spacing: .12em; color: var(--fg3); font-weight: 600; }
.pane-row { display: flex; gap: 18px; flex-wrap: wrap; align-items: flex-start; }
.card { background: #1d1e21; border: 1px solid var(--line2); border-radius: 10px; padding: 12px 14px; display: flex; flex-direction: column; gap: 10px; min-width: 0; box-shadow: inset 0 1px 0 rgba(255,255,255,.03); }
.card.grow { flex: 1 1 320px; }
.prm { display: grid; grid-template-columns: minmax(110px, 150px) 1fr 74px; gap: 10px; align-items: center; }
.prm label { font-size: 13px; color: var(--fg2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.prm .pv { font: 12.5px var(--num); color: var(--fg); text-align: right; background: #111214; border: 1px solid #000; border-radius: 4px; padding: 3px 6px; font-variant-numeric: tabular-nums; }
.prm .pv input { width: 100%; background: none; border: 0; text-align: right; font: inherit; padding: 0; }
.chk { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: var(--fg2); cursor: pointer; }
.chk input { width: 18px; height: 18px; accent-color: #d6d6d9; }
.btns { display: flex; gap: 6px; flex-wrap: wrap; }
.btns .tb { height: 32px; }
.hint { font-size: 12.5px; color: var(--fg3); margin: 0; max-width: 70ch; }
.inp { height: 34px; border-radius: 6px; border: 1px solid #000; background: #111214; padding: 0 10px; font-size: 14px; width: 100%; box-sizing: border-box; }
.kv { display: grid; grid-template-columns: auto 1fr; gap: 4px 14px; font-size: 13px; }
.kv dt { color: var(--fg3); }
.kv dd { margin: 0; font-family: var(--num); }

/* Efectos */
.fxlayout { display: grid; grid-template-columns: 220px 1fr; height: 100%; min-height: 0; }
.fxside { border-right: 1px solid var(--line2); padding: 12px; display: flex; flex-direction: column; gap: 8px; overflow: auto; background: #1e1f22; }
.fxside .target { font-size: 12px; color: var(--fg3); text-transform: uppercase; letter-spacing: .1em; }
.fxlist { display: flex; flex-direction: column; gap: 4px; }
.fxi { display: flex; align-items: center; gap: 6px; padding: 6px 8px; border-radius: 6px; border: 1px solid #0c0c0d; background: #2a2b2f; font-size: 13px; }
.fxi.on-sel { background: #45464c; color: #fff; }
.fxi .pw { width: 18px; height: 18px; border-radius: 50%; border: 1px solid #000; background: #1a1a1c; flex: none; padding: 0; }
.fxi .pw.on { background: radial-gradient(circle, #e9e9ec 30%, #9d9ea3); }
.fxi .nm { flex: 1; cursor: pointer; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fxmain { overflow: auto; padding: 14px 16px; display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.fxhead { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.fxhead h2 { margin: 0 8px 0 0; font-size: 17px; font-weight: 600; }
.eqcv { width: 100%; height: 160px; background: #0d0e0f; border: 1px solid #000; border-radius: 8px; display: block; touch-action: none; }
.grm { height: 8px; border-radius: 4px; background: #0d0e0f; border: 1px solid #000; position: relative; overflow: hidden; }
.grm i { position: absolute; right: 0; top: 0; bottom: 0; background: #c8a24b; width: 0; }
.fxgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); gap: 8px 22px; }

/* Análisis */
.ana { display: grid; grid-template-columns: 1fr 230px 280px; gap: 12px; padding: 12px; height: 100%; box-sizing: border-box; min-height: 230px; }
.ana canvas { width: 100%; height: 100%; display: block; background: #0b0c0d; border-radius: 8px; border: 1px solid #000; }
.ana .box { position: relative; min-height: 180px; display: flex; flex-direction: column; gap: 6px; }
.ana .box > span { font-size: 11px; text-transform: uppercase; letter-spacing: .12em; color: var(--fg3); }
.ana .box > .cvw { flex: 1; min-height: 0; position: relative; }
.ana .box > .cvw canvas { position: absolute; inset: 0; }
.lufs-big { font: 500 34px/1 var(--num); color: #fff; }
.lufs-big small { font-size: 14px; color: var(--fg3); margin-left: 4px; }

/* Ventanas */
.modal-wrap { position: fixed; inset: 0; background: rgba(0,0,0,.6); display: grid; place-items: center; z-index: 50; padding: 16px; padding-top: max(16px, env(safe-area-inset-top, 0px)); }
.modal { width: min(680px, 100%); max-height: calc(100% - 20px); overflow: auto; background: #212225; border: 1px solid #000; border-radius: 14px; box-shadow: 0 30px 80px rgba(0,0,0,.7), inset 0 1px 0 rgba(255,255,255,.05); display: flex; flex-direction: column; }
.modal.small { width: min(420px, 100%); padding: 20px; gap: 14px; }
.modal-head { display: flex; align-items: center; gap: 10px; padding: 14px 18px; border-bottom: 1px solid var(--line2); position: sticky; top: 0; background: #212225; z-index: 1; }
.modal-head h2 { margin: 0; font-size: 17px; font-weight: 600; flex: 1; }
.modal-body { padding: 16px 18px 20px; display: flex; flex-direction: column; gap: 14px; }
.modal-text { margin: 0; font-size: 15px; }
.modal-actions { display: flex; gap: 8px; justify-content: flex-end; }
.btn { height: 36px; padding: 0 16px; border-radius: 8px; border: 1px solid #0d0d0e; background: linear-gradient(#3e3f44, #303135); color: var(--fg); font-size: 14px; font-weight: 500; }
.btn.primary { background: linear-gradient(#ececee, #c9c9cd); color: #141416; font-weight: 600; }
.btn.danger { background: linear-gradient(#b8443e, #8e2f2a); color: #fff; }
.choices { display: flex; gap: 6px; flex-wrap: wrap; }
.choice { padding: 8px 12px; border-radius: 8px; border: 1px solid #0c0c0d; background: #2b2c30; font-size: 13.5px; color: var(--fg2); text-align: left; }
.choice.on { background: #e6e6e8; color: #141416; }
.choice small { display: block; font-size: 11.5px; opacity: .75; margin-top: 2px; }
.field { display: flex; flex-direction: column; gap: 7px; }
.field > label, .field > span { font-size: 12px; text-transform: uppercase; letter-spacing: .1em; color: var(--fg3); }
.plist { display: flex; flex-direction: column; gap: 6px; }
.pitem { display: grid; grid-template-columns: 1fr auto; gap: 8px; align-items: center; padding: 10px 12px; border-radius: 9px; background: #191a1c; border: 1px solid #0c0c0d; }
.pitem.cur { border-color: #6b6c72; }
.pitem .pn { font-weight: 500; font-size: 14.5px; }
.pitem .pm { font-size: 12.5px; color: var(--fg3); }
.pitem .pa { display: flex; gap: 5px; flex-wrap: wrap; justify-content: flex-end; }
.pitem .pa .tb { height: 30px; padding: 0 10px; }
.shortcuts { display: grid; grid-template-columns: auto 1fr; gap: 6px 16px; font-size: 13.5px; }
.shortcuts kbd { font: 12px var(--num); background: #111214; border: 1px solid #000; border-bottom-width: 2px; border-radius: 4px; padding: 2px 6px; color: #e8e8ea; white-space: nowrap; }

/* Menú contextual */
.ctx { position: fixed; z-index: 60; min-width: 200px; background: rgba(36,37,40,.98); border: 1px solid #000; border-radius: 9px; padding: 5px; box-shadow: 0 14px 40px rgba(0,0,0,.6); display: flex; flex-direction: column; }
.ctx button { text-align: left; background: none; border: 0; padding: 8px 12px; border-radius: 6px; font-size: 13.5px; color: var(--fg); display: flex; justify-content: space-between; gap: 18px; }
.ctx button:hover { background: #4a4b51; }
.ctx button small { color: var(--fg3); font-family: var(--num); }
.ctx hr { border: 0; border-top: 1px solid #3a3b40; margin: 4px 6px; }

.toast { position: fixed; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom, 0px)); transform: translate(-50%, 20px); background: rgba(240,240,242,.96); color: #121214; padding: 10px 16px; border-radius: 10px; font-size: 14px; font-weight: 500; opacity: 0; pointer-events: none; transition: .2s; z-index: 80; box-shadow: 0 10px 30px rgba(0,0,0,.5); max-width: 90vw; text-align: center; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.busy { position: fixed; inset: 0; background: rgba(0,0,0,.55); display: grid; place-items: center; z-index: 90; }
.busy-box { width: min(360px, 86vw); background: #222326; border: 1px solid #000; border-radius: 12px; padding: 18px; display: flex; flex-direction: column; gap: 12px; }
.busy-t { font-size: 15px; }
.bar { height: 6px; border-radius: 3px; background: #0d0e0f; overflow: hidden; }
.bar i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, #cfcfd3, #fff); transition: width .15s; }

/* ---------- Pantallas estrechas (iPad vertical / móvil) ---------- */
@media (max-width: 1280px) {
  .brand b, .brand small { display: none; }
  .cb-left .tb, .cb-right .tb { padding: 0 9px; }
}
@media (max-width: 1100px) {
  .cb-mid { order: 3; width: 100%; justify-content: center; }
}
@media (max-width: 900px) {
  :root { --headW: 160px; }
  .lcd-main { min-width: 112px; padding: 0 8px; }
  .lcd-main b { font-size: 18px; }
  .ana { grid-template-columns: 1fr 1fr; }
  .ana .box.lufs { grid-column: 1 / -1; }
  .fxlayout { grid-template-columns: 1fr; }
  .fxside { border-right: 0; border-bottom: 1px solid var(--line2); max-height: 170px; }
}
@media (max-width: 640px) {
  :root { --headW: 128px; --dockH: 260px; }
  .cbar { gap: 8px; }
  .cb-mid { order: 3; width: 100%; justify-content: center; }
  .brand b, .brand small { display: none; }
  .tr { width: 36px; }
  .prm { grid-template-columns: 100px 1fr 64px; }
  .mmeter { width: 70px; }
}
@media (prefers-reduced-motion: reduce) { .tr.rec.on { animation: none; } .toast { transition: none; } }

/* ---------- Sonidos ---------- */
.snd { display: flex; flex-direction: column; height: 100%; min-height: 0; }
.snd-nav { display: flex; gap: 4px; padding: 8px 12px; border-bottom: 1px solid var(--line2); background: #1e1f22; overflow-x: auto; scrollbar-width: none; flex: none; }
.snd-tab { height: 30px; padding: 0 12px; border-radius: 15px; border: 1px solid #0c0c0d; background: #2a2b2f; color: var(--fg2); font-size: 13px; white-space: nowrap; }
.snd-tab.on { background: #e6e6e8; color: #141416; font-weight: 600; }
.snd-box { flex: 1; min-height: 0; overflow: auto; padding: 12px; }
.snd-split { display: grid; grid-template-columns: 230px 1fr; gap: 12px; align-items: start; }
.snd-list { display: flex; flex-direction: column; gap: 2px; background: #1b1c1f; border: 1px solid var(--line2); border-radius: 10px; padding: 8px; max-height: 100%; }
.snd-group { font-size: 11px; text-transform: uppercase; letter-spacing: .1em; color: var(--fg3); padding: 8px 8px 4px; }
.snd-item { text-align: left; border: 0; background: none; padding: 7px 10px; border-radius: 6px; font-size: 13.5px; color: var(--fg); }
.snd-item:hover { background: #2b2c30; }
.snd-item.on { background: #47484e; color: #fff; }
.snd-actions { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; padding-top: 6px; border-top: 1px solid #2b2c30; }
.snd-keys { display: flex; flex-wrap: wrap; gap: 4px; }
.snd-key { min-width: 50px; height: 44px; border-radius: 6px; border: 1px solid #000; background: linear-gradient(#f0f0f2, #c8c8cc); color: #141416; font: 600 12px var(--ui); touch-action: manipulation; }
.snd-key:active { background: #9c9da2; }
.snd-pads { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 6px; }
.snd-pad { display: flex; gap: 4px; }
.snd-pad-play { flex: 1; height: 54px; border-radius: 8px; border: 1px solid #000; background: linear-gradient(#45464c, #34353a); color: #f2f2f4; font-size: 13px; text-transform: capitalize; touch-action: manipulation; box-shadow: inset 0 1px 0 rgba(255,255,255,.08); }
.snd-pad-play:active { background: #6a6b72; }
.snd-pad .mini { height: 54px; width: 32px; }
.fs-chips { display: flex; flex-wrap: wrap; gap: 5px; align-items: center; }
.fs-g { font-size: 11px; text-transform: uppercase; letter-spacing: .1em; color: var(--fg3); margin: 6px 4px 0 6px; width: 100%; }
.fs-chip { height: 28px; padding: 0 11px; border-radius: 14px; border: 1px solid #0c0c0d; background: #2a2b2f; color: var(--fg); font-size: 12.5px; }
.fs-chip:hover { background: #3a3b40; }
.steps { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 4px; color: var(--fg2); }
@media (max-width: 900px) { .snd-split { grid-template-columns: 1fr; } .snd-list { flex-direction: row; flex-wrap: wrap; } .snd-group { width: 100%; } }
