body.classic-windows:not(.bosh-phone) .content:has(.job-explorer) { max-width:none;margin-inline:0;padding-inline:4px; }
.desktop-preview-controls { display:flex;align-items:center;gap:8px;flex:0 0 auto; }
.desktop-preview-size { display:flex;align-items:center;gap:6px;color:#000;font-size:12px; }
.desktop-preview-size select { background:#c0c0c0;color:#000;padding:6px 10px;border:2px outset #eee;font:inherit; }
body.classic-windows:not(.bosh-phone) #jobExplorerContents[data-preview-size] {
  position:relative;width:100%;min-width:0;
  box-sizing:border-box;overflow:auto;background:var(--theme-panel,#c0c0c0);color:var(--theme-text,#000);box-shadow:0 0 0 2px var(--theme-border,#404040);
  display:grid!important;grid-template-columns:repeat(auto-fill,minmax(min(100%,var(--tile-wide-min,520px)),1fr));grid-auto-rows:max-content;
  align-content:start;align-items:start;gap:10px;padding:8px;
}
body.classic-windows:not(.bosh-phone) #jobExplorerContents[data-preview-size="Medium"] { --tile-wide-min:320px; }
body.classic-windows:not(.bosh-phone) #jobExplorerContents[data-preview-size="Small"] { --tile-wide-min:210px;scrollbar-gutter:stable; }
body.classic-windows:not(.bosh-phone) [data-preview-size]:not([data-preview-size="Large"]) .evidence-card { min-width:0;margin:0;padding:4px;border:1px solid;border-color:#fff #404040 #404040 #fff;background:#c0c0c0;box-shadow:inset 1px 1px #dfdfdf,inset -1px -1px #808080;overflow:hidden; }
body.classic-windows:not(.bosh-phone) [data-preview-size]:not([data-preview-size="Large"]) .evidence-preview { width:100%;height:240px;min-height:0;margin:0;box-sizing:border-box;background:#808080;border:1px solid;border-color:#404040 #fff #fff #404040;box-shadow:none;overflow:hidden; }
body.classic-windows:not(.bosh-phone) [data-preview-size="Small"] .evidence-preview { height:170px; }
body.classic-windows:not(.bosh-phone) [data-preview-size]:not([data-preview-size="Large"]) .evidence-preview img { width:100%;height:100%;object-fit:contain;display:block; }
body.classic-windows:not(.bosh-phone) [data-preview-size]:not([data-preview-size="Large"]) .evidence-copy { padding:8px;overflow-wrap:anywhere;min-width:0; }
body.classic-windows:not(.bosh-phone) [data-preview-size]:not([data-preview-size="Large"]) .evidence-capture-date { font-size:11px; }
body.classic-windows:not(.bosh-phone) [data-preview-size]:not([data-preview-size="Large"]) .thumbnail-review-actions { right:4px;bottom:4px;max-width:calc(100% - 8px);display:flex;flex-wrap:wrap;gap:3px; }
[data-preview-size] > .golden-examples,[data-preview-size] > .request-add-photo,[data-preview-size] > .more-photo-notice,[data-preview-size] > .request-na-empty { grid-column:1/-1; }

/* Tile rows must grow with their captions, rather than share the scroll pane height. */
body.classic-windows:not(.bosh-phone) #jobExplorerContents[data-preview-size] {
  grid-auto-rows:max-content;
}
body.classic-windows:not(.bosh-phone) #jobExplorerContents[data-preview-size] > .evidence-card {
  display:block;
  height:auto;
  min-height:0;
  box-sizing:border-box;
  max-width:100%;
}
body.classic-windows:not(.bosh-phone) #jobExplorerContents[data-preview-size]:not([data-preview-size="Large"]) .evidence-preview {
  display:block;
  height:240px;
  min-height:0;
}
body.classic-windows:not(.bosh-phone) #jobExplorerContents[data-preview-size="Small"] .evidence-preview {
  height:170px;
}
body.classic-windows:not(.bosh-phone) #jobExplorerContents[data-preview-size] .evidence-copy {
  position:static;
  height:auto;
  min-width:0;
  max-width:100%;
}
body.classic-windows:not(.bosh-phone) #jobExplorerContents[data-preview-size] .evidence-copy .button {
  max-width:100%;
  white-space:normal;
  margin:3px 3px 0 0;
}
body.classic-windows:not(.bosh-phone) #jobExplorerContents[data-preview-size]:not([data-preview-size="Large"]) .photo-open-hint {
  top:40px;
  bottom:auto;
}
body.classic-windows:not(.bosh-phone) #jobExplorerContents[data-preview-size] > :not(.evidence-card) {
  grid-column:1 / -1;
  min-width:0;
}

