.photo-viewer-dialog[data-slot=dialog-content],.comparison-viewer-dialog[data-slot=dialog-content]{width:100vw!important;max-width:none!important;height:100dvh!important;max-height:none!important;padding:max(12px,env(safe-area-inset-top)) max(12px,env(safe-area-inset-right)) max(12px,env(safe-area-inset-bottom)) max(12px,env(safe-area-inset-left))!important;background:#fffdf6!important;border-radius:0!important;flex-direction:column!important;gap:10px!important;display:flex!important;position:fixed!important;inset:0!important;overflow:hidden!important;transform:translate(0,0)!important}.photo-viewer-dialog [data-slot=dialog-title],.comparison-viewer-dialog [data-slot=dialog-title]{overflow-wrap:anywhere;flex:none;max-height:50px;padding-right:30px;font-size:18px;overflow:auto}.photo-viewer-dialog [data-slot=dialog-description],.comparison-viewer-dialog [data-slot=dialog-description]{flex:none;font-size:13px}.photo-viewer-tools{flex:none;min-height:40px;gap:6px!important}.photo-viewer-tools button{min-height:40px;padding-inline:12px;font-size:14px}.photo-zoom-stage{touch-action:none;overscroll-behavior:contain;-webkit-overflow-scrolling:touch;background:#edf0eb;border-radius:10px;flex:1;width:100%;min-height:0;overflow:auto}.photo-zoom-content{min-width:100%;min-height:100%;position:relative}.photo-zoom-image{position:absolute}.photo-zoom-image>img{object-fit:contain;-webkit-user-select:none;user-select:none;-webkit-user-drag:none;width:100%;height:100%;display:block;max-height:none!important}.photo-viewer-dialog>.actions{flex:none;gap:20px;font-size:14px;margin:0!important}.photo-viewer-dialog .photo-viewer-stage{flex:1;height:auto;min-height:0}.shared-comparison-pair.full-body{aspect-ratio:1200/1664;gap:4px;transform:none}.shared-comparison-pair.full-body .shared-comparison-image{flex-direction:column;min-height:0;display:flex;overflow:hidden}.shared-comparison-pair.full-body .shared-comparison-image img{object-fit:contain;flex:1;width:100%;height:calc(100% - 30px);min-height:0;max-height:none}.shared-comparison-pair.full-body .shared-comparison-image span{flex:none;height:30px;padding:3px;font-size:12px}.photo-zoom-image>.shared-comparison-pair.full-body{aspect-ratio:auto;width:100%;height:100%}.shared-comparison-pair.full-body.overlay>.shared-comparison-image{background:0 0;position:absolute;inset:0}.record-photo-strip .comparison-photo img,.record-photo-strip .historical-photo img{object-fit:contain;width:100%;height:auto!important;max-height:none!important}.record-photo-strip .historical-photo{flex:100%;max-width:none}.record-photo-strip .comparison-photo span,.record-photo-strip .historical-photo span{padding:12px;font-size:14px}.record-photo-open-hint{color:#536b6c;margin-top:5px;font-weight:500;display:block;font-size:13px!important}.historical-photo-card{margin:20px 0;overflow:hidden;padding:0!important}.historical-photo-card .record-photo-strip button{flex:100%;max-width:none}.photo-editor-fixed .editor-fit-actions{flex:none;gap:6px;display:flex}.editor-fit-actions button{white-space:normal;flex:1;min-height:40px;font-size:14px}.photo-editor-fixed .editor-clipping-notice{background:#fff3d9;border-radius:8px;flex:none;margin:0;padding:7px 10px;font-size:12px;line-height:1.5}.photo-editor-fixed .editor-preview-fixed{flex:1 1 0;gap:6px;min-height:0;overflow:hidden}.photo-editor-fixed .editor-canvas-wrap.editor-preview-large{justify-content:flex-start;align-items:flex-start;overflow:auto}.photo-editor-fixed .editor-canvas-wrap.editor-preview-large canvas{flex:none;touch-action:pan-y!important;width:100%!important;height:auto!important;max-height:none!important}.photo-import-form{gap:18px;margin-top:18px;display:grid}.photo-import-item{background:#fff;border:1px solid #d7e0dc;border-radius:12px;grid-template-columns:90px minmax(0,1fr);align-items:start;gap:12px;padding:14px;display:grid}.photo-import-item img{object-fit:contain;background:#edf0eb;width:90px;height:140px}.photo-import-item .field{font-size:14px;margin:0 0 12px!important}.photo-import-item input,.photo-import-item select{font-size:16px}.photo-import-file-name{overflow-wrap:anywhere;color:#6b7978;font-size:12px}.photo-import-item .success{font-size:14px}.studio-dialog.photo-editor-dialog[data-slot=dialog-content]{gap:6px;height:98dvh;max-height:98dvh;width:min(1200px,100vw - 16px)!important;max-width:none!important;padding:12px!important}.photo-editor-dialog>[data-slot=dialog-title]{flex:none;min-height:26px;padding-right:42px;line-height:1.4}.photo-editor-dialog>[data-slot=dialog-description]{clip-path:inset(50%);width:1px;height:1px;padding:0;position:absolute;overflow:hidden}.photo-editor-dialog>[data-slot=dialog-close]{top:max(6px,env(safe-area-inset-top));right:max(6px,env(safe-area-inset-right));place-items:center;width:40px;height:40px;display:grid}.photo-editor-fixed{gap:6px}.photo-editor-fixed .editor-touch-hint{font-size:12px;line-height:1.4}.photo-editor-fixed .editor-basic-controls{border:0;border-top:1px solid #d5e0df;flex:none;min-width:0;margin:0;padding:6px 4px 0}.editor-basic-controls .edit-range{gap:4px;margin:4px 4px 6px;font-size:13px}.editor-basic-controls [data-slot=slider]{min-height:32px}.editor-basic-controls [data-slot=slider-thumb]{width:22px;height:22px}.editor-basic-controls .editor-history{flex-wrap:nowrap;gap:6px;margin:0}.editor-basic-controls .editor-history button{flex:1;min-width:0;min-height:40px;padding:6px;font-size:12px;line-height:1.4}.editor-basic-controls .editor-history svg{width:15px;height:15px}.photo-editor-fixed .editor-settings{border-top:1px solid #d5e0df;flex:none;min-height:40px;max-height:40%;padding:0;overflow:auto}.photo-editor-fixed .editor-settings[open]{flex:0 40%;min-height:90px}.editor-settings>summary{z-index:2;background:var(--background,#fffdf6);cursor:pointer;min-height:40px;padding:10px 8px;font-size:14px;font-weight:600;position:sticky;top:0}.editor-settings fieldset{padding:4px 4px 10px}.photo-editor-fixed .editor-save-fixed .actions button{min-height:44px}.record-photo-strip button.comparison-photo{min-width:0;flex:0 0 100%!important;max-width:none!important}@media (max-width:700px){.studio-dialog.photo-editor-dialog[data-slot=dialog-content]{width:100vw!important;height:100dvh!important;max-height:100dvh!important;padding:max(8px,env(safe-area-inset-top)) max(8px,env(safe-area-inset-right)) max(8px,env(safe-area-inset-bottom)) max(8px,env(safe-area-inset-left))!important;border-radius:0!important;inset:0!important;transform:translate(0,0)!important}.photo-editor-fixed .editor-photo-targets button,.photo-editor-fixed .editor-fit-actions button{min-height:40px;font-size:13px}.record-timeline>.record-card{width:calc(100% + 12px);max-width:none;margin-left:-6px;margin-right:-6px}.shared-comparison>.shared-comparison-pair.full-body{width:calc(100% + 16px);margin-inline:-8px}}@media (max-height:550px) and (min-width:600px){.photo-editor-fixed{grid-template-rows:auto minmax(40px,1fr) auto auto}.photo-editor-fixed .editor-preview-fixed{grid-row:1/4}.photo-editor-fixed .editor-basic-controls{grid-area:1/2}.photo-editor-fixed .editor-settings{grid-area:2/2}.photo-editor-fixed .editor-save-fixed{grid-area:3/2}.photo-editor-fixed .editor-clipping-notice{grid-area:4/1/auto/-1}.photo-editor-fixed .editor-settings{min-height:0;max-height:none}}.photo-selection-toolbar{flex-wrap:wrap;justify-content:space-between;align-items:center;gap:10px;margin:12px 0 18px;display:flex}.photo-selection-toolbar p{font-size:14px}.photo-selection-controls{flex-wrap:wrap;gap:8px;display:flex}.photo-selection-toolbar button,.photo-bulk-footer button{white-space:normal;height:auto;min-height:44px}.record-library .record-photo-tile.photo-bulk-selected{background:#f1f5fc;border-color:#315ca8;box-shadow:0 0 0 2px #315ca8}.record-photo-tile .photo-select-button{position:relative}.photo-selection-mark{color:#fff;pointer-events:none;background:#fff;border:2px solid #60758b;border-radius:7px;place-items:center;width:30px;height:30px;display:grid;position:absolute;top:8px;left:8px;box-shadow:0 1px 4px #1234}.photo-bulk-selected .photo-selection-mark{background:#315ca8;border-color:#315ca8}.photo-bulk-footer{z-index:5;background:#fff;border:1px solid #c9d6e3;border-radius:12px;flex-wrap:wrap;justify-content:space-between;align-items:center;gap:8px;margin-top:16px;padding:12px;display:flex;position:sticky;bottom:0;box-shadow:0 -4px 18px #24385514}.photo-bulk-footer>span{font-size:14px;font-weight:600}.photo-bulk-footer>button{color:#843f36;border-color:#caaca6;flex:200px}.photo-trash-result{background:#eef5f0;border-radius:10px;margin:12px 0;padding:12px;font-size:14px}.photo-trash-errors{overflow-wrap:anywhere;background:#fff4ed;border:1px solid #e7cabc;border-radius:10px;margin:12px 0;padding:12px;font-size:14px}.photo-trash-errors ul{margin:8px 0 0;padding-left:20px;list-style:outside}.photo-trash-errors li+li{margin-top:12px}.record-field-block{min-width:0;margin:1.3rem 0}.record-field-photos{background:#f8fbfa;border:1px solid #cadbd9;border-radius:14px;min-width:0;margin:.6rem 0 1.2rem;padding:.9rem}.field-photo-heading{justify-content:space-between;align-items:center;gap:12px;margin-bottom:.7rem;font-size:.9rem;display:flex}.field-photo-heading span{color:#617978;font-size:.8rem}.field-photo-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;min-width:0;display:grid}.field-photo-item,.field-photo-choice{background:#fff;border:1px solid #ccd9d7;border-radius:10px;min-width:0;overflow:hidden}.field-photo-preview{background:0 0;border:0;width:100%;padding:0;display:block}.field-photo-grid img{object-fit:contain;background:#eef3f1;width:100%;height:150px;display:block}.field-photo-item>button:last-child{white-space:normal;width:100%;min-height:44px}.field-photo-actions{flex-wrap:wrap;gap:8px;margin-top:.7rem;display:flex}.field-photo-actions label{cursor:pointer;background:#fff;border:1px solid #8aa49e;border-radius:10px;justify-content:center;align-items:center;min-height:44px;padding:10px 16px;font-size:.9rem;display:inline-flex;position:relative}.field-photo-actions input{opacity:0;cursor:pointer;width:100%;height:100%;position:absolute;inset:0}.field-photo-actions label:has(input:disabled){opacity:.5;cursor:not-allowed}.field-photo-actions label:focus-within{outline-offset:2px;outline:3px solid #328a9b}.field-photo-existing{margin-top:.5rem}.field-photo-existing summary{cursor:pointer;min-height:44px;padding:12px 0;font-size:.85rem}.field-photo-existing .field-photo-grid{max-height:360px;overflow:auto}.field-photo-choice{cursor:pointer;text-align:left;position:relative;padding:4px!important;display:block!important}.field-photo-choice.selected{background:#e9f3f0;border:2px solid #327978}.field-photo-choice input{z-index:1;accent-color:#245e5c;position:absolute;top:9px;left:9px;width:22px!important;height:22px!important}.field-photo-choice span,.field-photo-choice small{overflow-wrap:anywhere;padding:2px;font-size:12px;line-height:1.5;display:block}.record-field-photos .small{margin:.65rem 0 0;font-size:.8rem;line-height:1.7}.record-reference-photos{grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin:.7rem 0;display:grid}.record-reference-photos button{background:#fff;border:1px solid #d4e0dd;border-radius:8px;padding:0;overflow:hidden}.record-reference-photos img{object-fit:contain;width:100%;height:160px}.record-reference-photos span{padding:6px;font-size:12px;display:block}.record-edit-dialog .record-photo-select>label{grid-template-columns:24px minmax(0,1fr);align-items:start;gap:8px;min-width:0;display:grid}.record-edit-dialog .record-photo-select>label>img{object-fit:contain;width:100%;height:160px}.record-edit-dialog .record-photo-select>label>span{overflow-wrap:anywhere;grid-column:1/-1;min-width:0;font-size:13px;line-height:1.5}@media (max-width:600px){.field-photo-grid,.record-reference-photos{grid-template-columns:repeat(2,minmax(0,1fr))}.record-field-photos{padding:10px}.field-photo-grid img{height:135px}.field-photo-actions label{flex:1}.record-edit-dialog .record-photo-select>label{padding:8px}.record-edit-dialog .record-photo-select>label>img{height:145px}}
