/* PIXXOMO — app-specific bits on top of ../shared/pixx.css (pink accent from [data-app=pixxomo]) */
.pxs-ws { --left-w: 280px; --right-w: 320px; }
.pxs-shell { grid-template-rows: 52px auto minmax(0, 1fr) auto; }
#view { position: absolute; left: 0; top: 0; width: 100%; height: 100%; display: block; touch-action: none; cursor: grab; }
#view.panning { cursor: grabbing; }
#view[data-tool=rect], #view[data-tool=lasso], #view[data-tool=wand], #view[data-tool=range], #view[data-tool=pick] { cursor: crosshair; }
.stage-empty { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; padding: 20px; z-index: 1; }
.stage-empty .dropzone .row { justify-content: center; }
.stage-empty .dropzone p { max-width: 460px; }
.zoompill { left: 12px; bottom: 12px; }
.zoompill .zl { min-width: 54px; text-align: center; font: 600 12px var(--mono); }
.framepill { left: 50%; transform: translateX(-50%); bottom: 12px; }
.framepill .fpn { min-width: 64px; text-align: center; font: 600 12px var(--mono); }
.splitlbl { position: absolute; top: 12px; padding: 3px 9px; border-radius: 999px; background: rgba(13,14,21,.8); border: 1px solid var(--line2); font-size: 11px; font-weight: 700; color: var(--muted); pointer-events: none; z-index: 1; }
.splitlbl.l { left: 12px; } .splitlbl.r { right: 12px; color: var(--acc); }
.dragover::after { content: 'Drop to recolour'; position: absolute; 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: 5; }
.seg.tools .tg { font-size: 14px; line-height: 1; }

