/* ============================================================
   .shock Suite — shared in-browser APP shell
   Reused by cull / edit / release web prototypes.
   Loads AFTER shock.css (uses its tokens + fonts).
   Local-first: everything runs client-side, files never upload.
   ============================================================ */

/* Unified Suite-app logo fonts — app name (DM Serif Display, italic) + ".shock" (Sora 800).
   Self-hosted (local-first — NO external font CDN; a Google Fonts @import here broke CSP +
   offline). Drop the two woff2 files into /assets/fonts/ to render the exact faces; until
   then the system-serif + local ExtraBold fallbacks below keep the wordmark on-brand offline. */
@font-face { font-family:'DM Serif Display'; font-style:italic; font-weight:400; font-display:swap;
  src:url('/assets/fonts/DMSerifDisplay-Italic.woff2') format('woff2'); }
@font-face { font-family:'Sora'; font-style:normal; font-weight:800; font-display:swap;
  src:url('/assets/fonts/Sora-ExtraBold.woff2') format('woff2'); }

:root {
  --app-bg:      #0e0e10;
  --app-surface: #18181b;
  --app-surface2:#1f1f24;
  --app-line:    #2a2a31;
  --pick:        #3FB950;
  --reject:      #C8070A;
  --unsure:      #D9A60A;
  --info:        #4A8FFF;
}

html.app-mode, html.app-mode body { height: 100%; overflow: hidden; }
body.app-body {
  margin: 0;
  background: var(--app-bg);
  color: var(--text);
  font-family: var(--font-display);
  font-size: 14px;
  line-height: 1.45;
  height: 100vh;
  display: flex;
  flex-direction: column;
}
.app-mono { font-family: var(--font-mono); font-variant-numeric: tabular-nums; }

/* ---------- TOPBAR ---------- */
.app-topbar {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 16px;
  height: 52px;
  padding: 0 16px;
  background: var(--app-surface);
  border-bottom: 1px solid var(--app-line);
  z-index: 30;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
}
.app-topbar > * { flex-shrink: 0; }

/* Reserve room at the true viewport edge for the globally-injected floating
   ".shock Suite" menu + Account menu (suite-menu.js — position:fixed, so they
   sit ON TOP of whatever is underneath). Those widgets anchor themselves to a
   centered max-1280px marketing-page container; app shells are full-bleed, so
   without this gutter their own topbar buttons render directly underneath the
   floating widgets. See html.app-mode overrides in suite-menu.js's injected
   CSS for the matching fixed offsets. */
html.app-mode .app-topbar { padding-right: 240px; }
@media (max-width: 520px) {
  /* below 520px the account widget drops its name label (suite-menu.js), so
     its worst-case width shrinks — needs a smaller reserved gutter. */
  html.app-mode .app-topbar { padding-right: 140px; }
}
.app-brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-weight: 700;
  letter-spacing: -0.01em;
  font-size: 15px;
  white-space: nowrap;
}
.app-chev {
  width: 22px; height: 22px;
  background: var(--red);
  border-radius: 3px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  flex-shrink: 0;
}
.app-brand .dot { color: var(--red); }
.app-brand small { color: var(--dim); font-weight: 500; }

/* ── Unified Suite-app logo — tag.shock lockup + shared red arrow-box mark ──
   Single dynamic logo for every Suite app: the first word (app name) is the only
   variable; ".shock" + the arrow-box (shock-box-tight.png — same mark as the
   main site .shock logo) are fixed. Same typography/proportions as the tag.shock
   app, scaled to the 52px app topbar. */
