/* PIXXONI — app-specific bits on top of ../shared/pixx.css (cobalt accent from [data-app=pixxoni]) */
.pxs-ws { --right-w: 340px; }
#view { position: absolute; left: 0; top: 0; width: 100%; height: 100%; display: block; touch-action: none; cursor: grab; }
#view.panning { cursor: grabbing; } #view.splitting { cursor: ew-resize; }
.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; }
.zoompill { left: 12px; bottom: 12px; }
.zoompill .zl { min-width: 54px; text-align: center; font: 600 12px var(--mono); }
.zoompill .ibtn { font: 600 11px var(--mono); }
.infopill { right: 12px; bottom: 12px; padding: 6px 12px; gap: 12px; font: 500 11.5px var(--mono); color: var(--muted); pointer-events: none; }
.infopill b { color: var(--text); font-weight: 600; }
.goodtxt { color: var(--good); } .badtxt { color: var(--warn); }
.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: 2; }
.splitlbl.l { left: 12px; } .splitlbl.r { right: 12px; color: var(--acc); }
.dragover::after { content: 'Drop images to scale'; 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; }
.optionsbar .fac { width: 58px; }
.algos { display: flex; flex-direction: column; gap: 5px; }
.algo { display: grid !important; grid-template-columns: 1fr auto; gap: 2px 8px; text-align: left; padding: 8px 10px !important; border-radius: 10px !important; border: 1px solid var(--line) !important; background: rgba(255,255,255,.025) !important; }
.algo:hover { border-color: rgba(var(--acc-rgb), .55) !important; }
.algo.on { border-color: var(--acc) !important; background: rgba(var(--acc-rgb), .14) !important; box-shadow: inset 0 0 0 1px rgba(var(--acc-rgb), .3); }
.algo b { font-size: 12.5px; }
.algo small { grid-column: 1 / -1; color: var(--muted); font-size: 11px; line-height: 1.4; display: none; }
.algo.on small { display: block; }
.algo .tags { display: inline-flex; gap: 4px; }
.algo .tags i { font-style: normal; font: 600 10px var(--mono); padding: 1px 6px; border-radius: 999px; background: rgba(255,255,255,.06); color: var(--muted); white-space: nowrap; }
.algo .tags i.warn-tag { color: #ffcf85; background: rgba(255,181,71,.1); }
.algo .tags i.good-tag { color: var(--good); background: rgba(61,220,151,.08); }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.anchors { display: grid; grid-template-columns: repeat(3, 26px); gap: 3px; margin-right: 16px; }
.anchors button { width: 26px; height: 26px; border-radius: 6px !important; border: 1px solid var(--line2) !important; background: rgba(255,255,255,.03) !important; position: relative; }
.anchors button::after { content: ""; position: absolute; inset: 9px; border-radius: 2px; background: var(--dim); }
.anchors button.on { border-color: var(--acc) !important; background: rgba(var(--acc-rgb), .2) !important; }
.anchors button.on::after { background: var(--acc); }
.checkrow { display: flex; justify-content: space-between; gap: 10px; padding: 5px 0; border-bottom: 1px dashed var(--line); font-size: 12px; color: var(--muted); }
.checkrow b { color: var(--text); font-weight: 600; text-align: right; }
.checkrow.good b { color: var(--good); } .checkrow.bad b { color: #ffcf85; }
.presetlist { display: flex; flex-direction: column; gap: 4px; }
.presetlist button { display: flex; align-items: center; gap: 8px; padding: 7px 10px; border-radius: 10px; text-align: left; border: 1px solid var(--line) !important; background: rgba(255,255,255,.025) !important; }
.presetlist button span { flex: 1; } .presetlist button small { color: var(--muted); }
.batch-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 10px; max-height: 50vh; overflow-y: auto; margin: 10px 0; }
.batch-item { display: flex; flex-direction: column; gap: 4px; padding: 6px; border-radius: 12px; border: 1px solid var(--line); background: rgba(255,255,255,.025); font-size: 11px; min-width: 0; }
.batch-item canvas { width: 100%; aspect-ratio: 1; object-fit: contain; image-rendering: pixelated; border-radius: 8px; background: repeating-conic-gradient(#1d1e2b 0 25%, #242536 0 50%) 0 0 / 10px 10px; }
.batch-item span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.export-prev { display: flex; align-items: center; justify-content: center; min-height: 200px; max-height: 46vh; overflow: auto; border-radius: 14px; background: repeating-conic-gradient(#1d1e2b 0 25%, #242536 0 50%) 0 0 / 16px 16px; border: 1px solid var(--line); padding: 10px; }
.export-prev canvas { image-rendering: pixelated; max-width: 100%; height: auto !important; object-fit: contain; }
.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: 760px) {
  .infopill, .splitlbl { display: none; } .footbar { display: none; } .tb-wide { display: none !important; } .only-phone { display: inline-flex !important; }
  #exportBtn > span:not(.ico), #exportBtn { font-size: 0; gap: 0; padding: 0 9px; } #exportBtn .ico { font-size: 13px; }
  .pxs-app .projname { width: 100px; }
}
