.ms-album-report{display:block;width:100%;margin-top:8px;min-height:38px;background:var(--brand-soft);color:var(--brand);border:1px solid var(--line);font-weight:700}
.ms-gallery-card>button[data-gallery-report]{width:calc(100% - 16px);margin:0 8px 10px;white-space:normal;min-height:40px}
.ms-report-direct .ms-report-workspace{display:grid;grid-template-columns:minmax(0,1.6fr) minmax(290px,1fr);gap:18px;align-items:start}
.ms-report-direct .ms-report-workspace>section:last-child{order:0}
.ms-report-direct .photo-report-sheet{max-height:none}
.ms-report-direct .ms-report-settings{grid-template-columns:2fr 1fr 1fr}
.ms-report-direct .photo-report-advanced input,.ms-report-direct .photo-report-advanced select,.photo-report-editor input,.photo-report-editor textarea,.photo-batch-fields input{width:100%;min-width:0;border:1px solid var(--line);border-radius:8px;padding:10px 12px;background:var(--card);color:var(--text);font:inherit}
.photo-report-editor{padding:16px;border:1px solid var(--line);border-radius:12px;background:var(--card)}
.photo-editor-head{display:flex;align-items:center;gap:6px;margin-bottom:10px}.photo-editor-head b{flex:1;font-size:14px}
.photo-editor-image{display:flex;align-items:center;justify-content:center;overflow:hidden;height:180px;background:var(--bg);border-radius:8px}.photo-editor-image img{max-width:100%;max-height:100%;object-fit:contain}.photo-editor-image img.sideways{max-width:175px;max-height:175px}
#msEditFilename{display:block;overflow-wrap:anywhere;color:var(--sub);font-size:11px;margin:6px 0}
.photo-report-editor>label{display:block;font-size:12px;font-weight:650;margin:12px 0 6px}.photo-report-editor textarea{resize:vertical;min-height:70px}.photo-report-editor .desc{font-size:11px;margin:10px 0 0}
.photo-rotate-tools,.photo-edit-order{display:flex;gap:6px;flex-wrap:wrap;margin-top:10px}.photo-rotate-tools>.btn,.photo-edit-order>.btn{flex:1;padding:8px 6px;min-height:38px;font-size:12px;white-space:nowrap}
.photo-preview-hit{fill:transparent;stroke:transparent;stroke-width:2.5;cursor:pointer}.photo-preview-hit.active{stroke:#4f63ee;fill:#5265e908}
[data-report-preview]:hover .photo-preview-hit,[data-report-preview]:focus .photo-preview-hit{stroke:#4f63ee;fill:#5265e915}[data-report-preview]:focus{outline:none}
.photo-report-collection{margin-top:20px;border-top:1px solid var(--line);padding-top:16px}.photo-collection-head{display:flex;gap:8px;align-items:center;flex-wrap:wrap}.photo-collection-head h4{flex:1;margin:0;font-size:15px}.photo-collection-head h4 span{font-weight:400;color:var(--sub);font-size:13px}
.photo-site-chips{display:flex;flex-wrap:wrap;gap:6px;margin:14px 0}.photo-site-chips button{max-width:100%;white-space:normal;overflow-wrap:anywhere}.photo-site-chips b{margin-left:5px;color:var(--brand)}
.photo-batch-fields{display:grid;grid-template-columns:auto minmax(100px,1fr) auto minmax(100px,1fr) auto;align-items:center;gap:8px;font-size:12px}.photo-batch-fields .btn{font-size:12px;white-space:normal;min-height:40px}.photo-batch-fields input{font-size:13px}
.photo-report-thumbnails{display:grid;grid-template-columns:repeat(auto-fill,minmax(105px,1fr));gap:10px;max-height:320px;overflow:auto;overscroll-behavior:contain;padding:4px}
.photo-thumb{min-width:0;border:1px solid var(--line);padding:6px;border-radius:9px;background:var(--card)}.photo-thumb.checked{background:var(--brand-soft);border-color:var(--brand)}.photo-thumb>label{display:flex;align-items:center;justify-content:space-between;margin-bottom:4px;font-size:11px;color:var(--sub);cursor:pointer}.photo-thumb input{width:18px;height:18px}.photo-thumb>button{width:100%;height:82px;border:2px solid transparent;border-radius:5px;background:var(--bg);display:flex;align-items:center;justify-content:center;overflow:hidden;cursor:pointer}.photo-thumb>button.active{border-color:var(--brand)}.photo-thumb>button img{width:74px;height:74px;object-fit:contain}.photo-thumb>small{display:block;font-size:11px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;margin-top:4px}.photo-thumb>button:focus-visible{outline:3px solid var(--brand)}
.ms-report-direct .modal-foot{box-shadow:0 -4px 12px #00000008}.ms-report-direct #msReportStatus{max-width:100%;overflow-wrap:anywhere}
@media(max-width:760px){
 .ms-report-direct .ms-report-workspace{grid-template-columns:minmax(0,1fr);gap:12px}.ms-report-direct .ms-report-workspace>section:nth-child(2){order:0}.ms-report-direct .ms-report-settings{grid-template-columns:minmax(0,1fr) minmax(0,1fr)}.ms-report-direct .ms-report-settings .field:first-child{grid-column:1/-1}.ms-report-direct .ms-report-settings .field:nth-child(2){grid-column:auto}
 .photo-report-editor{padding:12px}.photo-editor-image{height:150px}.photo-editor-image img.sideways{max-width:145px;max-height:145px}.photo-report-editor input,.photo-report-editor textarea,.photo-batch-fields input{font-size:16px}.photo-rotate-tools>.btn,.photo-edit-order>.btn{min-height:44px}
 .photo-batch-fields{grid-template-columns:minmax(0,1fr) auto}.photo-batch-fields>span{grid-column:1/-1}.photo-batch-fields .btn{max-width:125px;min-height:44px}.photo-collection-head h4{flex-basis:100%}.photo-collection-head>.btn{flex:1;min-height:40px}.photo-report-thumbnails{grid-template-columns:repeat(3,minmax(0,1fr));gap:6px}.photo-thumb>button{height:72px}.photo-thumb>button img{width:64px;height:64px}.ms-report-direct .modal-foot #msReportStatus{flex-basis:100%;margin:0}.ms-report-direct .modal-foot .btn{flex:1}
}

.photo-close-guard{flex-basis:100%;display:flex;flex-wrap:wrap;align-items:center;gap:8px;padding:10px;border:1px solid var(--brand);border-radius:9px;background:var(--brand-soft);font-size:13px}.photo-close-guard>span{flex:1;min-width:180px}.photo-close-guard .btn{font-size:12px}

.ms-report-direct .photo-move-tools, .ms-report-direct .photo-move-state {
  display:flex; align-items:center; flex-wrap:wrap; gap:6px 10px; margin:6px 0 10px;
  font-size:12px; line-height:1.5; color:var(--sub);
}
.ms-report-direct .photo-move-tools span, .ms-report-direct .photo-move-state span {flex:1 1 155px}
.ms-report-direct .photo-move-state {padding:8px 10px; background:var(--brand-soft); border-radius:8px; color:var(--text)}
.ms-report-direct .photo-move-state[hidden] {display:none}
.photo-pointer-moving .ms-report-direct .photo-move-state {display:none}
.ms-report-direct .photo-preview-move, .ms-report-direct .photo-thumb-move {cursor:grab; touch-action:none; user-select:none}
.ms-report-direct .photo-preview-move {color:#31485a}
.ms-report-direct .photo-preview-move * {touch-action:none}
.ms-report-direct .photo-preview-move rect {fill:#fffffff2;stroke:#8194a0;stroke-width:1}
.ms-report-direct .photo-preview-move:hover rect {fill:#e7f1ff;stroke:#315ae0}
.ms-report-direct .photo-thumb-toolbar {display:flex;align-items:center;justify-content:space-between;gap:3px;margin-bottom:4px}
.ms-report-direct .photo-thumb-toolbar label {display:flex;align-items:center;gap:3px;cursor:pointer;font-size:11px;color:var(--sub)}
.ms-report-direct .photo-thumb-move {
  display:grid;place-items:center; min-width:31px; min-height:31px; padding:0 6px;
  color:var(--text);border:1px solid var(--line);border-radius:6px;background:var(--bg);font:700 20px/1 sans-serif;
}
.ms-report-direct [data-report-preview].photo-move-source .photo-preview-hit {fill:#3755b624;stroke:#3655ba;stroke-dasharray:5 3}
.ms-report-direct [data-report-preview].photo-move-target .photo-preview-hit {fill:#00756329;stroke:#007563;stroke-width:4}
.ms-report-direct .photo-thumb.photo-move-source {outline:2px dashed var(--brand);outline-offset:-2px}
.ms-report-direct .photo-thumb.photo-move-target {outline:3px solid #007563;outline-offset:-2px}
.ms-report-direct [data-report-preview]:focus-visible .photo-preview-hit {stroke:#284bdd;stroke-width:3.5;stroke-dasharray:5 2}
.photo-drag-ghost {position:fixed;left:0;top:0;width:74px;height:60px;object-fit:cover;border:2px solid white;border-radius:6px;box-shadow:0 3px 11px #0005;pointer-events:none;opacity:.87;z-index:9999}
.photo-slot-art,.photo-pointer-moving .photo-thumb img,.photo-pointer-moving .photo-thumb small {pointer-events:none}
.photo-pointer-moving .photo-insertion .photo-slot-art,.photo-pointer-moving .photo-insertion [data-report-edit] img {opacity:.48}
.photo-pointer-moving .ms-report-direct [data-report-preview][data-projected-key] .photo-preview-hit {stroke:transparent;fill:transparent}
.photo-pointer-moving .ms-report-direct [data-report-preview].photo-insertion .photo-preview-hit {stroke:#007563;stroke-width:3;stroke-dasharray:6 3;fill:#0075630d}
.photo-pointer-moving .ms-report-direct .photo-thumb[data-projected-key] {outline:0}
.photo-pointer-moving .ms-report-direct .photo-thumb.photo-insertion {outline:2px dashed #007563;outline-offset:-2px}
@media (max-width:760px){.ms-report-direct .photo-thumb-move{min-width:36px;min-height:36px}.ms-report-direct .photo-move-state .btn{min-height:40px}}
.photo-word-hit{fill:transparent;pointer-events:all;cursor:text}
[data-report-word]:focus-visible .photo-word-hit,.photo-word-hit:hover{fill:#4762b512;stroke:#405ba1;stroke-width:1}
.photo-preview-words{box-sizing:border-box;width:min(350px,calc(100% - 24px));max-height:85dvh;overflow:auto;border:1px solid var(--line);border-radius:12px;padding:18px;background:var(--card,#fff);color:var(--text,#172338);box-shadow:0 8px 36px #17233830}
.photo-preview-words::backdrop{background:#17233820}
.photo-preview-words h4{font-size:16px;margin:0 0 12px}
.photo-preview-words label{display:block;font-size:13px;font-weight:650;margin:8px 0 5px}
.photo-preview-words input,.photo-preview-words textarea{box-sizing:border-box;width:100%;padding:9px;border:1px solid var(--line);border-radius:7px;color:inherit;background:var(--bg,#fff);font:inherit}
.photo-preview-words textarea{resize:vertical}
.photo-word-actions{display:flex;justify-content:flex-end;gap:8px;margin-top:12px}
.ms-report-preview-head{flex-wrap:wrap}
