/* PIXXINO — app-specific bits on top of ../shared/pixx.css (violet accent from [data-app=pixxino]) */
.pxs-ws { --left-w: 240px; --right-w: 310px; }
#view { position: absolute; left: 0; top: 0; width: 100%; height: 100%; display: block; touch-action: none; cursor: crosshair; }
#view.panning { cursor: grabbing; }
.dragover::after { content: 'Drop PNG parts or a rig file'; 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; pointer-events: none; }
.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; }
.toolseg button { font-weight: 600; }
.modeseg button.on { background: rgba(var(--acc-rgb), .28); color: #fff; }
/* left: bones / parts / poses */
.lbody { padding: 4px 8px 14px; }
.lhead { display: flex; align-items: center; gap: 8px; padding: 6px 4px 6px; }
.brow { display: flex; align-items: center; gap: 6px; padding: 5px 8px; border-radius: 9px; cursor: pointer; border: 1px solid transparent; white-space: nowrap; }
.brow:hover { background: rgba(255,255,255,.04); }
.brow.on { background: linear-gradient(90deg, rgba(var(--acc-rgb), .24), rgba(var(--acc-rgb), .06)); border-color: rgba(var(--acc-rgb), .45); }
.brow .bico { color: var(--acc); font-weight: 700; width: 10px; }
.brow .nm { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; font-weight: 500; }
.kcount { font: 600 10px var(--mono); color: var(--acc); }
.iktag { font-size: 9.5px; font-weight: 800; color: #ffb547; background: rgba(255,181,71,.12); border-radius: 5px; padding: 1px 5px; }
.prow { display: flex; align-items: center; gap: 8px; padding: 5px 6px; border-radius: 10px; cursor: pointer; border: 1px solid transparent; }
.prow:hover { background: rgba(255,255,255,.04); }
.prow.on { background: linear-gradient(90deg, rgba(var(--acc-rgb), .22), rgba(var(--acc-rgb), .06)); border-color: rgba(var(--acc-rgb), .45); }
.prow canvas { width: 30px; height: 30px; object-fit: contain; image-rendering: pixelated; border-radius: 6px; background: repeating-conic-gradient(#1d1e2b 0 25%, #242536 0 50%) 0 0 / 8px 8px; flex: none; }
.prow .nm { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.prow .nm b { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.prow .nm span { font: 10.5px var(--mono); color: var(--muted); }
.zbtn { display: inline-flex; opacity: 0; } .prow:hover .zbtn, .prow.on .zbtn { opacity: 1; }
.poserow, .ikrow { display: flex; align-items: center; gap: 6px; padding: 5px 4px; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.poserow .nm { flex: 1; min-width: 60px; font-weight: 600; }
.ikrow .field { flex: 1; min-width: 120px; }
/* right panel */
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.grid2 .num { width: 100%; }
.chrow { display: grid; grid-template-columns: 82px minmax(0, 1fr) 28px; align-items: center; gap: 6px; margin: 4px 0; }
.chrow span { color: var(--muted); font-size: 12px; } .chrow .num { width: 100%; }
.kf { width: 26px; height: 26px; border-radius: 7px; color: var(--dim); font-size: 12px; }
.kf.on { color: var(--acc); background: rgba(var(--acc-rgb), .14); }
.partprev { display: flex; align-items: flex-end; gap: 10px; padding: 8px; margin-bottom: 8px; border-radius: 12px; background: repeating-conic-gradient(#1d1e2b 0 25%, #242536 0 50%) 0 0 / 12px 12px; border: 1px solid var(--line); }
.partprev canvas { image-rendering: pixelated; }
.cliplist { display: flex; flex-direction: column; gap: 4px; margin-bottom: 8px; }
.cliprow { display: flex !important; flex-direction: column; align-items: flex-start !important; gap: 1px; padding: 7px 10px !important; border-radius: 10px !important; border: 1px solid var(--line) !important; background: rgba(255,255,255,.025) !important; text-align: left; height: auto !important; }
.cliprow span { font: 11px var(--mono); color: var(--muted); }
.cliprow.on { border-color: rgba(var(--acc-rgb), .6) !important; background: rgba(var(--acc-rgb), .12) !important; }
.stats { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 8px; color: var(--muted); font-size: 12px; } .stats b { color: var(--text); }
.curvewrap { display: flex; justify-content: center; margin: 10px 0; }
.curve { border-radius: 10px; cursor: crosshair; touch-action: none; }
/* timeline */
.timeline { display: flex; flex-direction: column; max-height: 28vh; }
.tlbar { display: flex; align-items: center; gap: 6px; padding: 6px 10px; border-bottom: 1px solid var(--line); overflow-x: auto; scrollbar-width: none; white-space: nowrap; flex: none; }
.tlbar::-webkit-scrollbar { display: none; }
.ibtn.play { width: 36px; height: 30px; color: #fff; background: linear-gradient(135deg, var(--acc), var(--acc-deep)); border-radius: 9px; }
.flabel { font: 600 12px var(--mono); min-width: 58px; text-align: center; }
.tlrows { overflow: auto; min-height: 60px; flex: 1; }
#tlcv { display: block; touch-action: none; cursor: pointer; }
/* export */
.export-prev { display: flex; align-items: center; justify-content: center; min-height: 140px; 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%; }
.exlist { display: flex; flex-direction: column; gap: 6px; margin: 8px 0; }
.exlist label { display: flex; align-items: center; gap: 8px; }
.exlist small { color: var(--muted); }
.spinever { align-items: center; margin: 2px 0 6px; }
.spinever .seg button { min-width: 44px; }
.spine-report { margin: 6px 0 0; padding-left: 18px; display: flex; flex-direction: column; gap: 4px; color: var(--muted); font-size: 13px; }
.exportdlg .pxs-modal-foot { flex-wrap: wrap; row-gap: 8px; }
/* Parts → bones (a plain parts sheet from the library) */
.parts-dlg { display: flex; flex-direction: column; gap: 8px; }
.parts-dlg .seg button { min-width: 44px; min-height: 36px; }
.parts-list { display: flex; flex-direction: column; gap: 4px; max-height: 46vh; overflow: auto; }
.parts-row { display: flex; align-items: center; gap: 10px; min-height: 44px; }
.parts-thumb { image-rendering: pixelated; background: repeating-conic-gradient(#d5dae2 0 25%, #fff 0 50%) 0 0 / 8px 8px; flex: none; }
.parts-n { min-width: 56px; color: var(--muted); font-size: 13px; }
.parts-sel { flex: 1; min-width: 0; min-height: 36px; }
.parts-modal .pxs-modal-foot { flex-wrap: wrap; row-gap: 8px; }
html.pxs-simple .parts-sel, html.pxs-simple .parts-dlg .seg button { min-height: var(--touch); }
@media (max-width: 760px) {
  .infopill { display: none; }
  #exportBtn { padding: 0 9px; } #exportBtn > span:not(.ico) { display: none; }
  .timeline { max-height: 26vh; }
  .optionsbar .field { font-size: 11px; }
}
/* Simplified workspace (PIXX.workspace, html.pxs-simple): touch-sized keys, checkbox rows and the play button; Full is untouched */
html.pxs-simple .kf { width: 40px; height: 40px; border-radius: 9px; font-size: 15px; }
html.pxs-simple .pxs-app label.field { min-height: var(--touch); }
html.pxs-simple .ibtn.play { width: var(--touch); height: var(--touch); }
html.pxs-simple .moretools { width: calc(100% - 24px); margin: 8px 12px 14px; }
html.pxs-simple .brow, html.pxs-simple .prow { min-height: var(--touch); }
