/* PIXXADO — app-specific bits on top of ../shared/pixx.css (Dusk accent from [data-app=pixxado]) */
.pxs-ws { --left-w: 268px; --right-w: 320px; }
#view { position: absolute; left: 0; top: 0; width: 100%; height: 100%; display: block; touch-action: none; cursor: grab; }
#view.panning { cursor: grabbing; }
.stage-empty { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; padding: 20px; z-index: 1; }
.stage-empty .dropzone { max-width: 560px; }
.stage-empty .dropzone .row { justify-content: center; }
.pxs-app .zoompill { left: 12px; bottom: 12px; }
.zoompill .zl { min-width: 54px; text-align: center; font: 600 12px var(--mono); }
.pxs-app .framebar { left: 50%; transform: translateX(-50%); top: 12px; bottom: auto; padding: 4px 10px; gap: 6px; }
.framebar .fl { min-width: 54px; text-align: center; font: 600 12px var(--mono); color: var(--muted); }
.pxs-app .infopill { right: 12px; bottom: 12px; padding: 6px 12px; gap: 12px; font: 500 11.5px var(--mono); color: var(--muted); pointer-events: none; }
html.pxs-simple .pxs-app .infopill { display: none; } /* the footer says the same; the bigger zoom pill needs the room */
.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; z-index: 1; }
.splitlbl.l { left: 12px; } .splitlbl.r { right: 12px; color: var(--acc); }
.dragover::after { content: "Drop a sprite, GIF or sheet"; 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; }
.looks { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
.look, .biome { display: flex; align-items: center; gap: 8px; min-height: 36px; padding: 6px 8px; border-radius: 10px; border: 1px solid var(--line) !important; background: rgba(255,255,255,.025) !important; text-align: left; font-size: 12px; color: #d8d7e6; min-width: 0; }
.look:hover, .biome:hover { border-color: rgba(var(--acc-rgb), .55) !important; color: #fff; }
.look.on, .biome.on { border-color: var(--acc) !important; background: rgba(var(--acc-rgb), .14) !important; color: #fff; }
.look i, .biome i { width: 18px; height: 18px; border-radius: 6px; flex: none; box-shadow: inset 0 0 0 1px rgba(255,255,255,.18); }
.look span, .biome span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.biomes { display: grid; grid-template-columns: minmax(0, 1fr); gap: 4px; max-height: 260px; overflow-y: auto; margin-top: 6px; padding-right: 2px; }
.mine { display: flex; flex-direction: column; gap: 4px; margin-bottom: 8px; }
.mine-row { display: flex; align-items: center; gap: 6px; } .mine-row .chip { flex: 1; justify-content: flex-start; }
.lights { display: flex; flex-direction: column; gap: 4px; margin-bottom: 8px; }
.light-row { display: flex; align-items: center; gap: 8px; min-height: 38px; padding: 6px 10px; border-radius: 10px; border: 1px solid var(--line) !important; background: rgba(255,255,255,.025) !important; text-align: left; }
.light-row.on { border-color: var(--acc) !important; background: rgba(var(--acc-rgb), .14) !important; }
.light-row i { width: 16px; height: 16px; border-radius: 50%; flex: none; box-shadow: 0 0 0 2px rgba(0,0,0,.4); }
.light-row span { flex: 1; } .light-row small { color: var(--muted); font: 600 11px var(--mono); }
.dialwrap { display: flex; justify-content: center; margin: 4px 0 6px; }
.dial { width: 120px; height: 120px; border-radius: 50%; background: radial-gradient(circle, rgba(var(--acc-rgb), .12), rgba(255,255,255,.02) 70%); border: 1px solid var(--line2); touch-action: none; cursor: grab; }
.grid3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; margin: 4px 0 6px; }
.grid3 .num { width: 100%; }
.palrow { display: grid; grid-template-columns: repeat(auto-fill, minmax(16px, 1fr)); gap: 3px; margin: 6px 0; }
.palrow i { aspect-ratio: 1; border-radius: 4px; border: 1px solid rgba(0,0,0,.4); }
.batch-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 10px; max-height: 52vh; 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: #b9b3a6; }
.batch-item span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 1280px) { .pxs-ws { --left-w: 236px; --right-w: 300px; } }
@media (max-width: 760px) { .pxs-app .infopill, .splitlbl { display: none; } #exportBtn { gap: 0; padding: 0 9px; } #exportBtn > span:not(.ico) { display: none; } .pxs-app .framebar { top: 12px; bottom: auto; } }
.wallchips { display: grid; grid-template-columns: repeat(auto-fill, minmax(26px, 1fr)); gap: 4px; margin: 6px 0 8px; }
.wallchip { aspect-ratio: 1; min-height: 26px; padding: 0; border-radius: 6px; border: 1px solid rgba(0,0,0,.45) !important; box-shadow: inset 0 0 0 1px rgba(255,255,255,.12); }
.wallchip.on { box-shadow: 0 0 0 2px var(--acc), inset 0 0 0 2px rgba(0,0,0,.55); }
@media (max-width: 760px) { .wallchip { min-height: 36px; } }
/* Simplified workspace (PIXX.workspace, html.pxs-simple): the ⋯ menu shows at every width so Batch, Turn variants and
   "All tools (Full workspace)" stay one tap away; the hidden controls are marked .adv in js/app.js */
html.pxs-simple .pxs-app .morebtn { display: inline-flex !important; }
html.pxs-simple .look, html.pxs-simple .biome { min-height: 44px; }
html.pxs-simple .wallchips { grid-template-columns: repeat(auto-fill, minmax(40px, 1fr)); } html.pxs-simple .wallchip { min-height: 40px; }
html.pxs-simple .pxs-app label.field:has(> input[type=checkbox]), html.pxs-simple .pxs-app label.field:has(> input[type=radio]) { min-height: var(--touch); }
