/* PIXXUNE — app-specific bits on top of ../shared/pixx.css (jade accent from [data-app=pixxune]) */
.pxs-ws { --left-w: 290px; --right-w: 300px; }
.pxs-app .full { width: 100%; max-width: none; }
.pxs-app .grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 6px 0; }
.pxs-app .field.col { flex-direction: column; align-items: stretch; gap: 4px; }
.pxs-app .field.col > span { font-size: 11px; }
.pxs-app .sm { font-size: 11.5px; }
.pxs-app .good { color: #6ee7a0; } .pxs-app .bad { color: #ff9aa9; }
.pxs-app .col { display: flex; flex-direction: column; gap: 4px; }
.pxs-app .pnl-body .lbl { margin: 10px 0 6px; }
.pxs-app .pnl-body .lbl:first-child { margin-top: 0; }
.playbtn { min-width: 86px; }
.playbtn.on, .pxs-app .ibtn.on { background: rgba(var(--acc-rgb), .28); border-color: var(--acc); color: #fff; }
.readout { font: 500 11.5px var(--mono); color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.readout b { color: var(--text); }
/* stage */
.pxs-stage { display: flex; flex-direction: column; min-width: 0; min-height: 0; }
.viewtabs { display: flex; gap: 4px; padding: 10px 14px 0; flex: none; }
.pxs-app .viewtab { height: 34px; padding: 0 16px; border-radius: 10px 10px 0 0; border: 1px solid var(--line); border-bottom: 0; color: var(--muted); font-size: 12.5px; font-weight: 600; background: rgba(255,255,255,.02); }
.pxs-app .viewtab:hover { color: #fff; }
.pxs-app .viewtab.on { color: #fff; background: rgba(var(--acc-rgb), .16); border-color: rgba(var(--acc-rgb), .55); }
.pane { flex: 1 1 auto; min-height: 0; display: flex; flex-direction: column; margin: 0 14px 12px; border: 1px solid var(--line); border-radius: 0 14px 14px 14px; background:
  radial-gradient(800px 300px at 30% 0%, rgba(var(--acc-rgb), .06), transparent 70%), rgba(8,14,12,.6); overflow: hidden; }
.pane.hidden { display: none; }
.trackhead { display: flex; flex: none; overflow: hidden; border-bottom: 1px solid var(--line); background: rgba(0,0,0,.25); }
.trackhead .th-num { flex: none; }
.trackhead .th-ch { flex: none; display: flex; align-items: center; gap: 2px; height: 32px; padding: 0 4px 0 8px; border-left: 1px solid rgba(255,255,255,.08); box-sizing: border-box; }
.trackhead .th-ch b { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 11.5px; color: #cfe3d6; cursor: pointer; }
.trackhead .th-ch.on { background: rgba(var(--acc-rgb), .16); }
.trackhead .th-ch.on b { color: #fff; }
.pxs-app .lb { width: 24px; height: 24px; border-radius: 7px; font: 700 10.5px var(--mono); color: var(--muted); flex: none; }
.pxs-app .lb:hover { background: rgba(255,255,255,.08); color: #fff; }
.pxs-app .lb.on { background: var(--acc); color: var(--on-acc); }
.trackwrap, .pianowrap { flex: 1 1 auto; min-height: 0; overflow: auto; }
#tracker, #piano { display: block; outline: none; cursor: text; touch-action: none; }
#piano { cursor: crosshair; }
.pianohead { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 8px 10px; border-bottom: 1px solid var(--line); flex: none; }
/* mixer */
.mixer { flex: 1 1 auto; min-height: 0; overflow: auto; display: flex; gap: 12px; padding: 12px; align-items: flex-start; }
.strips { display: flex; gap: 10px; flex-wrap: wrap; flex: 1 1 auto; min-width: 0; align-content: flex-start; }
.strip { width: 170px; flex: none; display: flex; flex-direction: column; gap: 6px; padding: 10px; border: 1px solid var(--line2); border-radius: 14px; background: rgba(255,255,255,.025); }
.strip.muted { opacity: .55; }
.strip-head { display: flex; align-items: center; gap: 4px; }
.strip-head .text { flex: 1; min-width: 0; }
.strip.master { width: 250px; border-color: rgba(var(--acc-rgb), .5); background: rgba(var(--acc-rgb), .07); position: sticky; top: 0; }
.strip.addstrip { border-style: dashed; }
.strip.addstrip .btn { justify-content: flex-start; }
/* generator */
.moodgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(78px, 1fr)); gap: 5px; }
.pxs-app .mood { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; min-height: 54px; padding: 6px 3px; border-radius: 11px; border: 1px solid var(--line2); background: rgba(255,255,255,.03); font-size: 10.5px; font-weight: 600; text-align: center; line-height: 1.15; transition: transform .1s, border-color .12s; }
.pxs-app .mood .mi { font-size: 18px; line-height: 1; }
.pxs-app .mood:hover { border-color: rgba(var(--acc-rgb), .6); transform: translateY(-1px); }
.pxs-app .mood.on { border-color: var(--acc); background: rgba(var(--acc-rgb), .18); color: #fff; }
#genBtn { margin-top: 10px; height: 42px; font-size: 14px; }
/* order list */
.orderlist { display: flex; flex-direction: column; gap: 3px; max-height: 260px; overflow: auto; }
.orow { display: flex; align-items: center; gap: 6px; padding: 3px 4px 3px 8px; border-radius: 9px; border: 1px solid transparent; cursor: pointer; }
.orow:hover { background: rgba(255,255,255,.04); }
.orow.on { border-color: rgba(var(--acc-rgb), .7); background: rgba(var(--acc-rgb), .12); }
.orow.playing .onum { color: var(--acc); }
.orow .onum { font: 600 11px var(--mono); color: var(--muted); width: 20px; }
.orow .sel { flex: 1; height: 28px; }
/* instrument editor */
.waveseg { width: 100%; margin: 8px 0; }
.waveseg button { flex: 1 1 22%; justify-content: center; text-transform: capitalize; }
canvas.wtable { width: 100%; height: auto; aspect-ratio: 256 / 96; display: block; border-radius: 10px; border: 1px solid var(--line2); background: rgba(0,0,0,.3); touch-action: none; cursor: crosshair; margin-bottom: 6px; }
.fxref { width: 100%; border-collapse: collapse; font-size: 11.5px; }
.fxref td { padding: 3px 4px; vertical-align: top; border-bottom: 1px solid rgba(255,255,255,.05); color: #c9d4ce; }
.fxref code { font: 600 11px var(--mono); color: #ffcf85; white-space: nowrap; }
.footbar { gap: 16px; }
body.dragover::after { content: 'Drop a song .json, a MIDI file, a .wav or a .pxasset'; position: fixed; inset: 10px; display: flex; align-items: center; justify-content: center; border: 2px dashed var(--acc); border-radius: 18px; background: rgba(var(--acc-rgb), .08); font-size: 16px; font-weight: 700; z-index: 50; pointer-events: none; }
@media (max-width: 1280px) { .pxs-ws { --left-w: 260px; --right-w: 270px; } .optionsbar .tb-wide.sl { display: none; } }
@media (max-width: 1100px) { .optionsbar .tb-wide { display: none !important; } }
@media (max-width: 760px) {
  #exportBtn > span:not(.ico) { display: none; } #exportBtn { padding: 0 9px; }
  .viewtabs { padding: 8px 10px 0; } .pxs-app .viewtab { flex: 1; height: 40px; padding: 0 8px; }
  .pane { margin: 0 10px 10px; }
  .optionsbar .readout { display: none; }
  .pxs-app .lb { width: 32px; height: 32px; }
  .strip, .strip.master { width: 100%; position: static; }
  .mixer { flex-direction: column; } .strips { width: 100%; }
  .pxs-app .mood { min-height: 60px; }
  .orow .sel { height: 36px; }
}
/* mixer sliders: narrower label column inside the strips */
.pxs-app .strip .sl.full { grid-template-columns: 52px minmax(0, 1fr) 40px; gap: 6px; }
.pxs-app .strip.master .sl.full { grid-template-columns: 92px minmax(0, 1fr) 52px; }
.strip { width: 196px; }
.pxs-app .strip .sl-val { text-align: right; font-size: 10.5px; }
@media (max-width: 760px) { .optionsbar .field:has(#instSel) { display: none; } }
/* ---------- Simplified workspace (html.pxs-simple, PIXX.workspace): piano roll only, finger-sized tabs + toggles; JS marks the advanced bits .adv ---------- */
html.pxs-simple .pxs-app .viewtab { height: var(--touch); }
html.pxs-simple .pxs-app label.field { min-height: var(--touch); }
html.pxs-simple .pxs-app .lb { width: var(--touch); height: var(--touch); }
html.pxs-simple #genBtn { height: 48px; }
.wsmore { margin: 4px 14px 14px; }