/* Unframed desktop photos: contain the original image on a clear canvas. */
body.classic-windows:not(.bosh-phone) #jobExplorerContents[data-preview-size] > .evidence-card,
body.classic-windows:not(.bosh-phone) #jobExplorerContents[data-preview-size] .evidence-preview,
body.classic-windows:not(.bosh-phone) #jobExplorerContents[data-preview-size] .evidence-copy {
  border:0;
  box-shadow:none;
  background:transparent;
}
body.classic-windows:not(.bosh-phone) #jobExplorerContents[data-preview-size] > .evidence-card { padding:0; }
body.classic-windows:not(.bosh-phone) #jobExplorerContents[data-preview-size] .evidence-preview::before,
body.classic-windows:not(.bosh-phone) #jobExplorerContents[data-preview-size] .evidence-preview::after { content:none; }
body.classic-windows:not(.bosh-phone) .request-workflow-actions .button.desktop-golden-star {
  color:#e5ad00;
  text-shadow:1px 1px #805400,-1px -1px #fff2a0;
}

/* Anchor every overlay to the actual, uncropped image rectangle. */
body.classic-windows:not(.bosh-phone) #jobExplorerContents[data-preview-size] .evidence-preview {
  min-height:0;margin:0 auto;max-width:100%;
}
/* Reserve the final tile geometry before decoding the photo, including at fractional display scales. */
body.classic-windows:not(.bosh-phone) #jobExplorerContents[data-preview-size] > .evidence-card .evidence-preview:has(img) {
  width:100%;height:auto;aspect-ratio:1;box-sizing:border-box;
}
body.classic-windows:not(.bosh-phone) #jobExplorerContents[data-preview-size] .thumbnail-review-actions {
  position:absolute;left:auto;right:4px;bottom:4px;max-width:calc(100% - 8px);
  display:flex;flex-wrap:wrap;gap:3px;z-index:5;
}
body.classic-windows:not(.bosh-phone) #jobExplorerContents[data-preview-size] .thumbnail-review-actions button {
  width:30px;height:30px;min-height:30px;padding:2px;font-size:22px;
}
body.classic-windows:not(.bosh-phone) #jobExplorerContents[data-preview-size] .thumbnail-review-actions .change-photo-status {
  width:auto;font-size:10px;padding:3px 6px;white-space:normal;
}
body.classic-windows:not(.bosh-phone) #jobExplorerContents[data-preview-size] .evidence-status { top:4px;left:4px;max-width:calc(100% - 8px); }
body.classic-windows:not(.bosh-phone) #jobExplorerContents[data-preview-size] .photo-open-hint { display:none; }

