/* Photo-only refinements. Application uses the original document layout. */
/* Touch/pointer focus is quiet; keyboard focus remains visible. */
:is(.audit-photo-preview,.action-evidence-preview,.revision-photo-preview,.pdf-preview-photo-button) { -webkit-tap-highlight-color:transparent; }
html:not(.using-keyboard) :is(.audit-photo-preview,.action-evidence-preview,.revision-photo-preview,.pdf-preview-photo-button):is(:focus,:focus-visible,:hover) { outline:none!important; }
html:not(.using-keyboard) #cropModal :is(button,input):focus { outline:none!important; }
html.using-keyboard :is(.audit-photo-preview,.action-evidence-preview,.revision-photo-preview,.pdf-preview-photo-button):focus-visible { outline:2px solid #3977ae;outline-offset:2px; }
/* Keep the editor about the photo. */
#cropModal .crop-dialog { grid-template-rows:56px minmax(0,1fr) auto; }
#cropModal .crop-head { padding-left:18px;padding-right:18px; }
#cropModal .crop-head h3 { font-size:var(--ui-panel-title-size); }
#cropModal .crop-workspace { padding:14px; }
#cropModal .crop-delete-mobile { display:grid; }
#cropModal .crop-zoom-row { width:260px;gap:12px; }
#cropModal #cropZoom { height:2px; }
#cropModal .crop-footer { gap:12px;padding-top:12px;padding-bottom:max(14px,env(safe-area-inset-bottom)); }
#cropModal .crop-actions { max-width:760px;grid-template-columns:minmax(0,1fr) 216px;gap:20px; }
#cropModal .crop-tools { grid-column:1;justify-content:center; }
#cropModal .crop-confirm { width:100%;display:grid;grid-template-columns:1fr 1fr;gap:10px; }
#cropModal .crop-confirm .crop-btn { width:100%;min-height:42px;padding:0 12px; }
#cropModal .crop-cancel { border-color:#ffffff24; }
@media(max-width:700px) {
 #cropModal .crop-dialog { grid-template-rows:52px minmax(0,1fr) auto; }
 #cropModal .crop-actions { grid-template-columns:1fr;gap:12px; }
 #cropModal .crop-tools .crop-btn { min-height:48px;gap:5px; }
 #cropModal .crop-confirm { grid-column:1;grid-template-columns:1fr 1fr; }
 #cropModal .crop-confirm .crop-btn { min-height:44px; }
}
@media(max-height:540px) { #cropModal .crop-dialog { grid-template-rows:44px minmax(0,1fr) auto; } #cropModal .crop-footer { padding-top:4px;padding-bottom:4px;gap:4px; } #cropModal .crop-actions { gap:4px; } #cropModal .crop-tools .crop-btn,#cropModal .crop-confirm .crop-btn { min-height:32px; } }
