/* PIXXIBU — app-specific bits on top of ../shared/pixx.css (electric purple accent from [data-app=pixxibu]) */
.pxs-ws { --left-w: 250px; --right-w: 330px; }
.wavewrap { position: relative; flex: 1 1 auto; min-height: 0; margin: 14px 14px 0; border-radius: 18px; border: 1px solid var(--line); background:
  radial-gradient(600px 240px at 50% 50%, rgba(var(--acc-rgb), .07), transparent 70%), rgba(10,10,18,.55); overflow: hidden; }
#wave { position: absolute; left: 0; top: 0; width: 100%; height: 100%; display: block; cursor: pointer; touch-action: manipulation; }
.hintpill { right: 24px; top: 24px; padding: 5px 11px; font-size: 11px; color: var(--muted); pointer-events: none; }
.layerstrip { display: flex; flex-wrap: wrap; gap: 8px; padding: 12px 14px 14px; }
.layer { display: inline-flex; align-items: center; gap: 4px; height: 34px; padding: 0 6px 0 12px; border-radius: 11px; border: 1px solid var(--line2) !important; background: rgba(255,255,255,.03) !important; cursor: pointer; font-size: 12px; color: #d6d6e6; }
.layer:hover { border-color: rgba(var(--acc-rgb), .55) !important; }
.layer.on { border-color: var(--acc) !important; background: rgba(var(--acc-rgb), .16) !important; color: #fff; }
.layer.muted .ln { opacity: .45; text-decoration: line-through; }
.layer.add { padding: 0 12px; color: var(--muted); border-style: dashed !important; gap: 6px; }
.layer .ln { margin-right: 4px; white-space: nowrap; }
.layer .lb { width: 24px; height: 24px; border-radius: 7px; font: 700 10.5px var(--mono); color: var(--muted); }
.layer .lb:hover { background: rgba(255,255,255,.08); color: #fff; }
.layer .lb.on { background: var(--acc); color: var(--on-acc); }
.playbtn { min-width: 84px; }
.playbtn.on { background: rgba(var(--acc-rgb), .28); border-color: var(--acc); }
.readout { font: 500 11.5px var(--mono); color: var(--muted); white-space: nowrap; }
.readout b { color: var(--text); }
.presetgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 6px; }
.preset { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; min-height: 62px; padding: 8px 4px; border-radius: 12px; border: 1px solid var(--line2) !important; background: rgba(255,255,255,.03) !important; font-size: 11.5px; font-weight: 600; text-align: center; line-height: 1.2; transition: transform .1s, border-color .12s; }
.preset .pi { font-size: 20px; line-height: 1; }
.preset:hover { border-color: rgba(var(--acc-rgb), .6) !important; transform: translateY(-1px); }
.preset.on { border-color: var(--acc) !important; background: rgba(var(--acc-rgb), .16) !important; }
.history { display: flex; flex-direction: column; gap: 4px; }
.histitem { display: flex; align-items: center; gap: 8px; padding: 5px 8px !important; border-radius: 9px; text-align: left; border: 1px solid transparent !important; }
.histitem:hover { background: rgba(255,255,255,.04) !important; border-color: var(--line2) !important; }
.histitem .hn { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font: 500 11.5px var(--mono); color: #d0d0e0; }
.histitem .mini { width: 96px; height: 24px; flex: none; }
.waveseg { margin-bottom: 8px; width: 100%; }
.waveseg button { flex: 1 1 30%; justify-content: center; text-transform: capitalize; }
.waveseg .wi { display: inline-flex; }
body.dragover::after { content: 'Drop a .json, .wav or .pxasset sound'; 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; }
.footbar { display: flex; align-items: center; gap: 14px; padding: 6px 14px; font: 500 11.5px var(--mono); color: var(--muted); white-space: nowrap; overflow: hidden; }
.footbar b { color: var(--text); font-weight: 600; }
.only-phone { display: none !important; }
@media (max-width: 1100px) { .pxs-app .hintpill { display: none; } }
@media (max-width: 760px) {
  .footbar { display: none; } .tb-wide { display: none !important; } .only-phone { display: inline-flex !important; }
  #exportBtn > span:not(.ico) { display: none; } #exportBtn { padding: 0 9px; }
  .wavewrap { margin: 10px 10px 0; } .layerstrip { padding: 10px; }
}
