/* PICTURE VIEWER — workplace evidence viewer look (web/ui-v4-evidence.css "evidence viewer"), on the retail
   theme. Uses the --ev-* tokens and the .pc-type pill from person/person-card.css. */
html.evr-lock,html.evr-lock body{overflow:hidden!important}
.evr-root{position:fixed;inset:0;z-index:1100;display:flex;align-items:center;justify-content:center;padding:24px;font-family:var(--vx-font)}
.evr-root[hidden]{display:none!important}
.evr-root .mono{font-family:var(--vx-mono);font-variant-numeric:tabular-nums}
.evr-scrim{position:absolute;inset:0;background:var(--ev-scrim);backdrop-filter:blur(4px) saturate(120%);animation:evrFade .2s ease both}
.evr-modal{position:relative;width:min(1060px,100%);max-height:calc(100dvh - 48px);display:flex;flex-direction:column;
  background:linear-gradient(180deg,color-mix(in srgb,var(--ev-brand) 5%,transparent),transparent 140px),var(--ev-panel);
  color:var(--ev-text);border:1px solid var(--ev-line);border-radius:var(--ev-r-lg);box-shadow:var(--ev-shadow-3);overflow:hidden;font-size:14px;animation:evrIn .26s var(--ev-ease) both}
@keyframes evrFade{from{opacity:0}to{opacity:1}}
@keyframes evrIn{from{opacity:0;transform:translateY(8px) scale(.985)}to{opacity:1;transform:none}}
.evr-head{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:14px 16px 12px 20px;border-bottom:1px solid var(--ev-line);background:var(--ev-glass);flex:0 0 auto}
.evr-ht{min-width:0}
.evr-head h2{margin:0;font-size:16px;font-weight:600;letter-spacing:-.01em;color:var(--ev-text)}
.evr-head small{display:block;margin-top:2px;color:var(--ev-muted);font-size:12px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.evr-x{width:34px;height:34px;flex:0 0 auto;border:1px solid var(--ev-line2);border-radius:var(--ev-r);background:var(--ev-panel);color:var(--ev-text2);display:grid;place-items:center;cursor:pointer;transition:background-color .16s,color .16s,transform .16s var(--ev-ease),box-shadow .16s}
.evr-x:hover{background:var(--ev-hover);color:var(--ev-text);transform:translateY(-1px);box-shadow:var(--ev-shadow-1)}
.evr-body{display:grid;grid-template-columns:minmax(0,1.2fr) minmax(0,.8fr);gap:18px;padding:18px;overflow:auto;min-height:0;scrollbar-width:none}
.evr-body::-webkit-scrollbar{display:none}
.evr-left{min-width:0;display:flex;flex-direction:column;gap:10px}
/* 16:9 stage, picture CONTAINED: a portrait face crop is never stretched or cut */
.evr-frame{position:relative;aspect-ratio:1/1;width:min(100%,512px);margin:0 auto;border-radius:var(--ev-r-lg);overflow:hidden;background:radial-gradient(circle at 50% 40%,var(--ev-panel2),var(--ev-panel3) 75%);box-shadow:inset 0 0 0 1px var(--ev-line)}
.evr-frame>img{position:absolute;inset:0;width:100%;height:100%;object-fit:contain;opacity:0;transition:opacity .22s var(--ev-ease)}
.evr-frame>img.on{opacity:1}
.evr-ph{position:absolute;inset:0;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:8px;color:var(--ev-muted);font-size:13px;text-align:center;padding:12px}
.evr-ph.off{visibility:hidden}
.evr-ph-g::after{content:"\1F464"}
.evr-ph>.evr-ph-g{font-size:54px;line-height:1;opacity:.5}
.evr-link{border:0;background:none;color:var(--ev-brand);font:inherit;font-weight:600;cursor:pointer;padding:2px 4px}
.evr-nav{position:absolute;top:50%;transform:translateY(-50%);width:40px;height:40px;border-radius:50%;border:1px solid var(--ev-line);background:var(--ev-glass);backdrop-filter:blur(8px);color:var(--ev-text);display:grid;place-items:center;cursor:pointer;z-index:2;box-shadow:var(--ev-shadow-1);transition:background-color .16s,transform .16s var(--ev-ease),opacity .16s}
.evr-nav:hover:not([disabled]){background:var(--ev-panel);transform:translateY(-50%) scale(1.06)}
.evr-nav[disabled]{opacity:.3;cursor:default}
.evr-prev{left:12px}.evr-next{right:12px}
.evr-count,.evr-still{position:absolute;bottom:10px;z-index:2;padding:2px 8px;border-radius:var(--ev-r);background:var(--ev-glass);backdrop-filter:blur(8px);color:var(--ev-text2);border:1px solid var(--ev-line);font:500 11px/1.6 var(--vx-mono);font-variant-numeric:tabular-nums}
.evr-count{right:10px}.evr-still{left:10px}
.evr-count[hidden]{display:none}
.evr-keys{margin:0;font-size:11.5px;color:var(--ev-muted)}
.evr-keys kbd{font:500 11px var(--vx-mono);padding:1px 5px;border:1px solid var(--ev-line2);border-bottom-width:2px;border-radius:var(--ev-r);background:var(--ev-panel2);color:var(--ev-text2);margin-right:3px}
/* strip of the other pictures: portrait 7:9 tiles, sideways scroll (no visible bar) */
.evr-strip{display:flex;gap:8px;overflow-x:auto;padding:4px 2px 6px;scrollbar-width:none}
.evr-strip::-webkit-scrollbar{display:none}
.evr-strip[hidden]{display:none}
.evr-th{flex:0 0 auto;width:62px;border:0;background:none;padding:0;color:var(--ev-muted);cursor:pointer;display:flex;flex-direction:column;align-items:center;gap:4px}
.evr-th-img{position:relative;width:62px;height:80px;border-radius:var(--ev-r);overflow:hidden;background:var(--ev-panel3);box-shadow:inset 0 0 0 1px var(--ev-line);display:flex;align-items:center;justify-content:center;transition:box-shadow .18s var(--ev-ease),transform .18s var(--ev-ease),opacity .18s;opacity:.82}
.evr-th-img .evr-ph-g{font-size:24px;opacity:.5}
.evr-th-img img{position:absolute;inset:0;width:100%;height:100%;object-fit:contain;opacity:0;transition:opacity .2s}
.evr-th-img img.on{opacity:1}
.evr-th:hover .evr-th-img{opacity:1;transform:translateY(-2px);box-shadow:inset 0 0 0 1px var(--ev-line2),var(--ev-shadow-1)}
.evr-th.on .evr-th-img{opacity:1;box-shadow:inset 0 0 0 2px var(--ev-brand),var(--ev-focus)}
.evr-th-t{font:500 11px var(--vx-mono);font-variant-numeric:tabular-nums}
.evr-th.on .evr-th-t{color:var(--ev-brand);font-weight:600}
.evr-side{min-width:0;display:flex;flex-direction:column;gap:12px}
.evr-card{border:1px solid var(--ev-line);border-radius:var(--ev-r-lg);background:var(--ev-panel);padding:12px 14px;box-shadow:var(--ev-shadow-1)}
.evr-card h3{margin:0 0 8px;font-size:11.5px;font-weight:600;letter-spacing:.06em;text-transform:uppercase;color:var(--ev-muted)}
.evr-kv{display:grid;grid-template-columns:minmax(96px,auto) minmax(0,1fr);gap:0;margin:0}
.evr-kv dt,.evr-kv dd{margin:0;padding:7px 0;border-top:1px solid var(--ev-line);font-size:13px;line-height:1.4}
.evr-kv dt:first-of-type,.evr-kv dt:first-of-type+dd{border-top:0}
.evr-kv dt{color:var(--ev-muted);padding-right:12px}
.evr-kv dd{color:var(--ev-text);min-width:0;overflow-wrap:anywhere}
.evr-dim{color:var(--ev-muted)}
.evr-acts{display:flex;flex-wrap:wrap;gap:8px}
.evr-note{margin:0;font-size:11.5px;color:var(--ev-muted);line-height:1.45}
@media (max-width:900px){.evr-body{grid-template-columns:1fr}}
@media (max-width:640px){
  .evr-root{padding:0;align-items:stretch}
  .evr-modal{width:100%;max-height:100dvh;height:100dvh;border-radius:0;border:0}
  .evr-body{padding:10px;gap:10px}
  .evr-frame{aspect-ratio:1/1}
  .evr-nav{width:44px;height:44px}
  .evr-keys{display:none}
  .evr-th{width:56px}.evr-th-img{width:56px;height:72px}
  .evr-btn{flex:1 1 calc(50% - 4px);justify-content:center;min-height:40px}
}
@media (prefers-reduced-motion:reduce){.evr-scrim,.evr-modal{animation:none!important}.evr-btn,.evr-th-img,.evr-nav{transition:none!important}}

/* PERSON PATH strip (owner 10-11, like workplace 633677a): one card per stay / door pass, best photo only, walk time between */
.evr-strip.evr-path{align-items:stretch;gap:0;padding:4px 2px 10px;flex-wrap:nowrap;overflow-x:auto;overflow-y:hidden;scrollbar-width:none;scroll-behavior:smooth}
.evr-strip.evr-path::-webkit-scrollbar{display:none}
.evr-ps,.evr-pl{flex-shrink:0}
.evr-ps{flex:0 0 auto;width:128px;border:1px solid var(--ev-line);border-radius:12px;background:var(--ev-panel,#fff);padding:7px;cursor:pointer;display:flex;flex-direction:column;align-items:flex-start;gap:1px;text-align:left;color:var(--ev-text);font:inherit}
.evr-ps.pass{width:100px;border-style:dashed;background:var(--ev-panel2,#f5f8fb)}
.evr-ps.on{border:2px solid var(--ev-brand)}
.evr-ps-img{position:relative;width:100%;height:88px;border-radius:9px;overflow:hidden;background:var(--ev-panel3);display:flex;align-items:center;justify-content:center;margin-bottom:5px}
.evr-ps.pass .evr-ps-img{height:68px}
.evr-ps-img img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;opacity:0;transition:opacity .2s}
.evr-ps-img img.on{opacity:1}
.evr-ps b{font-size:12.5px;max-width:100%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.evr-ps-t{font:500 11.5px var(--vx-mono,ui-monospace,monospace);font-variant-numeric:tabular-nums;margin-top:2px}
.evr-ps-d{font-size:11.5px;font-weight:700;color:var(--ev-brand)}
.evr-ps.pass .evr-ps-d{color:#7a5af8;font-weight:600}
.evr-pl{flex:0 0 38px;display:flex;flex-direction:column;justify-content:center;align-items:center;font-size:10.5px;color:var(--ev-muted);white-space:nowrap}
.evr-pl::before{content:"";display:block;width:100%;height:2px;background:var(--ev-line2);margin-bottom:4px}
.evr-super{display:flex;align-items:center;flex-wrap:wrap;gap:8px;margin-top:4px;font-size:13px;color:var(--ev-muted)}
.evr-card[hidden]{display:none}
/* owner 11-11: Original / Enhance / Zoom on the big picture at least 32 px tall */
#evViewer .psqe-bar .psqe-btn{min-height:32px}
@media (max-width:767px){.evr-ps{width:108px}.evr-ps.pass{width:88px}.evr-ps-img{height:74px}.evr-pl{flex-basis:22px}}
/* owner 10-11: the step row fits under the picture on a laptop screen and scrolls sideways with arrows / the wheel */
.evr-stripw{position:relative;min-width:0}
.evr-sa{position:absolute;top:50%;transform:translateY(-50%);z-index:2;width:32px;height:32px;border-radius:50%;border:1px solid var(--ev-line);background:var(--ev-panel,#fff);color:var(--ev-text);display:flex;align-items:center;justify-content:center;cursor:pointer;box-shadow:var(--ev-shadow-1,0 2px 6px rgba(0,0,0,.15))}
.evr-sa[hidden]{display:none}
.evr-sa-l{left:-4px}.evr-sa-r{right:-4px}
.evr-pathmode .evr-frame{width:min(100%,512px,calc(100vh - 330px))}
