.photo-ref-app{display:grid;grid-template-columns:14.5% minmax(0,1fr);height:calc(100vh - 102px)}main.photo-ref-workspace{display:grid!important;grid-template-columns:26% 38% minmax(0,1fr);max-width:none!important;padding:12px!important;gap:12px!important;height:100%;margin:0!important;min-width:0}.photo-ref-panel{background:white;border:1px solid #e0e3ec;border-radius:8px;padding:12px;overflow:auto;min-width:0}.photo-ref-panel h2{font:700 12px Arial;color:#252a33;border-bottom:1px solid #e9ebf0;margin:0 0 12px;padding-bottom:10px}.photo-ref-panel h3{font:700 11px Arial;color:#303944}.photo-ref-panel .hint,.photo-ref-help{font:10px/1.5 Arial!important;color:#687485!important}.photo-ref-choose{display:block;border:1px dashed #ccd2dd;background:#f8fafc;border-radius:5px;width:100%;min-height:85px;color:#e91839;font:700 12px Arial}.photo-ref-panel label{font:10px Arial!important;margin:10px 0 4px}.photo-ref-panel select,.photo-ref-panel input[type=number]{font:11px Arial;padding:7px!important;border:1px solid #d8dfe9;border-radius:4px;min-height:30px!important;width:100%}.photo-ref-panel .card{box-shadow:none;border:0;padding:8px 0;margin:0}.photo-ref-panel .card h2,.photo-ref-panel .card .step{display:none}.photo-ref-panel .btn{font:11px Arial!important;padding:10px!important;border-radius:4px!important;min-height:35px!important;margin:8px 0!important;background:#e91839!important;color:white!important;width:100%}.photo-ref-panel .btn.alt{background:white!important;border:1px solid #d4dce7!important;color:#344256!important}.photo-ref-panel #stage{background:#1d232b;border-radius:6px!important;max-height:350px;overflow:hidden}.photo-ref-panel canvas{max-width:100%;height:auto!important}.photo-ref-panel #framingCanvas{max-height:300px;object-fit:contain;background:#1d232b}.photo-ref-panel #cv{width:100%;height:auto;max-height:330px;object-fit:contain}.photo-ref-panel p[role=status]{font:10px/1.5 Arial;color:#536175}.photo-ref-panel details summary{font:11px/1.5 Arial;color:#4d5c6c;cursor:pointer}.photo-ref-panel .modes{display:grid;grid-template-columns:1fr 1fr;gap:4px}.photo-ref-panel .modes button{font:9px Arial;padding:6px;border-radius:4px;min-height:42px}.photo-ref-panel .modes small{font-size:8px}.photo-ref-panel #sheetCanvas{box-shadow:0 1px 8px #0002;margin-bottom:10px}.photo-ref-panel #sheetReview{background:#f4f6f9;padding:10px}.photo-ref-panel #sheetReview a{display:block;text-decoration:none;text-align:center}.photo-ref-empty{padding:55px 15px;background:#f1f3f7;font:11px/1.6 Arial;text-align:center;color:#818a98;border-radius:5px}.photo-ref-panel #out{max-width:100%;height:auto}.photo-ref-panel input[type=checkbox]{width:auto!important;display:inline-block!important}.photo-rail-icon{width:16px;text-align:center;font-size:18px;line-height:16px;font-weight:600}.photo-ref-panel [hidden]{display:none!important}.photo-ref-panel #zoomw{margin-bottom:10px}.photo-ref-panel .photo-ref-output-actions{border-top:1px solid #e5e9ef;margin-top:10px}.photo-ref-panel #guidew{font-size:10px}
@media(max-width:760px){.photo-ref-app{display:block;height:auto}.photo-ref-app .ref-rail{display:flex;overflow:auto}.photo-ref-app .ref-rail a:not(.active){display:none}main.photo-ref-workspace{display:flex!important;flex-direction:column;height:auto!important;padding:10px!important}.photo-ref-panel{overflow:visible}.photo-ref-panel .hint,.photo-ref-help{font-size:12px!important}.photo-ref-panel label{font-size:12px!important}.photo-ref-panel .btn{min-height:42px!important;font-size:12px!important}.photo-ref-panel select{min-height:38px!important}.photo-ref-panel .modes button{font-size:11px;min-height:46px}.photo-ref-panel h2{font-size:14px}.photo-ref-panel #framingCanvas{max-height:420px}.photo-ref-panel p[role=status]{font-size:12px}.photo-ref-panel details summary{font-size:12px;min-height:34px}}

.photo-ref-panel h2{font:700 12px Arial!important}.photo-ref-app .ref-rail a,.photo-ref-app .ref-rail span.ref-pending{min-height:29px!important;padding:6px 5px!important;font:11px Arial!important}.photo-ref-panel .modes button{white-space:normal!important;word-break:normal!important;overflow-wrap:normal!important;min-width:0!important;width:100%!important;font:10px/1.3 Arial!important;padding:7px 4px!important}.photo-ref-panel .modes{margin:8px 0!important;padding:4px!important;gap:4px!important}.photo-ref-panel .modes small{white-space:normal!important;word-break:normal!important}.photo-ref-panel #framedCropReview>p.hint{margin:6px 0;font-size:9px!important}.photo-ref-panel #framingStatus{font-size:9px!important;margin:6px 0}.photo-ref-panel #framingBox>h3{margin:7px 0}.photo-ref-panel #framedCropReview>h3{margin:7px 0}.photo-ref-panel details summary{font-size:10px}#sheetPdf{background:#c9253d!important;color:white!important}

.photo-ref-selected:not([hidden]){display:flex;align-items:center;gap:8px;background:#fff0f3;border:1px solid #f4b8c2;border-radius:5px;padding:5px;margin-top:8px}.photo-ref-selected img{width:28px;height:36px;object-fit:cover}.photo-ref-selected span{font:10px/1.4 Arial;overflow-wrap:anywhere;min-width:0}

.photo-ref-queue-row{display:grid;grid-template-columns:25px 1fr 25px;gap:4px;align-items:center;background:#f7f9fc;border:1px solid #dce3ed;border-radius:4px;padding:5px;margin-top:6px}.photo-ref-queue-row.selected{background:#fff0f3;border-color:#e98a9a}.photo-ref-queue-row button{font:10px/1.4 Arial;min-height:25px;border:1px solid #d7dfe8;background:white;border-radius:3px;color:#34445a}.photo-ref-queue-row button:first-child{grid-column:1/4;text-align:left;overflow-wrap:anywhere;padding:5px}.photo-ref-queue-row span{font:10px Arial;text-align:center}

@media(max-width:760px){.photo-ref-queue-row button{min-height:38px!important}.photo-ref-queue-row{grid-template-columns:38px 1fr 38px}.photo-ref-queue-row button:first-child{font-size:11px!important}}
.photo-ref-panel #stage,.photo-ref-panel #cv,.photo-ref-panel #sheetCanvas,.photo-ref-panel #sheetReview{border-radius:0!important}.photo-ref-panel #sheetCanvas{box-shadow:0 2px 8px #0002!important}.photo-ref-panel #stage{background:#e7eaf0!important}.photo-ref-panel #sheetReview{background:#f6f8fb!important}
.photo-ref-queue-row button:first-child{grid-column:1/3}.photo-ref-queue-row .photo-ref-remove{grid-column:3/4;color:#8b4550;font-size:16px;line-height:1}.photo-ref-queue-row .photo-ref-remove:hover{background:#fff1f3}
#out img{border-radius:0!important}

.photo-ref-app .ref-rail a.active{background:#fff0f3!important;color:#e91839!important;border-color:#e91839!important}
.photo-ref-panel input[type=checkbox],.photo-ref-panel input[type=range]{accent-color:#e91839}
.photo-ref-tools{display:grid;grid-template-columns:1fr 1fr;gap:6px;margin:8px 0}.photo-ref-tools .btn{margin:0!important;min-height:36px!important}
.photo-ref-border{border:1px solid #e0e3ec;border-radius:6px;padding:8px;margin:10px 0}.photo-ref-border label{margin:6px 0 4px}
@media(min-width:761px){.photo-ref-tools{grid-template-columns:repeat(4,1fr)}}
.photo-ref-panel :focus-visible,.photo-ref-panel [tabindex]:focus,#sheetReview:focus,#framedCropReview:focus{outline:2px solid #e91839!important;outline-offset:2px}
