/* PIXXATO — app-specific bits on top of ../shared/pixx.css (teal accent from [data-app=pixxato]) */
.pxs-ws { --right-w: 330px; }
#view { position: absolute; left: 0; top: 0; width: 100%; height: 100%; display: block; touch-action: none; cursor: grab; }
#view.panning { cursor: grabbing; } #view.cropping { cursor: crosshair; } #view.splitting { cursor: ew-resize; }
.stage-empty { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; padding: 20px; }
.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); }
.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; }
.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; }
.splitlbl.l { left: 12px; } .splitlbl.r { right: 12px; color: var(--acc); }
.dragover::after { content: 'Drop images to convert'; 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; }
.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; }
.palrow i:hover { transform: scale(1.12); z-index: 1; box-shadow: 0 0 0 2px #fff; }
.palrow i.add { background: rgba(255,255,255,.04); border: 1px dashed var(--line2); display: inline-flex; align-items: center; justify-content: center; color: var(--muted); font-style: normal; }
.palrow i b { position: absolute; right: -4px; top: -4px; width: 13px; height: 13px; border-radius: 50%; background: var(--bad); color: #fff; font: 700 9px/13px var(--font); text-align: center; display: none; }
.palrow.edit i:hover b { display: block; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.grid4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.grid4 .num { width: 100%; }
.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:hover { border-color: rgba(var(--acc-rgb), .55) !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%; }
@media (max-width: 760px) { .infopill, .splitlbl { display: none; } #exportBtn > span:not(.ico), #exportBtn { font-size: 0; gap: 0; padding: 0 9px; } #exportBtn .ico { font-size: 13px; } }
/* Simplified workspace (Apps menu → Workspace): bigger palette swatches, the always-visible delete badge, "More settings…" */
html.pxs-simple .palrow { grid-template-columns: repeat(auto-fill, minmax(36px, 1fr)); gap: 5px; }
html.pxs-simple .palrow.edit i { min-height: 40px; }
html.pxs-simple .palrow.edit i b { display: block; width: 20px; height: 20px; font-size: 12px; line-height: 20px; right: -6px; top: -6px; }
html.pxs-simple .pxs-app .more-adv { display: flex !important; flex-wrap: wrap; gap: 8px; padding: 12px 14px 16px; }
