/* PIXXETA — app-specific bits on top of ../shared/pixx.css (Signal Red accent from [data-app=pixxeta]) */
.pxs-ws { --left-w: 290px; --right-w: 330px; }
#view { position: absolute; left: 0; top: 0; width: 100%; height: 100%; display: block; touch-action: none; cursor: default; }
#view.panning, #view[data-tool=pan] { cursor: grab; }
#view.panning { cursor: grabbing; }
#view[data-tool=rect], #view[data-tool=circle], #view[data-tool=capsule], #view[data-tool=poly], #view[data-tool=pivot], #view[data-tool=socket] { cursor: crosshair; }
.stage-empty { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; padding: 20px; z-index: 1; }
.stage-empty .dropzone { text-align: center; }
.stage-empty .dropzone .row { justify-content: center; }
.stage-empty .dropzone p { max-width: 480px; margin-left: auto; margin-right: auto; }
.zoompill { right: 12px; bottom: 12px; }
.zoompill .zl { min-width: 54px; text-align: center; font: 600 12px var(--mono); }
.dragover::after { content: 'Drop to open'; 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; }
.seg.tools .tg, .ibtn .tg { font-size: 14px; line-height: 1; }
.ibtn.off { opacity: .45; }
.optionsbar .field .sel { max-width: 200px; }
.lswatch { display: inline-block; width: 12px; height: 12px; border-radius: 4px; flex: none; box-shadow: inset 0 0 0 1px rgba(0,0,0,.35); }
.pad { padding: 14px; }

