/* PIXXIZI — app-specific bits on top of ../shared/pixx.css (steel accent from [data-app=pixxizi]) */
.pxs-ws { --left-w: 290px; --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; }
.stage-empty { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; padding: 20px; }
.stage-empty .dropzone { max-width: 620px; text-align: center; }
.stage-empty .dropzone .row { justify-content: center; }
.dragover::after { content: 'Drop files to add them to the package'; 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; }
.zver { font: 600 11.5px var(--mono); color: var(--muted); padding: 3px 8px; border-radius: 999px; border: 1px solid var(--line2); white-space: nowrap; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.grid2 .num { width: 100%; }
.footbar { gap: 18px; }
.zbadge.zw { background: rgba(255,181,71,.16); color: #ffcf85; box-shadow: inset 0 0 0 1px rgba(255,181,71,.35); }

/* package tree */
.ztree { display: flex; flex-direction: column; padding-bottom: 16px; }
.ztree-head { padding: 12px 12px 8px; position: sticky; top: 0; z-index: 2; background: rgba(16,17,26,.96); border-bottom: 1px solid var(--line); }
.ztree-head .text { width: 100%; }
.ztree-head .row .btn { flex: 1; justify-content: center; }
.pxs-app .ztrow { display: flex; align-items: center; gap: 9px; width: 100%; min-height: 44px; padding: 5px 12px; text-align: left; border: 0; background: transparent; color: var(--text); cursor: pointer; font: inherit; border-left: 3px solid transparent; }
.pxs-app .ztrow:hover { background: rgba(255,255,255,.035); }
.pxs-app .ztrow.on { background: rgba(var(--acc-rgb), .14); border-left-color: var(--acc); }
.pxs-app .ztrow:focus-visible { outline: 2px solid var(--acc); outline-offset: -2px; }
.pxs-app .zpkgrow { margin-top: 4px; min-height: 52px; }
.ztn { display: flex; flex-direction: column; min-width: 0; flex: 1; gap: 1px; }
.ztn b { font-size: 12.5px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ztn .muted { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: 11px; }
.zth { flex: none; width: 32px; height: 32px; border-radius: 8px; display: inline-flex; align-items: center; justify-content: center; background: repeating-conic-gradient(#1d1e2b 0 25%, #242536 0 50%) 0 0 / 8px 8px; border: 1px solid var(--line); overflow: hidden; }
.zth canvas { width: 28px; height: 28px; image-rendering: pixelated; }
.zicon { font-size: 16px; }
.zsrc { flex: none; display: inline-flex; opacity: .85; }
.zbadge { flex: none; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px; font: 700 10.5px/18px var(--font); text-align: center; }
.zbadge.err { background: rgba(255,93,115,.22); color: #ff9aa9; } .zbadge.zw { background: rgba(255,181,71,.18); color: #ffcf85; }
.pxs-app .ztghead { display: flex; align-items: center; gap: 8px; width: 100%; padding: 12px 12px 6px; border: 0; background: transparent; color: var(--muted); font: 700 11px var(--font); text-transform: uppercase; letter-spacing: .06em; cursor: pointer; text-align: left; }
.pxs-app .ztghead:hover { color: #fff; }
.pxs-app .ztghead span:nth-child(2) { flex: 1; }
.zcar { width: 12px; color: var(--dim); }
.zcount { font: 600 10.5px var(--mono); color: var(--dim); }

/* chips with status */
.pxs-app .chip.zok { border-color: rgba(61,220,151,.4); color: #8ff0c4; }
.pxs-app .chip.zwarn { border-color: rgba(255,181,71,.45); color: #ffcf85; }
.pxs-app .chip.zerr { border-color: rgba(255,93,115,.5); color: #ff9aa9; }
.fpn { font: 600 11.5px var(--mono); color: var(--muted); min-width: 46px; text-align: center; }
.zoomseg .zl { min-width: 46px; font: 600 12px var(--mono); }

/* stage html: overview, palettes, dialogue */
.zstagehtml { position: absolute; inset: 0; overflow-y: auto; padding: 22px; }
.zcard { background: rgba(255,255,255,.025); border: 1px solid var(--line); border-radius: 16px; padding: 16px 18px; }
.zcard h2 { margin: 0 0 4px; font-size: 18px; } .zcard h3 { margin: 0 0 10px; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.zcard p { margin: 4px 0 10px; }
.zov { max-width: 1060px; margin: 0 auto; display: flex; flex-direction: column; gap: 16px; }
.zov-head { display: flex; align-items: center; gap: 14px; }
.zov-head h2 { margin: 0; font-size: 22px; } .zov-head p { margin: 2px 0 0; }
.zov-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 10px; }
.pxs-app .zov-tile { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; padding: 14px; min-height: 92px; border-radius: 14px; border: 1px solid var(--line); background: linear-gradient(135deg, rgba(var(--acc-rgb), .1), rgba(255,255,255,.015)); color: var(--text); cursor: pointer; font: inherit; text-align: left; }
.pxs-app .zov-tile:hover { border-color: rgba(var(--acc-rgb), .55); transform: translateY(-1px); }
.zov-tile b { font-size: 24px; font-weight: 800; line-height: 1.1; }
.zov-ic { font-size: 18px; }
.zov-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 12px; }
.zmini { list-style: none; margin: 0 0 10px; padding: 0; display: flex; flex-direction: column; gap: 5px; font-size: 12px; }
.zmini li { padding: 6px 9px; border-radius: 8px; background: rgba(255,255,255,.03); border-left: 3px solid var(--line2); line-height: 1.4; }
.zmini li.error { border-left-color: var(--bad); } .zmini li.warn { border-left-color: #ffb547; } .zmini li.info { border-left-color: var(--acc); }
.zsw { display: grid; grid-template-columns: repeat(auto-fill, minmax(42px, 1fr)); gap: 6px; margin: 12px 0; max-width: 620px; }
.zsw i { aspect-ratio: 1; border-radius: 9px; border: 1px solid rgba(0,0,0,.4); box-shadow: inset 0 0 0 1px rgba(255,255,255,.08); }
.zdlg { max-width: 780px; margin: 0 auto; display: flex; flex-direction: column; gap: 10px; }
.zline { display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; border-radius: 14px; border: 1px solid var(--line); background: rgba(255,255,255,.02); }
.zline.start { border-color: rgba(var(--acc-rgb), .55); }
.zline p { margin: 3px 0 0; font-size: 14px; line-height: 1.45; }
.zport { flex: none; width: 48px; height: 48px; border-radius: 10px; image-rendering: pixelated; background: rgba(255,255,255,.05); border: 1px solid var(--line); }
.zport.none { display: inline-flex; align-items: center; justify-content: center; font-weight: 800; color: var(--acc); }
.zchoices { list-style: none; margin: 6px 0 0; padding: 0; display: flex; flex-direction: column; gap: 3px; color: var(--acc); font-size: 13px; }

/* right panel */
.ztabs .tab { flex: 1; justify-content: center; }
.zanims { list-style: none; margin: 0 0 8px; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.zanims li { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 8px 10px; min-height: 40px; border-radius: 10px; border: 1px solid var(--line); cursor: pointer; }
.zanims li:hover { border-color: rgba(var(--acc-rgb), .5); } .zanims li.on { background: rgba(var(--acc-rgb), .15); border-color: var(--acc); }
.zov-set { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 38px; }
.zt-list { display: flex; flex-direction: column; gap: 6px; margin-bottom: 10px; }
.zt-item { display: flex; align-items: flex-start; gap: 10px; padding: 9px 11px; border-radius: 12px; border: 1px solid var(--line); cursor: pointer; min-height: 44px; }
.zt-item:hover { border-color: rgba(var(--acc-rgb), .5); }
.zt-item:has(input:checked) { background: rgba(var(--acc-rgb), .1); border-color: rgba(var(--acc-rgb), .6); }
.zt-item input { margin-top: 3px; accent-color: var(--acc); }
.zt-item span { display: flex; flex-direction: column; gap: 2px; } .zt-item b { font-size: 13px; }
.zissues { list-style: none; margin: 10px 0 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.zissues li { display: flex; gap: 9px; padding: 9px 10px; border-radius: 10px; background: rgba(255,255,255,.025); border: 1px solid var(--line); font-size: 12px; line-height: 1.45; }
.zissues li.error { border-color: rgba(255,93,115,.4); } .zissues li.warn { border-color: rgba(255,181,71,.35); }
.zlv { flex: none; width: 18px; font-weight: 800; } .error > .zlv { color: var(--bad); } .warn > .zlv { color: #ffb547; } .info > .zlv { color: var(--acc); }
.zbuilds { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.zbuilds li { display: flex; flex-direction: column; gap: 2px; padding: 8px 10px; border-radius: 10px; border: 1px solid var(--line); }
.zlog { margin-bottom: 10px; font-size: 12px; } .zlog ul { margin: 4px 0 0; padding-left: 18px; color: var(--muted); }
.pxs-app code { font: 12px var(--mono); color: var(--acc); background: rgba(var(--acc-rgb), .1); padding: 1px 5px; border-radius: 5px; }

/* dialogs */
.zlibgrid { max-height: 52vh; overflow-y: auto; }
.pxs-cloudcard.zpicked { border-color: var(--acc) !important; box-shadow: 0 0 0 2px rgba(var(--acc-rgb), .45); }
.ztable { width: 100%; border-collapse: collapse; font-size: 12.5px; margin-top: 6px; }
.ztable th, .ztable td { text-align: left; padding: 7px 8px; border-bottom: 1px solid var(--line); }
.ztable th { color: var(--muted); font-weight: 600; font-size: 11px; text-transform: uppercase; letter-spacing: .05em; }
.ztable td.zover { color: #ff9aa9; }
.zexp .zt-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); }
.zexp-result:empty { display: none; }
.zexp-result { margin-top: 12px; padding-top: 6px; border-top: 1px solid var(--line); }

@media (max-width: 1100px) { .pxs-ws { --left-w: 240px; --right-w: 300px; } }
@media (max-width: 760px) {
  .zver { display: none; }
  #exportBtn { gap: 0; padding: 0 9px; } #exportBtn > span:not(.ico) { display: none; }
  .zstagehtml { padding: 14px; }
  .zov-grid { grid-template-columns: repeat(3, 1fr); } .pxs-app .zov-tile { min-height: 76px; padding: 10px; } .zov-tile b { font-size: 20px; }
}
.pxs-app .ztghead { padding-right: 16px; }
.zexp > .field { display: flex; margin: 6px 0; }
.zexp .zbump { margin-left: 4px; }
/* Simplified workspace (PIXX.workspace, html.pxs-simple): touch-sized checkbox rows; Full is untouched */
html.pxs-simple .pxs-app label.field, html.pxs-simple .zt-item { min-height: var(--touch); }
html.pxs-simple .moretools { width: calc(100% - 24px); margin: 8px 12px 14px; }
