/* PIXXOKU — app-specific bits on top of ../shared/pixx.css (citron accent from [data-app=pixxoku]) */
.pxs-ws { --left-w: 300px; --right-w: 360px; }
.pxs-side { overflow-y: auto; }
#view { position: absolute; left: 0; top: 0; width: 100%; height: 100%; display: block; touch-action: none; cursor: crosshair; }
#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: 520px; text-align: center; }
.stage-empty .dropzone .row { justify-content: center; margin-top: 14px; }
.zoompill { left: 12px; bottom: 12px; }
.zoompill .zl { min-width: 54px; text-align: center; font: 600 12px var(--mono); }
.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: 2; }
.splitlbl.l { left: 12px; } .splitlbl.r { right: 12px; color: var(--acc); }
.dragover::after { content: 'Drop art to check it'; 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; }
.hidden { display: none !important; }

/* frames strip */
.framebar { position: absolute; left: 12px; right: 12px; bottom: 12px; width: fit-content; max-width: calc(100% - 24px); margin: 0 auto; display: flex; align-items: center; gap: 8px; padding: 6px 8px; border-radius: 14px; background: rgba(20,21,31,.86); border: 1px solid var(--line2); backdrop-filter: blur(12px); z-index: 2; }
.fstrip { display: flex; gap: 6px; overflow-x: auto; min-width: 0; padding: 4px 4px 2px 0; }
.fcell { position: relative; flex: 0 0 auto; width: 44px; height: 44px; padding: 3px; border-radius: 9px; border: 1px solid var(--line) !important; background: repeating-conic-gradient(#1d1e2b 0 25%, #242536 0 50%) 0 0 / 8px 8px !important; }
.fcell.on { border-color: var(--acc) !important; box-shadow: 0 0 0 1px var(--acc); }
.fthumb { width: 100%; height: 100%; object-fit: contain; image-rendering: pixelated; }
.fnum { position: absolute; left: 3px; bottom: 1px; font: 600 9px var(--mono); color: var(--muted); }
.fbad { position: absolute; right: -4px; top: -4px; min-width: 16px; height: 16px; padding: 0 4px; border-radius: 8px; background: var(--warn); color: #1b1600; font: 800 10px/16px var(--font); text-align: center; }

/* score card */
.scorecard { display: flex; flex-direction: column; gap: 10px; }
.ring { --p: 0; position: relative; width: 84px; height: 84px; border-radius: 50%; margin: 2px auto 0; display: flex; flex-direction: column; align-items: center; justify-content: center; background: radial-gradient(closest-side, var(--panel) 78%, transparent 79%), conic-gradient(var(--acc) calc(var(--p) * 1%), rgba(255,255,255,.08) 0); }
.ring b { font: 800 30px/1 var(--font); color: var(--acc); }
.ring span { font: 600 11px var(--mono); color: var(--muted); }
.ring.big { width: 96px; height: 96px; margin: 0; flex: 0 0 auto; }
.cats { display: flex; flex-direction: column; gap: 5px; }
.catrow { display: grid; grid-template-columns: 1fr 90px 28px; align-items: center; gap: 8px; font-size: 12px; }
.catrow b { font: 600 11.5px var(--mono); text-align: right; }
.bar { display: block; height: 6px; border-radius: 3px; background: rgba(255,255,255,.07); overflow: hidden; }
.bar > i { display: block; height: 100%; border-radius: 3px; }
.sevcounts { display: flex; justify-content: space-between; gap: 6px; font-size: 11.5px; color: var(--muted); }
.sevcounts span { display: inline-flex; align-items: center; gap: 5px; }
.sevcounts i { width: 8px; height: 8px; border-radius: 50%; background: var(--sev); }

/* rules */
.rulerow { border-radius: 10px; padding: 1px 0; }
.rulerow.off .rr-name { color: var(--muted); }
.rr-head { display: flex; align-items: center; gap: 8px; min-height: 34px; }
.rr-head input[type=checkbox] { flex: 0 0 auto; }
.rr-name { flex: 1 1 auto; text-align: left; padding: 6px 4px; border-radius: 8px; font-size: 12.5px; font-weight: 600; color: var(--text); background: none !important; border: 0 !important; min-height: 32px; }
.rr-name:hover { color: var(--acc); }
.rr-body { padding: 0 2px 10px 26px; display: flex; flex-direction: column; gap: 8px; }
.cnt { min-width: 22px; height: 20px; padding: 0 6px; border-radius: 10px; background: var(--sev, var(--warn)); color: #15130a; font: 800 11px/20px var(--font); text-align: center; }
.ok { color: var(--good); font-weight: 800; font-size: 13px; padding: 0 4px; }
.pnl-head .cnt { margin-left: auto; }
.swatch { display: inline-block; width: 14px; height: 14px; border-radius: 4px; border: 1px solid var(--line2); }
.sl.full { display: grid; grid-template-columns: 80px 1fr 22px; align-items: center; gap: 8px; }
.num.wide { width: 100%; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.grid4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.grid4 .num { width: 100%; }
.seg.sm button { padding: 4px 9px; font-size: 11.5px; }

/* right panel */
.rbody { padding: 4px 14px 18px; display: flex; flex-direction: column; gap: 10px; }
.tabs.pad { padding: 10px 12px 6px; position: sticky; top: 0; z-index: 2; background: var(--panel); flex-wrap: wrap; }
.tabn { margin-left: 5px; padding: 0 6px; border-radius: 8px; background: rgba(var(--acc-rgb), .2); font-size: 10.5px; }
.issuebar { align-items: center; }
.idetail { border: 1px solid var(--sev); border-radius: 14px; padding: 12px; background: linear-gradient(180deg, rgba(255,255,255,.035), transparent); display: flex; flex-direction: column; gap: 8px; }
.id-head { display: flex; align-items: center; gap: 8px; }
.id-head .muted { margin-left: auto; }
.id-msg { margin: 0; font-weight: 600; }
.sevdot { width: 10px; height: 10px; border-radius: 50%; background: var(--sev); flex: 0 0 auto; box-shadow: 0 0 0 3px rgba(255,255,255,.05); }
.note { margin: 0; font-size: 12px; line-height: 1.5; color: var(--muted); }
.note b { color: var(--text); }
.bapair { display: flex; align-items: center; justify-content: center; gap: 10px; padding: 8px; border-radius: 12px; background: rgba(0,0,0,.18); }
.bapair figure, .rtile { margin: 0; display: flex; flex-direction: column; align-items: center; gap: 4px; }
.bapair figcaption, .rtile figcaption { font-size: 10.5px; color: var(--muted); font-weight: 600; }
.bapair .arrow { color: var(--acc); font-weight: 800; }
canvas.pix { image-rendering: pixelated; border-radius: 6px; background: repeating-conic-gradient(#1d1e2b 0 25%, #242536 0 50%) 0 0 / 8px 8px; max-width: 100%; }
.igroup { border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.igroup.open { border-color: color-mix(in srgb, var(--sev) 55%, var(--line)); }
.ig-head { display: flex; align-items: center; gap: 8px; width: 100%; padding: 9px 10px; min-height: 44px; text-align: left; background: rgba(255,255,255,.02) !important; border: 0 !important; border-radius: 0 !important; }
.ig-head .ig-name { font-weight: 700; font-size: 12.5px; }
.ig-head .muted { margin-left: auto; }
.ig-head .cnt { background: var(--sev); }
.ig-list { display: flex; flex-direction: column; border-top: 1px solid var(--line); max-height: 260px; overflow-y: auto; }
.iitem { display: flex; justify-content: space-between; gap: 8px; padding: 8px 12px; min-height: 36px; font-size: 12px; text-align: left; border: 0 !important; border-radius: 0 !important; background: none !important; color: var(--text); }
.iitem:hover { background: rgba(255,255,255,.04) !important; }
.iitem.on { background: rgba(var(--acc-rgb), .14) !important; box-shadow: inset 3px 0 0 var(--acc); }
.allclear { padding: 18px; border-radius: 14px; text-align: center; border: 1px dashed rgba(var(--acc-rgb), .5); background: rgba(var(--acc-rgb), .06); }
.allclear b { color: var(--acc); font-size: 16px; }
.rgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(70px, 1fr)); gap: 8px; align-items: end; }
.rtile canvas { max-width: 100%; image-rendering: pixelated; border-radius: 6px; }
.palrow { display: grid; grid-template-columns: repeat(auto-fill, minmax(20px, 1fr)); gap: 3px; }
.palrow i { aspect-ratio: 1; border-radius: 5px; border: 1px solid rgba(0,0,0,.4); box-shadow: inset 0 0 0 1px rgba(255,255,255,.06); }
.ramps { display: flex; flex-direction: column; gap: 6px; }
.ramp { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.rsw { display: flex; } .rsw i { width: 20px; height: 20px; } .rsw i:first-child { border-radius: 5px 0 0 5px; } .rsw i:last-child { border-radius: 0 5px 5px 0; }
.badbadge { color: var(--bad); }
.repsum { display: flex; gap: 14px; align-items: center; }
.repsum p { margin: 2px 0; }
.reptable { width: 100%; border-collapse: collapse; font-size: 12px; }
.reptable td, .reptable th { padding: 6px 8px; border-bottom: 1px solid var(--line); text-align: left; }
.reptable td:last-child { text-align: right; font-family: var(--mono); }
.batchwrap { max-height: 46vh; overflow-y: auto; margin-top: 8px; }
.lessons { display: flex; flex-direction: column; gap: 6px; }
.lesson { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; width: 100%; padding: 8px 10px; margin-top: 4px; border-radius: 10px; text-align: left; border: 1px solid var(--line) !important; background: rgba(255,255,255,.025) !important; white-space: normal; }
.lesson:hover { border-color: rgba(var(--acc-rgb), .55) !important; }
.lesson .chip { margin-top: 3px; }
.lh { margin: 6px 0 0; font-size: 16px; color: var(--acc); }
.bapair.big canvas { min-width: 90px; }
.pxs-stage.has-frames .zoompill { bottom: 82px; }
/* My rules (PIXX.settings presets) */
.pxs-app .mypresets { list-style: none; margin: 4px 0 0; padding: 0; display: grid; gap: 2px; }
.pxs-app .mypresets li { display: flex; align-items: center; gap: 6px; }
.pxs-app .mypresets .linkbtn { flex: 1; text-align: left; padding: 5px 6px; border-radius: 6px; color: var(--text); font-size: 12.5px; min-height: 30px; }
.pxs-app .mypresets .linkbtn:hover { background: rgba(255,255,255,.06); color: var(--acc); }
@media (max-width: 760px) {
  .splitlbl { display: none; }
  #exportBtn > span:not(.ico), #exportBtn { font-size: 0; gap: 0; padding: 0 9px; } #exportBtn .ico { font-size: 13px; }
}
/* Simplified workspace (PIXX.workspace, html.pxs-simple): the ⋯ menu shows at every width so Batch 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 .iitem { min-height: 44px; align-items: center; }
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); }
