.photo-upload { border:1px solid #dedee3; border-radius:16px; padding:10px; background:#fff; box-shadow:0 2px 3px #00000008; }
.photo-upload-zone { display:flex!important; position:relative; flex-direction:column; align-items:center; justify-content:center; gap:10px; min-height:172px; padding:24px 16px; box-sizing:border-box; border:1px dashed #cdced7; border-radius:12px; background:#fcfcfd; text-align:center; cursor:pointer; margin:0!important; }
.photo-upload-icon { display:grid; place-items:center; width:44px; height:44px; margin-bottom:6px; border:1px solid #dedee3; border-radius:11px; background:#fff; color:#73737d; box-shadow:0 2px 3px #00000008; }
.photo-upload svg { width:22px; height:22px; fill:none; stroke:currentColor; stroke-width:1.8; stroke-linecap:round; stroke-linejoin:round; }
.photo-upload-title { font:500 16px/1.45 Inter,system-ui,sans-serif; color:#222; }
.photo-upload-browse { text-decoration:underline; text-underline-offset:4px; text-decoration-color:#bfc0c7; }
.photo-upload-hint { font:400 13px/1.5 Inter,system-ui,sans-serif; color:#6b6b76; }
.photo-upload-input { position:absolute!important; inset:0; width:100%!important; height:100%!important; opacity:0; cursor:pointer; }
.photo-upload-zone:focus-within { outline:2px solid #a34a29; outline-offset:3px; }
.photo-upload-zone.is-dragging { background:#fff3e9; border-color:#cf7844; }
.photo-upload-zone.is-full { cursor:default; }
.photo-upload-row { display:flex; align-items:center; gap:12px; padding:14px 8px; }
.photo-upload-row img { width:44px; height:44px; object-fit:cover; border-radius:7px; flex:none; }
.photo-upload-info { flex:1; min-width:0; display:flex; flex-direction:column; gap:3px; }
.photo-upload-info strong { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; font:500 14px/1.4 Inter,system-ui,sans-serif; color:#222; }
.photo-upload-info>span,.photo-upload-footer { font:400 13px/1.5 Inter,system-ui,sans-serif; color:#6b6b76; }
.photo-upload-check { display:grid; place-items:center; color:#00976b; flex:none; }
.photo-upload-remove { display:grid; place-items:center; padding:8px; min-width:40px; min-height:44px; border:0; border-radius:8px; background:transparent; color:#85858f; cursor:pointer; }
.photo-upload-remove:hover { background:#f1f1f4; color:#222; }
.photo-upload-footer { display:flex; justify-content:space-between; align-items:center; gap:12px; margin:0 8px; padding:10px 0 2px; border-top:1px solid #ededf1; }
.photo-upload-footer[hidden] { display:none; }
.photo-upload-footer button { min-height:44px; border:0; background:none; padding:8px 4px; color:inherit; font:inherit; cursor:pointer; }
.photo-upload button:focus-visible { outline:2px solid #a34a29; outline-offset:2px; }
@media(max-width:640px) { .photo-upload-zone { min-height:164px; padding:20px 12px; } .photo-upload-row { gap:8px; padding-inline:2px; } }
/* Native dialogs need their own viewport reset, matching the other mobile forms. */
@media(max-width:860px) {
 #ownerModalOverlay { position:fixed; inset:0; width:100vw; max-width:none; height:100dvh; max-height:none; margin:0; padding:0; border:0; border-radius:0; background:#fff; }
 #ownerModalOverlay>.modal-card { width:100%; max-width:none; height:100%; max-height:none; margin:0; border:0; border-radius:0; box-shadow:none; overflow-y:auto; }
 #ownerModalOverlay>.modal-card>.modal-body { padding:24px 16px calc(28px + env(safe-area-inset-bottom)); }
 #ownerModalOverlay .page-title { padding-right:52px; }
}

.photo-upload-primary { border:0; padding:4px 0; background:none; color:#555; text-align:left; font:500 12px/1.4 Inter,system-ui,sans-serif; text-decoration:underline; text-underline-offset:3px; cursor:pointer; }
.se-photos:has(.photo-upload) { display:block; }
.se-photos .photo-upload { width:100%; }

.photo-upload-error { margin:8px; color:#a83b26; font-size:13px; line-height:1.4; }
.photo-upload-error:empty { display:none; }