/* left: box layers + sockets */
.laylist, .socklist { display: flex; flex-direction: column; gap: 4px; margin-bottom: 8px; }
.layrow, .sockrow { display: flex; align-items: center; gap: 5px; padding: 5px 6px; border-radius: 10px; border: 1px solid var(--line); background: rgba(255,255,255,.025); min-height: 40px; cursor: pointer; }
.layrow:hover, .sockrow:hover { border-color: rgba(var(--acc-rgb), .4); }
.layrow.cur, .sockrow.cur { border-color: var(--acc); background: rgba(var(--acc-rgb), .12); }
.pxs-app input.lcol[type=color] { width: 26px; height: 26px; padding: 1px; border-radius: 7px; flex: none; }
.layrow .lname { flex: 1 1 60px; min-width: 50px; }
.layrow .ltype { width: 82px; flex: none; font-size: 11.5px; height: 26px; padding: 0 4px; }
.lcount { min-width: 20px; text-align: center; font: 600 10.5px var(--mono); color: var(--muted); background: rgba(255,255,255,.05); border-radius: 6px; padding: 1px 4px; flex: none; }
.sockrow .sname { font-weight: 700; flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sockrow .muted { flex: none; }
#secAuto .seg, #secPivots .seg { margin: 4px 0; max-width: 100%; }
#secAuto .seg.wrap { flex-wrap: wrap; }
#secAuto .field, #secAuto .btn.primary { margin: 4px 0; }
#secAuto .btn.primary { width: 100%; }

/* right: properties */
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.grid2 .sel, .grid2 .num { width: 100%; max-width: none; }
.grid4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; margin: 6px 0; }
.grid4 .field { gap: 4px; } .grid4 .num { width: 100%; min-width: 0; }
.bignum { font: 700 18px var(--mono); color: #fff; }
.kvs { display: flex; flex-direction: column; gap: 4px; margin: 4px 0 6px; }
.kv { display: grid; grid-template-columns: 84px minmax(0, 1fr) auto; align-items: center; gap: 5px; }
.kv .k { font: 600 11px var(--mono); color: #b9bad0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.kv:not(:has(button)) { grid-template-columns: 84px minmax(0, 1fr); }
#secSel b { color: #fff; }
.evlist { display: flex; flex-direction: column; gap: 6px; margin-bottom: 8px; }
.evrow { border: 1px solid var(--line2); border-radius: 10px; padding: 6px 8px; background: rgba(255,255,255,.02); }
.evrow > .row b { font: 700 12px var(--mono); color: var(--acc); }
.animlist { display: flex; flex-direction: column; gap: 8px; margin-bottom: 8px; }
.animrow { border: 1px solid var(--line); border-radius: 12px; padding: 8px; display: flex; flex-direction: column; gap: 6px; }
.animrow.cur { border-color: rgba(var(--acc-rgb), .55); background: rgba(var(--acc-rgb), .06); }
.animrow .text { flex: 1; }
.animrow .num { width: 52px; }
table.fdt { width: 100%; border-collapse: collapse; font: 600 11.5px var(--mono); }
table.fdt th { font: 700 10px var(--font); text-transform: uppercase; letter-spacing: .05em; color: var(--dim); text-align: left; padding: 2px 4px; }
table.fdt td { padding: 2px 4px; color: #fff; }
table.fdt tr.ms td { color: var(--muted); font-weight: 500; font-size: 10.5px; }
.issues { display: flex; flex-direction: column; gap: 3px; }
.pxs-app .issue { display: flex; gap: 7px; align-items: flex-start; text-align: left; padding: 6px 8px; border-radius: 8px; font-size: 12px; line-height: 1.35; color: #dcdcea; border: 1px solid transparent; }
.pxs-app .issue:hover { border-color: var(--line2); background: rgba(255,255,255,.04); }
.issue.error span:first-child { color: var(--bad); } .issue.warn span:first-child { color: var(--warn); } .issue.info span:first-child { color: var(--muted); }
.note.good { color: var(--good); }
.pxs-app p.warn, .pxs-overlay p.warn { color: var(--warn); font-size: 12.5px; }

/* sheet slicing + export dialog */
canvas.sheetprev { display: block; max-width: 100%; margin: 10px auto; image-rendering: pixelated; border-radius: 10px; background: repeating-conic-gradient(#2a1c20 0 25%, #221619 0 50%) 0 0 / 12px 12px; border: 1px solid var(--line2); }
ul.filelist { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 3px; }
ul.filelist li { display: flex; justify-content: space-between; gap: 10px; font: 500 12px var(--mono); padding: 4px 8px; border-radius: 7px; background: rgba(255,255,255,.03); }
.pxs-overlay .seg { display: inline-flex; flex-wrap: wrap; gap: 4px; margin-bottom: 4px; }
.pxs-overlay .seg button { height: 32px; padding: 0 12px; border-radius: 9px; border: 1px solid var(--line2); background: rgba(255,255,255,.03); color: var(--muted); font: 600 12.5px var(--font); cursor: pointer; }
.pxs-overlay .seg button.on { color: #fff; border-color: var(--acc); background: rgba(var(--acc-rgb), .18); }
.pxs-overlay .field { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); font-size: 12px; }
.pxs-overlay .num { width: 72px; height: 30px; background: var(--panel2); border: 1px solid var(--line2); border-radius: 8px; color: var(--text); padding: 0 6px; font: 12px var(--mono); }
.pxs-overlay .lbl { font-weight: 700; font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: var(--dim); margin: 14px 0 7px; }
.pxs-overlay .note { color: var(--muted); font-size: 12px; line-height: 1.5; }

/* footer: playback + timeline */
.pxs-foot { display: flex; flex-direction: column; }
.playbar { display: flex; align-items: center; gap: 6px; padding: 5px 10px; border-bottom: 1px solid var(--line); }
.playbar #playBtn { min-width: 48px; }
.footbar { padding: 0; }
.timeline { --n: 1; --cw: 44px; max-height: 210px; overflow: auto; scrollbar-width: thin; padding-bottom: 4px; }
.trow { display: grid; grid-template-columns: 150px repeat(var(--n), var(--cw)); min-width: max-content; }
.tlabel { position: sticky; left: 0; z-index: 1; display: flex; align-items: center; gap: 6px; padding: 0 10px; background: #13131c; border-right: 1px solid var(--line); font: 600 11px var(--font); color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tlabel span:last-child { overflow: hidden; text-overflow: ellipsis; }
.tcell { position: relative; border-right: 1px solid rgba(255,255,255,.04); cursor: pointer; min-height: 20px; }
.tcell:hover { background: rgba(255,255,255,.04); }
.tcell.cur { background: rgba(var(--acc-rgb), .14); box-shadow: inset 1px 0 0 var(--acc), inset -1px 0 0 var(--acc); }
.thumbs .tcell { height: 52px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px; }
.tthumb { width: 34px; height: 34px; image-rendering: pixelated; border-radius: 5px; background: repeating-conic-gradient(#262838 0 25%, #1e2030 0 50%) 0 0 / 8px 8px; }
.tnum { font: 600 9.5px var(--mono); color: var(--dim); }
.tcell.cur .tnum { color: #fff; }
.trow.tags { min-height: 26px; }
.tspan { position: relative; height: 26px; }
.pxs-app .tag { position: absolute; top: 3px; height: 20px; border-radius: 6px; padding: 0 8px; font: 700 11px var(--font); color: #0b0b12; background: var(--tag); text-align: left; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; box-shadow: inset -1px 0 0 rgba(0,0,0,.35); }
.lane .tcell { height: 20px; }
.onspan { position: absolute; left: 0; right: 0; top: 6px; height: 8px; opacity: .8; }
.tcell.selspan .onspan { opacity: 1; top: 4px; height: 12px; box-shadow: 0 0 0 1px #fff; }
.events .tcell { height: 24px; display: flex; align-items: center; justify-content: center; gap: 2px; }
.evdot { display: inline-flex; align-items: center; justify-content: center; width: 15px; height: 15px; border-radius: 50%; background: var(--acc2); color: #fff; font: 700 9px var(--font); }

.mbi { font-size: 18px; line-height: 20px; }
@media (max-width: 1100px) { .pxs-ws { --left-w: 250px; --right-w: 290px; } }
.layrow { flex-wrap: wrap; } .layrow .lname { flex: 1 1 calc(100% - 40px); } .layrow .ltype { flex: 1 1 56px; width: auto; min-width: 0; } .layrow .ibtn.sm { width: 24px; } .layrow { gap: 4px; }
@media (max-width: 760px) {
  #exportBtn > span:not(.ico) { display: none; } #exportBtn { padding: 0 9px; }
  .projname { width: 110px; flex-basis: 110px; }
  .optionsbar { overflow-x: auto; flex-wrap: nowrap; }
  .optionsbar .opt-title, #coords { display: none; }
  .seg.tools button { min-width: 40px; height: 36px; justify-content: center; }
  .timeline { --cw: 40px; max-height: 120px; }
  .trow { grid-template-columns: 92px repeat(var(--n), var(--cw)); }
  .lane:nth-of-type(n+6) { display: none; }
  .zoompill { bottom: 8px; right: 8px; }
  .pxs-side .btn.sm, .pxs-side .ibtn.sm { min-height: 36px; }
  .layrow, .sockrow { min-height: 46px; }
}
.sockrow .sdot { width: 8px; height: 8px; border-radius: 50%; background: var(--good); flex: none; }
.sockrow .sdot.no { background: transparent; box-shadow: inset 0 0 0 1px var(--line2); }
.sockrow .sname { min-width: 60px; }
.ibtn .lk { display: inline-flex; }
.opt-badge:empty { display: none; }
.pxs-side { overflow-x: hidden; }
.rigbox { display: flex; flex-direction: column; gap: 6px; padding: 8px 10px; margin-bottom: 8px; border-radius: 10px; border: 1px solid rgba(var(--acc-rgb), .35); background: rgba(var(--acc-rgb), .08); }
.rigbox .note { margin: 0; }
/* Simplified workspace (PIXX.workspace, html.pxs-simple): the core box tools only, touch-sized rows; Full is untouched */
html.pxs-simple .seg.tools button[data-v=capsule], html.pxs-simple .seg.tools button[data-v=poly], html.pxs-simple .seg.tools button[data-v=socket] { display: none; }
html.pxs-simple .layrow .ibtn.sm { width: auto; }
html.pxs-simple .layrow, html.pxs-simple .sockrow { min-height: 46px; }
html.pxs-simple .pnl-body label.field { min-height: var(--touch); }
html.pxs-simple .moretools { width: calc(100% - 24px); margin: 8px 12px 14px; }
html.pxs-simple .layrow .lname { flex-basis: calc(100% - 56px); }
html.pxs-simple .trow.tags { min-height: 46px; } html.pxs-simple .pxs-app .tag { top: 3px; height: 40px; }
html.pxs-simple .pxs-foot label { min-height: var(--touch); }
