/* Keep decisions outside the scrolling evidence; the photograph remains usable. */
.tile-photo-check{display:grid;grid-template-rows:auto minmax(0,1fr) auto;flex:0 0 auto;min-width:0;min-height:0;height:270px;max-height:43dvh;background:#fffdf8;border-bottom:1px solid #c9c7b9;overflow:hidden}
.tile-photo-check-heading{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:6px 10px;border-bottom:1px solid #deddd2;min-width:0}
.tile-photo-check-heading>strong{font-size:16px;line-height:1.3;min-width:0}
.tile-photo-check-heading>strong:focus-visible{outline:2px solid #146b8c;outline-offset:2px}
.tile-check-heading-actions{display:flex;gap:2px;flex:none}
.tile-photo-check .tile-check-heading-actions .button{width:44px;min-width:44px;height:44px;padding:6px;font-size:23px}
.tile-photo-check-body{min-height:0;overflow:auto;overscroll-behavior:contain;scrollbar-gutter:stable;padding:10px}
.tile-photo-check p{font-size:13px;line-height:1.45;margin:0 0 10px}
.tile-photo-check p:last-child{margin-bottom:0}
.tile-check-result-title{color:#4c5355}
.tile-photo-check[data-grid-check=mismatch] .tile-check-result-title{color:#9e321f}
.tile-photo-check .button{min-height:44px;min-width:0;white-space:normal;font-size:13px;line-height:1.25;padding:7px 9px}
.tile-check-region-section{margin-top:16px}
.tile-check-region-section h3{font-size:14px;margin:0 0 5px}
.tile-check-region-section>p{color:#4a575e}
.tile-check-regions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px}
.tile-check-regions .button{font-size:12px;padding:7px 6px}
.tile-check-regions [aria-pressed=true]{outline:2px solid #a74519;outline-offset:-2px;background:#fff0e4}
.tile-photo-check-footer{padding:8px 10px;border-top:1px solid #deddd2;background:#fffdf8}
.tile-check-footer-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px}
.tile-check-confirm{display:grid;gap:6px}
.tile-check-confirm label{display:flex;align-items:center;gap:8px;min-height:44px;font-size:12px;line-height:1.35;cursor:pointer}
.tile-check-confirm input{width:20px;height:20px;flex:none;margin:0}
.tile-check-confirm .tile-check-footer-actions:has(>:only-child){grid-template-columns:minmax(0,1fr)}
.workarea:has(>.tile-photo-check)>.canvas-footer{display:none}
.workarea:has(>.tile-photo-check)>.tool-help{display:flex;align-items:center;justify-content:space-between;min-height:44px;padding:0 10px;gap:8px}
.workarea:has(>.tile-photo-check)>.tool-help>span{display:none}
.workarea:has(>.tile-photo-check)>.tool-help .editor-context{margin:0}
.workarea:has(>.tile-photo-check)>.canvas-stage{min-height:0}
@media(min-width:851px){
 .workspace:has(.tile-photo-check){grid-template-columns:minmax(0,1fr)}
 #app.photo-expanded .workarea:has(>.tile-photo-check) .workspace-panel-buttons{display:none}
 #app .workspace:has(.tile-photo-check)>:is(.sidebar,.inspector){display:none}
 .workarea:has(>.tile-photo-check){display:grid;grid-template-columns:300px minmax(0,1fr);grid-template-rows:auto auto minmax(0,1fr) auto}
 .workarea:has(>.tile-photo-check)>.toolbar-shell{grid-column:1/-1;grid-row:1}
 .workarea:has(>.tile-photo-check)>.tool-help{grid-column:1/-1;grid-row:2}
 .workarea>.tile-photo-check{grid-column:1;grid-row:3/5;max-height:none;height:100%;border-right:1px solid #c9c7b9;border-bottom:0}
 .workarea:has(>.tile-photo-check)>.canvas-stage{grid-column:2;grid-row:3}
 .workarea:has(>.tile-photo-check)>.canvas-controls{grid-column:2;grid-row:4}
}
@media(max-width:850px){
 .workarea:has(>.tile-photo-check)>.tool-help>[data-action=photo-expand]{width:44px;min-width:44px;padding:8px}
 .workarea:has(>.tile-photo-check)>.tool-help>[data-action=photo-expand] span{display:none}
 .tile-photo-check-heading>strong{font-size:14px}
}
@media(max-width:850px) and (max-height:500px) and (orientation:landscape){
 .workspace[data-mobile-panel=canvas]>.workarea:has(>.tile-photo-check){display:grid;grid-template-columns:330px minmax(0,1fr);grid-template-rows:auto auto minmax(0,1fr) auto}
 .workarea:has(>.tile-photo-check)>.toolbar-shell{grid-column:1/-1;grid-row:1}
 .workarea:has(>.tile-photo-check)>.tool-help{grid-column:1/-1;grid-row:2}
 .workarea>.tile-photo-check{grid-column:1;grid-row:3/5;max-height:none;height:100%;border-right:1px solid #c9c7b9;border-bottom:0}
 .workarea:has(>.tile-photo-check)>.canvas-stage{grid-column:2;grid-row:3;min-height:0}
 .workarea:has(>.tile-photo-check)>.canvas-controls{grid-column:2;grid-row:4}
 .tile-photo-check-body{padding-block:6px}
}
@media(max-width:850px) and (max-height:740px) and (orientation:portrait){
 #app:has(.workspace[data-mobile-panel=canvas] .tile-photo-check) .app-header{display:none}
 .tile-photo-check{height:250px;max-height:40dvh}
}
@media(max-width:850px) and (max-height:500px) and (orientation:landscape){
 .tile-photo-check-heading{padding-block:3px}
 .tile-photo-check-footer{padding-block:6px}
}
