/* PIXXULO — app-specific bits on top of ../shared/pixx.css (coral accent from [data-app=pixxulo]) */
.pxs-ws { --left-w: 270px; --right-w: 340px; }
.ws-scroll { flex: 1; overflow-y: auto; padding: 18px 20px 24px; min-height: 0; }
.ws-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 12px; }
.ws-head h2 { margin: 0; font-size: 15px; font-weight: 700; letter-spacing: -.01em; }
.ws-head .muted { font-size: 12px; }
/* swatch grid */
.swgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(var(--sw, 76px), 1fr)); gap: 8px; }
.sw { position: relative; aspect-ratio: 1; border-radius: 12px; border: 1px solid rgba(0,0,0,.4); box-shadow: inset 0 0 0 1px rgba(255,255,255,.07); cursor: pointer; transition: transform .1s, box-shadow .1s; display: flex; flex-direction: column; justify-content: flex-end; padding: 6px; touch-action: manipulation; user-select: none; }
.sw:hover { transform: translateY(-1px); }
.sw.sel { box-shadow: 0 0 0 2px var(--bg), 0 0 0 4px #fff; }
.sw.active { box-shadow: 0 0 0 2px var(--bg), 0 0 0 4px var(--acc), 0 6px 18px rgba(var(--acc-rgb), .35); }
.sw.dragging { opacity: .35; } .sw.dropbefore { box-shadow: -4px 0 0 var(--acc); }
.sw .hx { font: 600 10.5px var(--mono); opacity: .92; text-shadow: none; }
.sw .ix { position: absolute; left: 7px; top: 5px; font: 600 9.5px var(--mono); opacity: .7; }
.sw .lk { position: absolute; right: 5px; top: 4px; width: 20px; height: 20px; border-radius: 6px; display: inline-flex; align-items: center; justify-content: center; font-size: 11px; opacity: 0; background: rgba(0,0,0,.25); }
.sw:hover .lk, .sw .lk.on { opacity: 1; } .sw .lk.on { background: rgba(0,0,0,.45); }
.sw.add { background: rgba(255,255,255,.03); border: 1px dashed var(--line2); box-shadow: none; align-items: center; justify-content: center; color: var(--muted); font-size: 22px; }
.sw.add:hover { border-color: rgba(var(--acc-rgb), .6); color: #fff; }
.emptypal { padding: 30px; text-align: center; color: var(--muted); border: 1px dashed var(--line2); border-radius: 16px; }
/* preview */
.prev-card { margin-top: 22px; border-radius: 18px; border: 1px solid var(--line); background: rgba(255,255,255,.02); padding: 14px; }
.prev-row { display: flex; gap: 16px; flex-wrap: wrap; align-items: flex-start; }
.prev-stage { flex: 1 1 320px; display: flex; align-items: center; justify-content: center; min-height: 220px; border-radius: 14px; border: 1px solid var(--line); overflow: hidden; }
.prev-stage canvas { image-rendering: pixelated; max-width: 100%; max-height: 360px; }
.prev-side { flex: 0 1 260px; display: flex; flex-direction: column; gap: 8px; }
.strip { display: flex; height: 26px; border-radius: 8px; overflow: hidden; border: 1px solid var(--line2); }
.strip i { flex: 1; }
/* side panels */
.libsearch { padding: 10px 12px 4px; }
.libitem { display: flex; flex-direction: column; gap: 5px; width: 100%; padding: 8px 10px; border-radius: 10px; text-align: left; border: 1px solid transparent !important; }
.libitem:hover { background: rgba(255,255,255,.04); }
.libitem.on { background: rgba(var(--acc-rgb), .12); border-color: rgba(var(--acc-rgb), .45) !important; }
.libitem .nm { display: flex; justify-content: space-between; gap: 8px; font-weight: 600; font-size: 12.5px; }
.libitem .nm span:last-child { color: var(--muted); font-weight: 500; font-family: var(--mono); font-size: 11px; }
.ministrip { display: flex; height: 10px; border-radius: 4px; overflow: hidden; }
.ministrip i { flex: 1; min-width: 1px; }
.pnl-body .tabs { margin-bottom: 10px; }
#tools .tabs { gap: 2px; } #tools .tab { padding: 7px 8px; font-size: 12.5px; }
.bigchip { height: 72px; border-radius: 14px; border: 1px solid var(--line2); display: flex; align-items: flex-end; justify-content: space-between; padding: 8px 10px; font: 600 12px var(--mono); margin-bottom: 8px; }
.trk { position: relative; height: 14px; border-radius: 7px; margin: 4px 0 10px; border: 1px solid var(--line2); }
.trk input[type=range] { position: absolute; inset: -3px 0; width: 100%; background: transparent !important; opacity: 1; }
.trklbl { display: flex; justify-content: space-between; font-size: 11.5px; color: var(--muted); }
.trklbl b { color: var(--text); font: 600 11px var(--mono); }
.chips { display: flex; flex-wrap: wrap; gap: 4px; margin: 8px 0; }
.chips i { width: 30px; height: 30px; border-radius: 8px; border: 1px solid rgba(0,0,0,.4); }
.rgbrow { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 4px; }
.rgbrow .num, .rgbrow .text { width: 100%; }
.gamut { font-size: 11px; color: var(--warn); min-height: 15px; }
.cmatrix { border-collapse: collapse; font: 600 10.5px var(--mono); margin: 6px 0; }
.cmatrix td, .cmatrix th { width: 34px; height: 26px; text-align: center; border: 1px solid rgba(0,0,0,.35); padding: 0; }
.cmatrix th i { display: block; width: 100%; height: 100%; min-height: 20px; }
.cmatrix td.aaa { outline: 2px solid var(--good); outline-offset: -3px; } .cmatrix td.aa { outline: 1px dashed var(--good); outline-offset: -3px; }
.cmwrap { overflow: auto; max-height: 340px; }
.conf { font-size: 12px; display: flex; flex-direction: column; gap: 4px; }
.conf span { display: inline-flex; align-items: center; gap: 6px; }
.conf i { width: 16px; height: 16px; border-radius: 4px; border: 1px solid rgba(0,0,0,.4); display: inline-block; }
.dropmini { border: 1.5px dashed rgba(var(--acc-rgb), .5); border-radius: 12px; padding: 14px; text-align: center; color: var(--muted); cursor: pointer; font-size: 12px; }
.dropmini:hover, .dropmini.over { background: rgba(var(--acc-rgb), .08); color: #fff; }
.extract-img { max-width: 100%; max-height: 160px; border-radius: 10px; display: block; margin: 8px auto; image-rendering: auto; }
.expre { max-height: 300px; overflow: auto; background: var(--panel2); border: 1px solid var(--line2); border-radius: 10px; padding: 10px; font: 11.5px/1.45 var(--mono); white-space: pre-wrap; word-break: break-all; margin: 8px 0; }
@media (max-width: 760px) {
  .ws-scroll { padding: 12px; } .swgrid { --sw: 58px; gap: 6px; }
  .prev-stage { min-height: 160px; }
}
.libthumb { width: 100%; height: 12px; object-fit: fill; image-rendering: pixelated; border-radius: 3px; }
/* Simplified workspace (Apps menu → Workspace): touch-sized library rows, locks visible without hover, "More tools…" */
html.pxs-simple .libitem { min-height: var(--touch); justify-content: center; }
html.pxs-simple .sw .lk { opacity: .85; width: 28px; height: 28px; font-size: 14px; }
html.pxs-simple .pxs-app .more-adv { display: flex !important; margin-top: 16px; }