/* Keep metadata and all actions together inside the image perimeter. */
body.classic-windows:not(.bosh-phone) #jobExplorerContents[data-preview-size] .desktop-photo-footer {
  position:absolute;z-index:5;left:3px;right:3px;bottom:3px;
  max-height:70%;overflow:auto;padding:3px;box-sizing:border-box;
  background:rgba(240,240,240,.88);color:#000;font-size:10px;
}
body.classic-windows:not(.bosh-phone) #jobExplorerContents[data-preview-size] .desktop-photo-footer .thumbnail-review-actions {
  position:static;max-width:100%;justify-content:flex-end;margin:0 0 3px;
}
body.classic-windows:not(.bosh-phone) #jobExplorerContents[data-preview-size] .desktop-photo-footer .evidence-copy {
  position:static;padding:0;font-size:10px;line-height:1.2;
}
body.classic-windows:not(.bosh-phone) #jobExplorerContents[data-preview-size] .desktop-photo-footer .evidence-capture-date {
  font-size:10px;line-height:1.25;margin:0 0 3px;text-align:right;
}
body.classic-windows:not(.bosh-phone) #jobExplorerContents[data-preview-size] .desktop-photo-footer .button {
  font-size:10px;padding:3px 5px;min-height:24px;
}
body.classic-windows:not(.bosh-phone) .desktop-rotate { position:absolute;top:4px;right:4px;z-index:8;width:30px;height:30px;padding:2px;font-size:22px; }
body.classic-windows:not(.bosh-phone) .desktop-rotation-frame img { position:absolute;inset:0;width:100%;height:100%;object-fit:contain; }
body.classic-windows:not(.bosh-phone) .photo-viewer-stage { position:relative; }
/* Large photos follow the divider all the way across the photo pane. */
body.classic-windows:not(.bosh-phone) #jobExplorerContents[data-preview-size="Large"] { padding:0; }
body.classic-windows:not(.bosh-phone) #jobExplorerContents[data-preview-size="Large"] > .evidence-card { width:100%; }
/* Avoid the preview's large placeholder font adding space above the badge. */
body.classic-windows:not(.bosh-phone) #jobExplorerContents[data-preview-size] .evidence-status {
  display:flex;align-items:flex-start;top:4px;left:4px;
  margin:0;padding:0;font-size:11px;line-height:1;
}
/* Small breathing space beside the draggable divider. */
body.classic-windows:not(.bosh-phone) #jobExplorerContents[data-preview-size="Large"] { padding-left:8px; }
body.classic-windows:not(.bosh-phone) .job-explorer-status { min-height:40px;padding:12px 9px;align-items:center;box-sizing:border-box; }
/* Unobstructed photo overlays and compact enlarged-view information. */
body.classic-windows:not(.bosh-phone) #jobExplorerContents[data-preview-size] .desktop-photo-footer { background:transparent; }
body.classic-windows:not(.bosh-phone) #jobExplorerContents[data-preview-size] .desktop-photo-footer .evidence-capture-date { color:#fff;text-shadow:0 1px 2px #000,0 0 3px #000; }
body.classic-windows:not(.bosh-phone) #jobExplorerContents[data-preview-size] .desktop-photo-footer .photo-upload-time { color:inherit; }
body.classic-windows:not(.bosh-phone) #jobExplorerContents[data-preview-size] .desktop-photo-footer .thumbnail-review-actions [data-action="delete-photo"] { order:-1;margin-right:auto; }
body.classic-windows:not(.bosh-phone) .request-workflow-actions .request-add-photo { margin:0;padding:0; }
body.classic-windows:not(.bosh-phone) .request-workflow-actions .request-add-photo .button { margin:0; }
body.classic-windows:not(.bosh-phone) .photo-viewer-caption { padding:2px 8px;gap:2px 8px;grid-template-rows:auto; }
body.classic-windows:not(.bosh-phone) .photo-viewer-caption > .status-pill { font-size:11px;padding:3px 6px; }
body.classic-windows:not(.bosh-phone) .photo-viewer-caption .viewer-golden-box { padding:3px 6px;gap:2px;grid-row:1; }
body.classic-windows:not(.bosh-phone) .photo-viewer-caption .photo-rejection-comment { margin:2px 0;font-size:11px; }
/* Tools use a top-layer popover, never a scrolling box inside the photo. */
body.classic-windows:not(.bosh-phone) #jobExplorerContents[data-preview-size] .desktop-photo-footer[popover] {
  position:fixed;inset:auto;margin:0;width:250px;max-width:calc(100vw - 16px);
  max-height:none;overflow:visible;padding:8px;background:#c0c0c0;color:#000;
  border:2px solid;border-color:#fff #404040 #404040 #fff;box-shadow:2px 2px #0006;
}
body.classic-windows:not(.bosh-phone) #jobExplorerContents[data-preview-size] .desktop-photo-footer:not(:popover-open) { display:none; }
body.classic-windows:not(.bosh-phone) #jobExplorerContents[data-preview-size] .desktop-photo-footer .desktop-rotate { position:static;margin-bottom:5px; }
body.classic-windows:not(.bosh-phone) #jobExplorerContents[data-preview-size] .desktop-photo-footer .evidence-capture-date { color:#000;text-shadow:none; }
body.classic-windows:not(.bosh-phone) .desktop-photo-menu { position:absolute;right:4px;bottom:4px;z-index:6;width:30px;height:30px;padding:0;font-size:22px; }
body.classic-windows:not(.bosh-phone) #jobExplorerContents[data-preview-size] .desktop-quick-review { left:4px;right:38px;bottom:4px;justify-content:flex-start; }
body.classic-windows:not(.bosh-phone) #jobExplorerContents .photo-tools-inline { position:absolute;left:4px;right:4px;bottom:38px;z-index:6;transform-origin:bottom left;background:transparent;font-size:10px;line-height:1.2; }
body.classic-windows:not(.bosh-phone) #jobExplorerContents .photo-tools-inline[hidden] { display:none; }
body.classic-windows:not(.bosh-phone) #jobExplorerContents .photo-tools-inline .evidence-copy { padding:0; }
body.classic-windows:not(.bosh-phone) #jobExplorerContents .photo-tools-inline .evidence-capture-date { font-size:10px;line-height:1.2;margin:2px 0;color:white;text-shadow:0 1px 2px black; }
body.classic-windows:not(.bosh-phone) #jobExplorerContents .photo-tools-inline .button { position:static;width:auto;height:auto;min-height:24px;padding:3px;font-size:10px;white-space:normal;max-width:100%; }
body.classic-windows:not(.bosh-phone) #jobExplorerContents .desktop-photo-menu { left:50%;right:auto;transform:translateX(-50%);bottom:4px; }
body.classic-windows:not(.bosh-phone) #jobExplorerContents :is(.photo-tick,.photo-cross) { position:absolute;bottom:4px;z-index:6;width:30px;height:30px;padding:0;font-size:22px; }
body.classic-windows:not(.bosh-phone) #jobExplorerContents .photo-tick { left:4px;background:#008000;color:white; }
body.classic-windows:not(.bosh-phone) #jobExplorerContents .photo-cross { right:4px;background:#c00000;color:white; }
body.classic-windows:not(.bosh-phone) #jobExplorerContents .photo-cross[hidden] { display:none; }
body.classic-windows:not(.bosh-phone) #jobExplorerContents .photo-tick[hidden] { display:none; }
body.classic-windows:not(.bosh-phone) #jobExplorerContents .desktop-photo-menu { top:4px;right:4px;bottom:auto;left:auto;transform:none; }
body.classic-windows:not(.bosh-phone) .photo-viewer-caption { display:flex;flex-direction:row;align-items:center;gap:8px;flex-wrap:wrap;padding:3px 8px; }
body.classic-windows:not(.bosh-phone) .photo-viewer-caption > .status-pill { order:0;flex-shrink:0; }
body.classic-windows:not(.bosh-phone) .photo-viewer-caption > .viewer-golden-box { margin-left:auto; }
body.classic-windows:not(.bosh-phone) .photo-viewer-caption > .photo-viewer-actions { display:flex;width:auto;padding:0;gap:6px;align-items:center; }
body.classic-windows:not(.bosh-phone) .photo-viewer-caption > div:not(.photo-viewer-actions):not(:empty) { flex-basis:100%;order:2; }
/* Readable rejection note and a single left-hand tool column. */
body.classic-windows:not(.bosh-phone) #jobExplorerContents .photo-tools-inline .photo-rejection-comment {
  display:block;background:rgba(240,240,240,.9);padding:5px;margin:3px 0;
  color:#800000;text-shadow:none;overflow-wrap:anywhere;
}
body.classic-windows:not(.bosh-phone) #jobExplorerContents .photo-tools-inline .button {
  display:block;margin:3px 0 0;width:max-content;max-width:100%;
}
body.classic-windows:not(.bosh-phone) #jobExplorerContents .photo-tick { left:auto;right:38px; }
body.classic-windows:not(.bosh-phone) .photo-viewer-caption { padding:2px 6px;gap:5px; }
body.classic-windows:not(.bosh-phone) .photo-viewer-caption > div:not(.photo-viewer-actions):not(:empty) { flex:1;min-width:0;order:0; }
body.classic-windows:not(.bosh-phone) .photo-viewer-caption > .status-pill { order:-1; }
body.classic-windows:not(.bosh-phone) .photo-viewer-caption .photo-rejection-comment { margin:0;overflow-wrap:anywhere; }
body.classic-windows:not(.bosh-phone) .photo-viewer-caption .viewer-golden-box { margin-left:auto;padding:0;box-shadow:none; }
body.classic-windows:not(.bosh-phone) .viewer-gold-icon { list-style:none;color:#e5ad00;text-shadow:1px 1px #805400;font-size:23px;cursor:pointer;background:#c0c0c0;box-shadow:var(--classic-raised);padding:1px 5px; }
.viewer-gold-icon::-webkit-details-marker { display:none; }
body.classic-windows:not(.bosh-phone) .photo-viewer-actions .viewer-accept-icon { background:green;color:white;font-size:22px;padding:0 7px; }
.viewer-zoom-controls { display:flex;align-items:center;gap:3px;margin:0;font-size:11px; }
.viewer-zoom-controls input { width:52px;padding:3px;font-size:11px; }
body.classic-windows .viewer-zoom-controls .button { padding:3px 6px;min-height:26px; }
body.classic-windows:not(.bosh-phone) .photo-viewer-stage { overflow:hidden;touch-action:none; }
body.classic-windows:not(.bosh-phone) #photoViewerDialog .photo-viewer-top > .icon-button { display:none; }
body.classic-windows:not(.bosh-phone) #photoViewerDialog .photo-viewer-top { grid-template-columns:auto minmax(0,1fr) minmax(180px,260px);min-height:0;padding:4px 10px;gap:10px; }
body.classic-windows:not(.bosh-phone) #photoViewerDialog .photo-viewer-heading { gap:1px; }
body.classic-windows:not(.bosh-phone) #photoViewerDialog .photo-viewer-top > .photo-viewer-hint { text-align:right;font-size:10px;line-height:1.35;white-space:normal;color:white; }
@media(max-width:700px) {
 body.classic-windows:not(.bosh-phone) #photoViewerDialog .photo-viewer-top { grid-template-columns:auto minmax(0,1fr) 150px;gap:5px; }
}
body.classic-windows:not(.bosh-phone) .photo-viewer-actions .viewer-accept-icon[hidden] { display:none; }

body.classic-windows:not(.bosh-phone) #jobExplorerContents .photo-bin { position:absolute; bottom:4px; left:50%; transform:translateX(-50%); z-index:7; width:30px; height:30px; padding:3px; }