/* panels */
.pnl-head .pnl-tools { margin-left: auto; }
.pnl-head h3 { flex: none; }
.layers { display: flex; flex-direction: column; gap: 3px; margin-bottom: 8px; }
.layer { display: flex; align-items: center; gap: 7px; padding: 6px 8px; border-radius: 10px; border: 1px solid var(--line); background: rgba(255,255,255,.025); cursor: pointer; user-select: none; min-height: 36px; }
.layer:hover { border-color: rgba(var(--acc-rgb), .4); }
.layer.on { border-color: var(--acc); background: rgba(var(--acc-rgb), .14); }
.layer.off .lay-name, .layer.off .lay-ic { opacity: .45; }
.layer.dragging { opacity: .4; } .layer.dropto { box-shadow: 0 -2px 0 var(--acc); }
.lay-eye, .lay-lock { width: 22px; height: 22px; border-radius: 6px; color: var(--muted); font-size: 13px; flex: none; }
.lay-eye:hover, .lay-lock:hover { background: rgba(255,255,255,.07); color: #fff; }
.lay-lock { font-size: 11px; opacity: .55; } .lay-lock.on { opacity: 1; }
.lay-ic { width: 20px; text-align: center; color: var(--acc); font-size: 14px; flex: none; }
.lay-name { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-weight: 600; }
.lay-mask { color: var(--acc2); font-size: 12px; } .lay-op { color: var(--muted); font: 600 10.5px var(--mono); }
.layer-actions .btn.sm { padding: 0 8px; }
.selsets { display: flex; flex-direction: column; gap: 4px; margin-top: 8px; }
.selset { display: flex; align-items: center; gap: 4px; }
.grid4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.grid4 .field.col { margin-bottom: 4px; } .grid4 .num { width: 100%; }
.maskrow { margin: 0 0 6px; }
.maskrow .muted { margin-right: auto; }

/* swatches */
.palrow { display: grid; grid-template-columns: repeat(auto-fill, minmax(22px, 1fr)); gap: 3px; margin: 6px 0; }
.palrow i { aspect-ratio: 1; border-radius: 5px; border: 1px solid rgba(0,0,0,.4); box-shadow: inset 0 0 0 1px rgba(255,255,255,.06); cursor: pointer; position: relative; overflow: hidden; }
.palrow i:hover { transform: scale(1.12); z-index: 1; box-shadow: 0 0 0 2px #fff; }
.swatchgrid i b { position: absolute; left: 0; right: 0; bottom: 0; height: 38%; border-top: 1px solid rgba(0,0,0,.45); }
.swatchgrid i.picked { box-shadow: 0 0 0 2px var(--acc); }
.swatchgrid i.cur { box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--acc); z-index: 1; }
.swedit { margin: 8px 0; padding: 10px; border-radius: 12px; border: 1px solid var(--line2); background: rgba(var(--acc-rgb), .06); display: flex; flex-direction: column; gap: 8px; }
.sw { display: inline-block; width: 26px; height: 26px; border-radius: 7px; border: 1px solid rgba(0,0,0,.4); box-shadow: inset 0 0 0 1px rgba(255,255,255,.08); flex: none; cursor: pointer; }
.sw.big { width: 34px; height: 34px; }
.arrow { color: var(--muted); font-weight: 700; }
.pairs { display: flex; flex-direction: column; gap: 6px; }
.pair { display: flex; align-items: center; gap: 6px; }
.pair .sl input[type=range] { width: 70px; }
.ramp { padding: 8px; border-radius: 10px; border: 1px solid var(--line); margin-bottom: 6px; }
.rampsw { display: flex; gap: 2px; } .rampsw i { width: 16px; height: 16px; border-radius: 4px; border: 1px solid rgba(0,0,0,.4); }
.huebar { height: 10px; border-radius: 5px; margin: 6px 0; background: linear-gradient(90deg, #f00, #ff0, #0f0, #0ff, #00f, #f0f, #f00); position: relative; }
.gradbar { height: 18px; border-radius: 6px; border: 1px solid var(--line2); margin: 4px 0 8px; }
.stops { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-bottom: 8px; }
.stop { display: inline-flex; align-items: center; }
canvas.hist { width: 100%; height: 60px; background: rgba(0,0,0,.25); border-radius: 8px; margin: 6px 0; display: block; }
canvas.curve { width: 100%; max-width: 260px; aspect-ratio: 1; background: rgba(0,0,0,.3); border-radius: 10px; border: 1px solid var(--line2); display: block; margin: 8px 0; touch-action: none; cursor: crosshair; }

/* footer: variants strip + info */
.pxs-foot { display: flex; flex-direction: column; }
.vbar { display: flex; align-items: center; gap: 8px; padding: 6px 12px; border-bottom: 1px solid var(--line); min-height: 54px; }
.vlabel { font-weight: 700; font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: var(--dim); flex: none; }
.vstrip { display: flex; gap: 6px; overflow-x: auto; flex: 1; min-width: 0; scrollbar-width: thin; }
.vcard { position: relative; flex: none; }
.vthumb { display: flex; align-items: center; gap: 6px; height: 42px; padding: 3px 10px 3px 3px; border-radius: 10px; border: 1px solid var(--line2) !important; background: rgba(255,255,255,.03) !important; font-size: 12px; max-width: 170px; }
.vthumb:hover { border-color: var(--acc) !important; }
.vthumb img { height: 34px; width: 34px; object-fit: contain; image-rendering: pixelated; border-radius: 7px; background: repeating-conic-gradient(#221a28 0 25%, #2a2131 0 50%) 0 0 / 8px 8px; }
.vthumb span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.vdel { position: absolute; top: -5px; right: -5px; width: 16px; height: 16px; border-radius: 50%; background: var(--bad) !important; color: #fff; font: 700 10px/16px var(--font); display: none; }
.vcard:hover .vdel { display: block; }
.footbar { display: flex; align-items: center; gap: 14px; padding: 5px 14px; font: 500 11.5px var(--mono); color: var(--muted); white-space: nowrap; overflow: hidden; }
.footbar b { color: var(--text); font-weight: 600; }
.export-prev { display: flex; align-items: center; justify-content: center; min-height: 160px; max-height: 40vh; overflow: auto; border-radius: 14px; background: repeating-conic-gradient(#221a28 0 25%, #2a2131 0 50%) 0 0 / 16px 16px; border: 1px solid var(--line); padding: 10px; }
.export-prev canvas { image-rendering: pixelated; max-width: 100%; }
.only-phone { display: none !important; }
.mbi { font-size: 18px; line-height: 20px; }
@media (max-width: 1100px) { .pxs-ws { --left-w: 240px; --right-w: 280px; } }
@media (max-width: 760px) {
  .splitlbl, .footbar { display: none; }
  .tb-wide { display: none !important; } .only-phone { display: inline-flex !important; }
  #exportBtn > span:not(.ico) { display: none; } #exportBtn { padding: 0 9px; }
  .projname { width: 110px; flex-basis: 110px; }
  .vbar { min-height: 46px; padding: 4px 8px; } .vthumb { height: 36px; } .vthumb img { width: 28px; height: 28px; }
  .framepill { bottom: 58px; }
  .optionsbar .opt-title { display: none; }
  .pair .sl input[type=range] { width: 56px; }
}
