/* PIXXEVI — app-specific bits on top of ../shared/pixx.css (cyan accent from [data-app=pixxevi]) */
.pxs-ws { --left-w: 296px; --right-w: 320px; }
.lrow .ibtn { width: 22px !important; }
#view { position: absolute; left: 0; top: 0; width: 100%; height: 100%; display: block; touch-action: none; cursor: grab; }
#view.panning { cursor: grabbing; }
.playpill { left: 50%; transform: translateX(-50%); bottom: 12px; }
.playpill .fl { min-width: 64px; text-align: center; font: 600 12px var(--mono); }
.zoompill { left: 12px; bottom: 12px; }
.zoompill .zl { min-width: 48px; text-align: center; font: 600 12px var(--mono); }
.seampill { right: 12px; top: 12px; padding: 4px 10px; font: 600 11px var(--mono); color: var(--muted); }
.seampill.on { color: var(--acc); border-color: rgba(var(--acc-rgb), .6); }
.presetgrid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
.presetgrid button { display: flex; flex-direction: column; align-items: stretch; gap: 4px; padding: 5px; border-radius: 11px; border: 1px solid var(--line); background: rgba(255,255,255,.025); text-align: left; font-size: 11.5px; font-weight: 600; min-width: 0; }
.presetgrid button:hover { border-color: rgba(var(--acc-rgb), .6); }
.presetgrid canvas { width: 100%; aspect-ratio: 4 / 3; border-radius: 7px; image-rendering: pixelated; display: block; }
.presetgrid span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; padding: 0 2px; }
.layerlist { display: flex; flex-direction: column; gap: 4px; }
.lrow { display: flex; align-items: center; gap: 6px; padding: 5px 6px; border-radius: 10px; border: 1px solid var(--line); background: rgba(255,255,255,.025); cursor: pointer; min-width: 0; }
.lrow:hover { background: rgba(255,255,255,.045); }
.lrow.on { border-color: rgba(var(--acc-rgb), .7); background: linear-gradient(90deg, rgba(var(--acc-rgb), .2), rgba(var(--acc-rgb), .05)); }
.lrow.off .lname { opacity: .45; text-decoration: line-through; }
.lrow .lname { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-weight: 600; }
.lrow .dep { font: 700 9.5px var(--mono); text-transform: uppercase; padding: 1px 6px; border-radius: 6px; background: rgba(var(--acc-rgb), .12); color: var(--acc); flex: none; }
.lrow .sw { width: 14px; height: 14px; border-radius: 4px; flex: none; border: 1px solid rgba(0,0,0,.4); }
.lrow .ibtn { width: 26px; height: 26px; border-radius: 7px; }
.colorrow { display: flex; flex-wrap: wrap; gap: 4px; align-items: center; margin: 6px 0; }
.colorrow label { position: relative; width: 28px; height: 28px; border-radius: 8px; border: 1px solid rgba(0,0,0,.4); box-shadow: inset 0 0 0 1px rgba(255,255,255,.08); cursor: pointer; overflow: hidden; }
.colorrow label input { position: absolute; inset: 0; opacity: 0; width: 100%; height: 100%; cursor: pointer; }
.colorrow label b { position: absolute; right: -1px; top: -1px; width: 13px; height: 13px; border-radius: 50%; background: var(--bad); color: #fff; font: 700 9px/13px var(--font); text-align: center; display: none; }
.colorrow label:hover b { display: block; }
.colorrow .add { width: 28px; height: 28px; border-radius: 8px; border: 1px dashed var(--line2); color: var(--muted); display: inline-flex; align-items: center; justify-content: center; }
.dialwrap { display: flex; align-items: center; gap: 12px; margin: 6px 0; }
.dial { width: 64px; height: 64px; border-radius: 50%; touch-action: none; cursor: pointer; flex: none; }
.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(#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%; }
.footbar .good { color: var(--good); } .footbar .bad { color: var(--warn); }
@media (max-width: 760px) { .pxs-app .seampill, .pxs-app .zoompill { display: none; } #exportBtn > span:not(.ico) { display: none; } .pxs-app .playpill { bottom: 10px; } }
/* ---------- v2: preset browser, add-layer picker, scene panel ---------- */
.pxs-app .btn.full { width: 100%; }
.pthumb { display: block; border-radius: 7px; overflow: hidden; aspect-ratio: 16 / 9; }
.pthumb canvas { width: 100%; height: 100%; display: block; image-rendering: pixelated; }
.presetgrid .pthumb { aspect-ratio: 4 / 3; }
.pb { min-height: 50vh; }
.pbchips { margin-bottom: 10px; }
.pbgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; max-height: 58vh; overflow-y: auto; padding-right: 4px; }
.pbcard { position: relative; display: flex; flex-direction: column; gap: 3px; padding: 6px; border-radius: 12px; border: 1px solid var(--line); background: rgba(255,255,255,.025); cursor: pointer; min-width: 0; }
.pbcard:hover { border-color: rgba(var(--acc-rgb), .7); background: rgba(var(--acc-rgb), .08); }
.pbname { font-weight: 700; font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pbgroup { font-size: 10.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pbstar { position: absolute; top: 10px; right: 10px; width: 24px; height: 24px; border-radius: 7px; display: inline-flex; align-items: center; justify-content: center; background: rgba(10,12,20,.7) !important; color: #9aa3b8; opacity: 0; transition: opacity .12s; }
.pbcard:hover .pbstar, .pbstar.on { opacity: 1; }
.pbstar.on { color: #ffd34a; }
.pbstar.on svg { fill: #ffd34a; }
.addgrid { max-height: 60vh; overflow-y: auto; margin-top: 8px; }
.addgroup .lbl { margin: 12px 0 6px; }
.addbtns { display: flex; flex-wrap: wrap; gap: 6px; }
.biomebadge { display: flex; align-items: center; gap: 6px; padding: 6px 8px; border-radius: 10px; background: rgba(var(--acc-rgb), .1); border: 1px solid rgba(var(--acc-rgb), .3); margin-bottom: 4px; }
.biomebadge .ico { color: var(--acc); }
.gradebox { margin-top: 8px; }
.gradebox summary { cursor: pointer; color: var(--muted); font-size: 12px; font-weight: 600; padding: 4px 0; }
.lrow.dropto { box-shadow: inset 0 2px 0 var(--acc); }
.lrow .dep.bl { background: rgba(255,200,80,.14); color: #ffcf6a; }
.lrow[draggable=true] { cursor: grab; }
@media (max-width: 760px) { .pbgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); max-height: 62vh; } .pbstar { opacity: 1; } }
/* ---------- Simplified workspace (html.pxs-simple, PIXX.workspace): finger-sized swatches + stars; JS marks the advanced bits .adv ---------- */
html.pxs-simple .colorrow label, html.pxs-simple .colorrow .add { width: 44px; height: 44px; border-radius: 10px; }
html.pxs-simple .lrow .dep { display: none; }
html.pxs-simple .pbstar { width: 44px; height: 44px; top: 8px; right: 8px; opacity: 1; }
.wsmore { margin-top: 4px; }
@media (max-width: 760px) { html.pxs-simple .pxs-app .projname, html.pxs-simple .pxs-app .topbar .tb-sep { display: none; } }
