.pw6-photo-overlay { align-items: center; padding: 16px; overflow-y: auto; background: rgba(8,20,35,.6); backdrop-filter: none; -webkit-backdrop-filter: none; }
.pw6-photo { width: 100%; max-width: 520px; max-height: calc(100vh - 32px); max-height: calc(100dvh - 32px); overflow-y: auto; padding: 24px; border-radius: 16px; background: var(--pw-surface, #fff); color: var(--pw-text, #17232b); display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; box-sizing: border-box; }
.pw6-photo [hidden] { display: none !important; }
.pw6-photo header, .pw6-photo footer, .pw6-photo__pick { display: grid; align-items: center; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 10px; }
.pw6-photo header { grid-template-columns: minmax(0, 1fr) auto; }
.pw6-photo header > div { min-width: 0; overflow-wrap: break-word; }
.pw6-photo h2 { margin: 4px 0 0; font-size: 22px; line-height: 1.2; }
.pw6-photo p { margin: 0; font-size: 14px; line-height: 1.5; color: var(--pw-text-muted, #53616c); }
.pw6-photo .form-field { display: grid; gap: 8px; font-size: 14px; min-width: 0; }
.pw6-photo select, .pw6-photo textarea { width: 100%; min-width: 0; font-size: 16px; min-height: 48px; box-sizing: border-box; }
.pw6-photo .btn { min-width: 44px; min-height: 48px; white-space: normal; justify-content: center; font-size: 14px; }
.pw6-photo__pick .btn, .pw6-photo footer .btn { flex: 1 1 120px; }
.pw6-photo__location { display: grid; justify-items: start; gap: 6px; font-size: 14px; line-height: 1.5; color: var(--pw-text-muted, #53616c); }
.pw6-photo #upd-img { width: 100%; max-height: 300px; object-fit: contain; border-radius: 10px; background: var(--pw-surface-muted, #f0f2f3); }
.pw6-photo #upd-status { color: var(--pw-text, #17232b); }
.pw6-photo footer { position: sticky; bottom: -24px; margin: 0 -24px -24px; padding: 16px 24px; background: var(--pw-surface, #fff); border-top: 1px solid var(--pw-border, #dce1e5); }
@media (max-width: 767px) {
 .pw6-photo-overlay { padding: 8px; align-items: flex-start; }
 .pw6-photo { margin: auto 0; padding: 16px; max-height: calc(100vh - 16px); max-height: calc(100dvh - 16px); border-radius: 12px; }
 .pw6-photo footer { bottom: -16px; margin: 0 -16px -16px; padding: 12px 16px calc(12px + env(safe-area-inset-bottom,0px)); }
}
.pw6-photo #upd-video { display:block; width:100%; max-height: min(42vh,360px); object-fit:contain; background:#101923; border-radius:10px; margin-bottom:12px; }
.pw6-photo small { font-size:14px; line-height:1.5; color:var(--pw-text-muted,#53616c); }
.pw6-photo #upd-location-status { overflow-wrap:anywhere; }
/* Safari's native menu control can ignore min-height until appearance is reset. */
.pw6-photo select { appearance:none; -webkit-appearance:none; height:48px; padding:10px 38px 10px 12px; background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16'%3E%3Cpath d='m4 6 4 4 4-4' fill='none' stroke='%2376818d' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E"); background-repeat:no-repeat; background-position:right 12px center; }
