/* The work area shared by PlateOff for computer (app.html) and the free page (../blur/): the run line, the toolbar, the grid of photos with
   their progress rings, and the viewer (clean result, before / after, Fix). Needs the page's --bg --card --line --text --soft --dim --acc --bad. */
.run{font-size:15px;color:var(--soft);margin:16px 0 0;min-height:22px;font-variant-numeric:tabular-nums}.run.bad{color:var(--bad)}
.bar{position:sticky;top:0;z-index:5;display:flex;gap:8px;align-items:center;flex-wrap:wrap;margin:10px 0 14px;padding:10px 0;background:var(--bg);border-bottom:1px solid var(--line)}
.bar .sum{font-weight:700;margin-right:auto;font-variant-numeric:tabular-nums}
.list{display:grid;grid-template-columns:repeat(auto-fill,minmax(210px,1fr));gap:14px}
@media(max-width:520px){.list{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}}
.item{min-width:0;display:flex;flex-direction:column;gap:7px}
.th{position:relative;display:flex;align-items:center;justify-content:center;aspect-ratio:4/3;border-radius:12px;overflow:hidden;background:#000;border:1px solid var(--line);padding:0;width:100%;color:inherit;font:inherit}
.th.go{cursor:zoom-in}.th.go:hover{border-color:#4a4a55}
.th .pic{width:100%;height:100%;object-fit:cover;display:block}
.item[data-state=wait] .pic,.item[data-state=work] .pic,.item[data-state=stopped] .pic{filter:brightness(.45) saturate(.6)}
.ring{position:absolute;inset:0;display:flex;align-items:center;justify-content:center}
.ring svg{width:64px;height:64px;transform:rotate(-90deg)}.ring circle{fill:none;stroke-width:4;stroke:rgba(255,255,255,.22)}
.ring .fg{stroke:var(--acc);stroke-dasharray:100;stroke-dashoffset:100;stroke-linecap:round;transition:stroke-dashoffset .25s}
.ring b{position:absolute;font-size:15px;font-weight:800;font-variant-numeric:tabular-nums;color:#fff}
.chip{position:absolute;left:8px;bottom:8px;max-width:calc(100% - 16px);font-size:12px;font-weight:700;line-height:1;padding:6px 8px;border-radius:7px;background:rgba(0,0,0,.72);color:#fff;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.chip.ok:before{content:"";display:inline-block;width:7px;height:7px;border-radius:50%;background:#5bd68a;margin-right:6px;vertical-align:1px}
.chip.warn{background:var(--acc);color:#141100}.chip.bad{background:var(--bad);color:#1a0300}
.th video{width:100%;height:100%;object-fit:contain;display:block}
.nm{font-size:13px;font-weight:600;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;color:var(--soft)}
.st{font-size:13px;color:var(--dim)}.st:empty{display:none}.st.bad{color:var(--bad)}
.act{display:flex;gap:6px}.act .btn{flex:1}.act:empty{display:none}
#ed{position:fixed;inset:0;z-index:20;overscroll-behavior:contain;background:#050506;display:flex;flex-direction:column;gap:10px;padding:max(12px,env(safe-area-inset-top,0px)) 14px max(12px,env(safe-area-inset-bottom,0px))}
#ed .tp{display:flex;gap:8px;align-items:center;flex-wrap:wrap}#ed .sp{flex:1}
#edt{color:var(--soft);font-size:15px;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:46vw}
#ed[data-mode=fix] #edt{white-space:normal;max-width:none;flex:1}
#ed .ico{min-width:40px;font-size:20px;padding:4px 10px}
#ed .cv{flex:1;min-height:0;display:flex;align-items:center;justify-content:center}
#edc{max-width:100%;max-height:100%;touch-action:none;cursor:ew-resize;border-radius:6px}#ed[data-mode=fix] #edc{cursor:crosshair}
#edcmp[aria-pressed=true]{background:var(--text);color:var(--bg);border-color:var(--text)}
#ed .tl{display:flex;gap:12px;align-items:center;color:var(--soft);font-size:14px}#edr{flex:1;min-width:0;accent-color:var(--acc)}
#ed .kb{margin:0;text-align:center;color:var(--dim);font-size:13px;white-space:pre}#ed .kb:empty{display:none}
@media(max-width:600px){#edt{max-width:none;flex-basis:100%;order:-1}#ed .sp{display:none}#ed .tp .btn{flex:1}#ed .ico{flex:0 0 auto}}
@media(prefers-reduced-motion:reduce){.ring .fg{transition:none}}
