[data-measurement-photo-view]{position:relative;overflow:hidden;flex:none}
[data-measurement-source-plane]{position:relative}
[data-measurement-source-plane]>img{display:block}
.photo-adjustment-modal{position:fixed;inset:0;z-index:110000;background:#10213c99;display:grid;place-items:center;padding:16px}
.photo-adjustment-dialog{background:#fff;color:#172235;width:min(1050px,100%);max-height:94vh;overflow:auto;border-radius:18px;padding:20px;box-shadow:0 24px 80px #10213c66}
.photo-adjustment-dialog>header,.photo-adjustment-dialog>footer,.photo-adjustment-tools{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap}
.photo-adjustment-dialog h3,.photo-adjustment-dialog h4{margin:0 0 8px}
.photo-adjustment-tools{justify-content:flex-start;margin-bottom:16px}
.photo-adjustment-panels{display:grid;grid-template-columns:minmax(0,2fr) minmax(160px,1fr);gap:20px;align-items:start}
.photo-adjustment-stage{position:relative;display:inline-block;max-width:100%;touch-action:none;line-height:0;background:#e6eaf2}
.photo-adjustment-stage>canvas{display:block;max-width:100%;max-height:53vh;width:auto;height:auto}
.photo-adjustment-stage>svg{position:absolute;inset:0;width:100%;height:100%;overflow:visible;touch-action:none}
.photo-adjustment-stage [data-photo-handle="move"]{cursor:move}
.photo-adjustment-stage [data-photo-handle="nw"],.photo-adjustment-stage [data-photo-handle="se"]{cursor:nwse-resize}
.photo-adjustment-stage [data-photo-handle="ne"],.photo-adjustment-stage [data-photo-handle="sw"]{cursor:nesw-resize}
.photo-adjustment-result canvas{display:block;max-width:100%;max-height:53vh;width:auto;height:auto;background:#edf1f7;border:1px solid #d7deea}
.photo-adjustment-fields{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin:12px 0}
.photo-adjustment-dialog>footer{justify-content:flex-end;margin-top:12px}
@media(max-width:650px){.photo-adjustment-modal{padding:8px}.photo-adjustment-dialog{padding:14px}.photo-adjustment-panels{grid-template-columns:minmax(0,1fr)}.photo-adjustment-result canvas{max-height:26vh}.photo-adjustment-stage>canvas{max-height:42vh}.photo-adjustment-fields{grid-template-columns:repeat(2,minmax(0,1fr))}}

.assessment-media-library .media-asset.has-photo-view{grid-template-rows:auto auto}
.assessment-media-library .media-asset.has-photo-view .media-asset-visual,
.assessment-media-library .media-asset.has-photo-view .clinical-media-preview{height:auto;min-height:0}
.media-asset.has-photo-view .clinical-media-preview img,
.assessment-media-library .media-asset.has-photo-view .clinical-media-preview img{height:auto;max-height:none;object-fit:contain}