.suite-logo { display:inline-flex; align-items:flex-end; gap:8px; text-decoration:none; line-height:1; transition:opacity .15s ease; }
.suite-logo:hover { opacity:.82; }
.suite-logo__word { display:flex; align-items:flex-end; letter-spacing:-1px; line-height:1; gap:0; }
.suite-logo__name { font-family:'DM Serif Display', Georgia, 'Times New Roman', serif; font-style:italic; font-size:26px; line-height:.85;
  color:var(--app-text, var(--text, #EDECF2)); position:relative; top:5px; }
.suite-logo__dot { width:6px; height:6px; border-radius:50%; background:var(--red, #C8070A);
  display:inline-block; flex-shrink:0; margin-bottom:-1px; }
.suite-logo__dot--first { position:relative; top:5px; margin-bottom:0; }
.suite-logo__shock { font-family:'Sora', 'Plus Jakarta Sans', system-ui, sans-serif; font-weight:800; font-size:14px;
  color:var(--app-text, var(--text, #EDECF2)); }
.suite-logo__box { width:20px; height:18px; flex-shrink:0; margin-bottom:1px;
  background:url("/assets/img/shock-box-tight.png") center / contain no-repeat; }

.app-topbar__spacer { flex: 1 1 auto; }

.app-engine {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 12px;
  color: var(--dim);
  font-family: var(--font-mono);
  padding: 5px 10px;
  border: 1px solid var(--app-line);
  border-radius: 999px;
}
.app-engine__dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--unsure);
  box-shadow: 0 0 0 0 rgba(217,166,10,0.5);
}
.app-engine--on .app-engine__dot { background: var(--pick); }
.app-engine--off .app-engine__dot { background: var(--faint); }

/* ---------- BUTTONS (app context) ---------- */
.ab {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 14px;
  border: 1px solid var(--app-line);
  border-radius: var(--radius);
  background: var(--app-surface2);
  color: var(--text);
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  transition: border-color .15s, background .15s, transform .08s;
}
.ab:hover { border-color: var(--line2); background: #26262d; }
.ab:active { transform: translateY(1px); }
.ab--primary { background: var(--red); border-color: var(--red); color: #fff; }
.ab--primary:hover { background: #e21114; border-color: #e21114; }
.ab--ghost { background: transparent; }
.ab--sm { padding: 5px 10px; font-size: 12px; }
.ab[disabled] { opacity: .45; pointer-events: none; }
.ab svg { width: 15px; height: 15px; }

/* ---------- BODY LAYOUT ---------- */
.app-body-grid {
  flex: 1 1 auto;
  display: grid;
  grid-template-columns: 220px 1fr 320px;
  min-height: 0;
}
.app-body-grid.no-inspector { grid-template-columns: 220px 1fr; }

.app-rail {
  background: var(--app-surface);
  border-right: 1px solid var(--app-line);
  display: flex;
  flex-direction: column;
  min-height: 0;
  overflow-y: auto;
}
.app-rail__group { padding: 14px 14px 6px; }
.app-rail__title {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--faint);
  margin-bottom: 10px;
}
.app-rail__item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  width: 100%;
  padding: 8px 10px;
  border-radius: var(--radius);
  color: var(--dim);
  font-size: 13px;
  text-align: left;
  background: none;
  border: none;
}
.app-rail__item:hover { background: var(--app-surface2); color: var(--text); }
.app-rail__item.is-active { background: var(--app-surface2); color: var(--text); }
.app-rail__item .count { font-family: var(--font-mono); font-size: 12px; color: var(--faint); }
.app-rail__spacer { flex: 1 1 auto; }
.app-rail__select {
  width: 100%; background: var(--app-bg); border: 1px solid var(--app-line); color: var(--text);
  border-radius: var(--radius); padding: 7px 9px; font: inherit; font-size: 13px;
}
.app-rail__select:focus { outline: none; border-color: var(--red); box-shadow: 0 0 0 3px rgba(200,7,10,.28); }

/* checkbox-ish filter rows */
.app-filter { display: flex; flex-direction: column; gap: 4px; }
.app-filter label {
  display: flex; align-items: center; gap: 8px;
  font-size: 13px; color: var(--dim); padding: 5px 10px; border-radius: var(--radius);
  cursor: pointer;
}
.app-filter label:hover { background: var(--app-surface2); color: var(--text); }
.app-filter input[type=checkbox] { accent-color: var(--red); }
.app-filter .chip-dot { width: 9px; height: 9px; border-radius: 2px; flex-shrink: 0; }

/* ---------- MAIN ---------- */
.app-main {
  display: flex;
  flex-direction: column;
  min-height: 0;
  min-width: 0;
  background: var(--app-bg);
}
.app-toolbar {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--app-line);
  background: var(--app-surface);
}
.app-tabs { display: inline-flex; gap: 4px; }
.app-tab {
  padding: 6px 12px; border-radius: var(--radius); background: none; border: 1px solid transparent;
  color: var(--dim); font-size: 13px; font-weight: 600;
}
.app-tab:hover { color: var(--text); }
.app-tab.is-active { background: var(--app-surface2); border-color: var(--app-line); color: var(--text); }
.app-toolbar__spacer { flex: 1 1 auto; }
.app-toolbar .app-mono { color: var(--dim); font-size: 12px; }

.app-scroll { flex: 1 1 auto; overflow: auto; min-height: 0; padding: 14px; }

/* ---------- DROPZONE / EMPTY STATE ---------- */
.app-empty {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
}
.app-dropzone {
  width: min(560px, 100%);
  border: 2px dashed var(--app-line);
  border-radius: 10px;
  padding: 48px 36px;
  text-align: center;
  transition: border-color .2s, background .2s;
}
.app-dropzone.is-drag { border-color: var(--red); background: rgba(200,7,10,0.06); }
.app-dropzone h2 { font-size: 22px; margin-bottom: 10px; }
.app-dropzone p { color: var(--dim); margin-bottom: 22px; font-size: 14px; }
.app-dropzone__icon { color: var(--faint); margin: 0 auto 18px; width: 46px; height: 46px; }
.app-dropzone__actions { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.app-dropzone__more { margin-top: 12px; font-size: 13px; color: var(--dim); }
.linklike { background: none; border: 0; padding: 0; font: inherit; color: var(--text); text-decoration: underline; text-underline-offset: 2px; text-decoration-color: var(--dim); cursor: pointer; }
.linklike:hover { text-decoration-color: var(--red); color: var(--red); }
.app-dropzone__hint { margin-top: 18px; font-size: 12px; color: var(--faint); }

/* ---------- THUMBNAIL GRID ---------- */
.app-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(var(--cell, 200px), 1fr));
  gap: 8px;
}
.thumb {
  position: relative;
  aspect-ratio: 3 / 2;
  background: var(--app-surface);
  border: 2px solid transparent;
  border-radius: 5px;
  overflow: hidden;
  cursor: pointer;
}
.thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.thumb.is-pick   { border-color: var(--pick); }
.thumb.is-reject { border-color: var(--reject); opacity: .55; }
.thumb.is-selected { outline: 2px solid var(--info); outline-offset: 1px; }
.thumb__badge {
  position: absolute; top: 6px; left: 6px;
  font-family: var(--font-mono); font-size: 11px; font-weight: 600;
  padding: 2px 6px; border-radius: 3px;
  background: rgba(0,0,0,0.66); color: #fff;
}
.thumb__state {
  position: absolute; top: 6px; right: 6px;
  width: 18px; height: 18px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 11px; color: #fff;
}
.thumb__state.s-pick { background: var(--pick); }
.thumb__state.s-reject { background: var(--reject); }
.thumb__unsure { position: absolute; bottom: 6px; right: 6px; width: 9px; height: 9px; border-radius: 50%; background: var(--unsure); }
.thumb__stars {
  position: absolute; bottom: 5px; left: 6px;
  font-size: 11px; color: var(--unsure); letter-spacing: 1px;
  text-shadow: 0 1px 2px rgba(0,0,0,.8);
}
.thumb__group {
  position: absolute; bottom: 5px; left: 6px;
  font-family: var(--font-mono); font-size: 10px; color: #fff;
  background: rgba(0,0,0,.6); padding: 1px 5px; border-radius: 3px;
}
.thumb__name {
  position: absolute; bottom: 0; left: 0; right: 0;
  font-size: 10px; color: #d8d8de; padding: 10px 6px 4px;
  background: linear-gradient(transparent, rgba(0,0,0,.75));
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  opacity: 0; transition: opacity .15s;
}
.thumb:hover .thumb__name { opacity: 1; }

/* group strips */
.app-group { margin-bottom: 22px; }
.app-group__head {
  display: flex; align-items: center; gap: 10px;
  font-size: 13px; color: var(--dim); margin-bottom: 8px;
}
.app-group__head .crown { color: var(--unsure); }
.app-group__strip { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 6px; }
.app-group__strip .thumb { flex: 0 0 220px; }
.thumb.is-winner::after {
  content: "★"; position: absolute; top: 6px; left: 50%; transform: translateX(-50%);
  color: var(--unsure); font-size: 13px; text-shadow: 0 1px 2px rgba(0,0,0,.9);
}

/* survey mode */
.app-survey { height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px; padding: 24px; }
.app-survey__img { max-height: 60vh; max-width: 100%; border-radius: 6px; border: 1px solid var(--app-line); }
.app-survey__verdict { text-align: center; max-width: 620px; }
.app-survey__verdict .reason { color: var(--dim); margin-top: 6px; }
.app-survey__actions { display: flex; gap: 12px; }
.app-survey__progress { color: var(--faint); font-family: var(--font-mono); font-size: 12px; }

/* ---------- INSPECTOR ---------- */
.app-inspector {
  background: var(--app-surface);
  border-left: 1px solid var(--app-line);
  overflow-y: auto;
  padding: 16px;
  min-height: 0;
}
.app-inspector h3 { font-size: 13px; text-transform: uppercase; letter-spacing: .1em; color: var(--dim); margin: 0 0 12px; }
.app-inspector__empty { color: var(--dim); font-size: 13px; text-align: center; padding: 40px 0; }
.insp-img { width: 100%; border-radius: 5px; border: 1px solid var(--app-line); margin-bottom: 14px; }
.insp-ring {
  display: flex; align-items: center; gap: 14px; margin-bottom: 16px;
}
.insp-ring__num { font-family: var(--font-mono); font-size: 34px; font-weight: 600; line-height: 1; }
.insp-ring__lbl { font-size: 12px; color: var(--dim); }

.axis-bar { margin-bottom: 10px; }
.axis-bar__top { display: flex; justify-content: space-between; font-size: 12px; margin-bottom: 4px; }
.axis-bar__top .v { font-family: var(--font-mono); color: var(--text); }
.axis-bar__top .k { color: var(--dim); }
.axis-bar__track { height: 6px; background: var(--app-surface2); border-radius: 3px; overflow: hidden; }
.axis-bar__fill { height: 100%; background: var(--info); border-radius: 3px; transition: width .25s var(--ease); }
.axis-bar__fill.good { background: var(--pick); }
.axis-bar__fill.mid { background: var(--unsure); }
.axis-bar__fill.bad { background: var(--reject); }

.insp-axes-off { font-size: 11px; color: var(--faint); border: 1px dashed var(--app-line); border-radius: 5px; padding: 6px 9px; margin: 8px 0 2px; }
.insp-why { background: var(--app-surface2); border: 1px solid var(--app-line); border-radius: 5px; padding: 10px 12px; font-size: 13px; color: var(--dim); margin: 14px 0; }
.insp-exif { font-family: var(--font-mono); font-size: 12px; color: var(--dim); }
.insp-exif div { display: flex; justify-content: space-between; padding: 3px 0; border-bottom: 1px solid var(--app-line); }
.insp-exif .k { color: var(--faint); }
.insp-actions { display: flex; flex-wrap: wrap; gap: 6px; margin: 14px 0; }
.insp-stars { display: flex; gap: 3px; font-size: 18px; color: var(--faint); margin: 10px 0; }
.insp-stars span { cursor: pointer; }
.insp-stars span.on { color: var(--unsure); }

/* ---------- FOOTER COUNT STRIP ---------- */
.app-footbar {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 8px 14px;
  background: var(--app-surface);
  border-top: 1px solid var(--app-line);
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--dim);
}
.app-footbar .pill { display: inline-flex; align-items: center; gap: 6px; }
.app-footbar .pill .dot { width: 8px; height: 8px; border-radius: 50%; }
.app-footbar__spacer { flex: 1 1 auto; }
.app-footbar input[type=range] { accent-color: var(--red); width: 120px; }

/* ---------- LOUPE / MODAL OVERLAY ---------- */
.app-loupe {
  position: fixed; inset: 0; z-index: 80;
  background: rgba(0,0,0,0.94);
  display: none; align-items: center; justify-content: center;
}
.app-loupe.is-open { display: flex; }
.app-loupe img { max-width: 94vw; max-height: 88vh; object-fit: contain; cursor: zoom-in; }
.app-loupe img.zoomed { max-width: none; max-height: none; cursor: zoom-out; }
.app-loupe__close { position: absolute; top: 16px; right: 20px; background: none; border: none; color: #fff; font-size: 28px; line-height: 1; }
.app-loupe__nav { position: absolute; top: 50%; transform: translateY(-50%); background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.15); color: #fff; width: 44px; height: 60px; border-radius: 5px; font-size: 22px; }
.app-loupe__prev { left: 16px; } .app-loupe__next { right: 16px; }
.app-loupe__cap { position: absolute; bottom: 16px; left: 0; right: 0; text-align: center; color: #cfcfd6; font-family: var(--font-mono); font-size: 12px; }
.app-loupe__heat { position: fixed; display: none; pointer-events: none; z-index: 81; mix-blend-mode: screen; }

/* ---------- COMPARE (2-up / 4-up) ---------- */
.app-compare { position: fixed; inset: 0; z-index: 82; background: rgba(0,0,0,0.95); display: none; flex-direction: column; padding: 46px 22px 22px; }
.app-compare.is-open { display: flex; }
.app-compare__head { text-align: center; color: #cfcfd6; font-family: var(--font-mono); font-size: 13px; margin-bottom: 14px; }
.app-compare__grid { flex: 1 1 auto; display: grid; gap: 12px; min-height: 0; }
.app-compare__grid.n2 { grid-template-columns: 1fr 1fr; }
.app-compare__grid.n3, .app-compare__grid.n4 { grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr; }
.app-compare__cell { margin: 0; display: flex; flex-direction: column; min-height: 0; }
.app-compare__cell img { flex: 1 1 auto; min-height: 0; width: 100%; object-fit: contain; border-radius: 5px; border: 1px solid var(--app-line); background: #000; }
.app-compare__cell figcaption { text-align: center; color: #cfcfd6; font-size: 12px; padding: 7px 0 0; }

/* ---------- TOAST ---------- */
.app-toasts { position: fixed; bottom: 18px; left: 50%; transform: translateX(-50%); z-index: 90; display: flex; flex-direction: column; gap: 8px; align-items: center; }
.app-toast {
  background: var(--app-surface2); border: 1px solid var(--app-line); color: var(--text);
  padding: 10px 16px; border-radius: 6px; font-size: 13px; box-shadow: 0 8px 30px rgba(0,0,0,.5);
  animation: toastIn .25s var(--ease);
}
@keyframes toastIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* ---------- DIALOG (settings/about/export) ---------- */
.app-dialog { position: fixed; inset: 0; z-index: 85; background: rgba(0,0,0,.6); display: none; align-items: center; justify-content: center; padding: 20px; }
.app-dialog.is-open { display: flex; }
.app-dialog__panel { background: var(--app-surface); border: 1px solid var(--app-line); border-radius: 8px; width: min(520px, 100%); max-height: 86vh; overflow: auto; padding: 22px; }
.app-dialog__panel h2 { font-size: 18px; margin-bottom: 6px; }
.app-dialog__panel p.sub { color: var(--dim); font-size: 13px; margin-bottom: 16px; }
.app-field { margin-bottom: 14px; }
.app-field label { display: block; font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--dim); margin-bottom: 5px; }
.app-field input, .app-field select, .app-field textarea {
  width: 100%; background: var(--app-bg); border: 1px solid var(--app-line); color: var(--text);
  border-radius: var(--radius); padding: 9px 11px; font: inherit; font-size: 14px;
}
.app-field input:focus, .app-field select:focus, .app-field textarea:focus { outline: none; border-color: var(--red); box-shadow: 0 0 0 3px rgba(200,7,10,.28); }
.app-dialog__actions { display: flex; gap: 8px; justify-content: flex-end; margin-top: 18px; }
.kbd { font-family: var(--font-mono); font-size: 11px; background: var(--app-bg); border: 1px solid var(--app-line); border-radius: 3px; padding: 1px 5px; color: var(--dim); }

/* ---------- DISPLAY MENU (open review windows) ---------- */
.app-disp { position: relative; }
.app-disp__pop {
  position: absolute; top: 38px; right: 0; z-index: 40;
  background: var(--app-surface); border: 1px solid var(--app-line); border-radius: 6px;
  padding: 6px; min-width: 250px; display: flex; flex-direction: column; gap: 2px;
  box-shadow: 0 12px 34px rgba(0,0,0,.55);
}
.app-disp__pop[hidden] { display: none; }
.app-disp__pop button {
  text-align: left; background: none; border: none; color: var(--dim);
  font: inherit; font-size: 13px; padding: 8px 10px; border-radius: 5px; white-space: nowrap;
}
.app-disp__pop button:hover { background: var(--app-surface2); color: var(--text); }
.app-disp__pop .sub { color: var(--faint); font-size: 11px; padding: 4px 10px 6px; }

/* ---------- SECONDARY-DISPLAY VIEWER (view.html?mode=full|split) ---------- */
.view-body { overflow: hidden; }
.v-full, .v-split { position: fixed; inset: 0; display: none; }
body.view-full .v-full { display: flex; }
body.view-split .v-split { display: flex; }

/* full preview — one image fit to the monitor, click/Z for 100% */
.v-full { background: #000; align-items: center; justify-content: center; }
.v-full #v-img { max-width: 100vw; max-height: 100vh; object-fit: contain; cursor: zoom-in; }
.v-full #v-img.zoom { max-width: none; max-height: none; object-fit: none; cursor: zoom-out; }
.v-full .v-cap { position: fixed; bottom: 14px; left: 0; right: 0; text-align: center; color: #d4d4da; font-family: var(--font-mono); font-size: 13px; text-shadow: 0 1px 4px #000; pointer-events: none; }
.v-full .v-hint { position: fixed; top: 12px; left: 0; right: 0; text-align: center; color: #80808a; font-size: 11px; pointer-events: none; }

/* split review — vertical divider: 60% thumbnails | 40% 100% preview */
.v-split { background: var(--app-bg); }
.v-split .v-grid {
  flex: 0 0 60%; overflow-y: auto; padding: 12px;
  display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; align-content: start;
}
.v-split .v-prev { flex: 0 0 40%; background: #000; border-left: 1px solid var(--app-line); display: flex; align-items: center; justify-content: center; position: relative; overflow: auto; }
.v-split #v-prev-img { max-width: 100%; max-height: 100vh; object-fit: contain; cursor: zoom-in; }
.v-split #v-prev-img.zoom { max-width: none; max-height: none; object-fit: none; cursor: zoom-out; }
.v-split .v-prev .v-cap { position: absolute; bottom: 10px; left: 0; right: 0; text-align: center; color: #d4d4da; font-family: var(--font-mono); font-size: 12px; text-shadow: 0 1px 4px #000; pointer-events: none; }
.v-empty { grid-column: 1 / -1; color: var(--faint); padding: 30px; text-align: center; }

.v-cell { position: relative; aspect-ratio: 3 / 2; background: var(--app-surface); border: 2px solid transparent; border-radius: 5px; overflow: hidden; cursor: pointer; }
.v-cell img { width: 100%; height: 100%; object-fit: cover; display: block; }
.v-cell.is-sel { outline: 2px solid var(--info); outline-offset: 1px; }
.v-cell.is-pick { border-color: var(--pick); }
.v-cell.is-reject { border-color: var(--reject); opacity: .5; }
.v-cell.is-unsure { border-color: var(--unsure); }
.v-cell__badge { position: absolute; top: 5px; left: 5px; font-family: var(--font-mono); font-size: 11px; padding: 1px 5px; border-radius: 3px; background: rgba(0,0,0,.66); color: #fff; }
.v-cell__stars { position: absolute; bottom: 4px; left: 5px; font-size: 10px; color: var(--unsure); letter-spacing: 1px; text-shadow: 0 1px 2px #000; }

/* ---------- responsive ---------- */
@media (max-width: 960px) {
  .app-body-grid, .app-body-grid.no-inspector { grid-template-columns: 1fr; }
  .app-rail, .app-inspector { display: none; }
  .app-rail.is-open, .app-inspector.is-open { display: flex; position: fixed; top: 52px; bottom: 0; width: 260px; z-index: 40; }
  .app-inspector.is-open { right: 0; left: auto; }
}
/* device-driven web-app layout (suite-device.js sets html.webmode for phones,
   tablets in any orientation, and narrow desktop windows). Mirrors the viewport
   query so landscape tablets (wide viewport) still get the single-column shell. */
html.webmode .app-body-grid, html.webmode .app-body-grid.no-inspector { grid-template-columns: 1fr; }
html.webmode .app-rail, html.webmode .app-inspector { display: none; }
html.webmode .app-rail.is-open, html.webmode .app-inspector.is-open { display: flex; position: fixed; top: 52px; bottom: 0; width: 260px; z-index: 40; }
html.webmode .app-inspector.is-open { right: 0; left: auto; }
