.mdq-app .mdq-photo-existing,.mdq-app .mdq-photo-previews { display:grid; grid-template-columns:repeat(auto-fit,minmax(min(100%,190px),1fr)); gap:16px; margin:16px 0; }
.mdq-app .mdq-photo-tile { min-width:0; border:1px solid #c7c2b7; border-radius:12px; padding:12px; background:#fffefa; }
.mdq-app .mdq-photo-tile img { display:block; width:100%; height:160px; object-fit:contain; margin:0 0 12px; border-radius:6px; }
.mdq-app .mdq-photo-tile .mdq-check { margin:10px 0 0; font-size:13px; }
.mdq-app .mdq-photo-tile input[type=radio] { width:18px; height:18px; min-height:18px; padding:0; flex:none; accent-color:#193653; }
.mdq-app .mdq-photo-tile small { display:block; overflow-wrap:anywhere; font-size:12px; }
.mdq-app .mdq-photo-tile[data-removed=true] img { opacity:.35; }
.mdq-app .mdq-photo-warning { margin:10px 0 0; color:#765014; font-size:13px; }
.mdq-app .mdq-photo-feedback { padding:12px 14px; border-radius:8px; background:#fff3ee; color:#923e2e; margin:12px 0; font-size:14px; }
.mdq-app .mdq-photo-feedback[hidden] { display:none; }
body .mdq-gallery > a.mdq-gallery-item { display:block; min-width:0; border-radius:16px; overflow:hidden; background:#fffefa; }
body .mdq-gallery > a.mdq-gallery-item:first-child { grid-column:1/-1; }
body .mdq-gallery > a.mdq-gallery-item > img { display:block; width:100%; height:220px; max-height:none; margin:0; object-fit:cover; border-radius:0; }
body .mdq-gallery > a.mdq-gallery-item:first-child > img { height:390px; }
body .mdq-gallery > a.mdq-gallery-item:only-child > img { object-fit:contain; background:#fffefa; }
.mdq-photo-lightbox { box-sizing:border-box; width:min(1100px,calc(100% - 24px)); max-width:1100px; max-height:95dvh; padding:18px; border:1px solid #c7c2b7; border-radius:16px; background:#fffefa; color:#193653; }
.mdq-photo-lightbox::backdrop { background:#102a43db; }
.mdq-photo-lightbox img { display:block; width:100%; height:65vh; object-fit:contain; margin:12px 0; }
.mdq-photo-lightbox header,.mdq-photo-lightbox footer { display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap:12px; }
.mdq-photo-lightbox button { min-height:44px; padding:10px 16px; border:1px solid #19365355; border-radius:24px; background:#efebd9; color:#193653; font:600 14px system-ui,sans-serif; cursor:pointer; }
.mdq-photo-lightbox :focus-visible { outline:3px solid #fb775e; outline-offset:3px; }
body.mdq-photo-modal-open { overflow:hidden; }
@media(max-width:720px) {
 body .mdq-gallery > a.mdq-gallery-item > img { height:160px; }
 body .mdq-gallery > a.mdq-gallery-item:first-child > img { height:250px; }
 .mdq-photo-lightbox { padding:12px; }
 .mdq-photo-lightbox img { height:60vh; }
}
.mdq-app .mdq-photo-tile{position:relative}
.mdq-app .mdq-photo-cover-label{display:block;width:fit-content;margin:0 0 10px;padding:4px 10px;border-radius:20px;background:#193653;color:#fffefa;font-size:12px;font-weight:700}
.mdq-app .mdq-photo-cover-label[hidden]{display:none}
.mdq-app .mdq-photo-tile.mdq-is-cover{border-color:#193653}
.mdq-app .mdq-photo-tile[data-state=error]{border-color:#c86950}
.mdq-app .mdq-photo-state{margin:12px 0;font-size:14px;line-height:1.5;color:#193653}
.mdq-app .mdq-photo-tile[data-state=ready] .mdq-photo-state{color:#276451}
.mdq-app .mdq-photo-tile[data-state=error] .mdq-photo-state{color:#923e2e}
.mdq-app .mdq-photo-new-actions{display:flex;gap:14px;flex-wrap:wrap;margin-top:8px}
.mdq-app .mdq-photo-new-actions>button{background:transparent;color:#193653;padding:8px 0;border:0;border-radius:0;min-height:44px;font-size:13px;text-decoration:underline;text-underline-offset:3px;box-shadow:none}
.mdq-app .mdq-photo-new-actions>button:hover{background:transparent;color:#193653}
.mdq-app .mdq-photo-tile img[hidden],.mdq-app .mdq-photo-tile label[hidden],.mdq-app .mdq-photo-new-actions>button[hidden]{display:none}

.mdq-app .mdq-photo-tile[hidden],.mdq-app .mdq-photo-state[hidden]{display:none}
