/* Shared registration fields and photo controls, using the device entry reference. */
.entry-photos input.entry-file-input { position:absolute; width:1px; height:1px; min-width:0; min-height:0; padding:0; margin:-1px; overflow:hidden; clip-path:inset(50%); white-space:nowrap; border:0; }
.entry-photos [hidden] { display:none; }
.entry-photo-label { display:block; }
.entry-photos .ui-icon { width:19px; height:19px; flex:none; }
.entry-photos { position:relative; margin-top:22px; min-width:0; }
.entry-photo-label { font-size:13px; font-weight:650; margin-bottom:8px; }
.entry-photo-bar { display:flex; align-items:center; justify-content:space-between; gap:10px; padding:8px 10px; border:1px solid var(--vd-border); border-radius:7px; }
.entry-photo-status { font-size:13px; color:var(--vd-text-secondary); }
.entry-photo-bar .btn { display:inline-flex; align-items:center; gap:8px; min-height:40px; padding:8px 10px; font-size:13px; }
.entry-photos>.field-note { display:block; font-size:11px; margin:7px 0 0; color:var(--vd-text-secondary); }
.entry-photo-thumbs { display:grid; grid-template-columns:repeat(auto-fill,minmax(120px,1fr)); gap:10px; margin-top:10px; }
.entry-photo-thumbs:empty { display:none; }
.entry-photo-thumb { position:relative; min-width:0; padding:5px; border:1px solid var(--vd-border); border-radius:7px; }
.entry-photo-preview { position:relative; height:100px; background:var(--vd-surface-subtle); border-radius:4px; }
.entry-photo-preview>a { display:grid; place-items:center; height:100%; }
.entry-photo-thumb img { display:block; width:100%; height:100px; object-fit:contain; }
.entry-photo-primary { position:absolute; top:9px; left:9px; padding:3px 6px; border-radius:4px; background:var(--vd-surface); color:var(--vd-text-primary); font-size:11px; font-weight:700; }
.entry-photo-loading,.entry-photo-load-error { position:absolute; inset:0; display:flex; align-items:center; justify-content:center; text-align:center; padding:4px; font-size:11px; color:var(--vd-text-secondary); }
.entry-photo-load-error { flex-direction:column; gap:2px; }
.entry-photo-retry { border:0; padding:3px; min-height:30px; background:transparent; color:var(--vd-text-primary); text-decoration:underline; cursor:pointer; font-size:11px; }
.entry-photo-actions { display:flex; justify-content:flex-end; gap:4px; margin-top:4px; }
.entry-photo-actions button { min-width:44px; min-height:44px; border:0; background:var(--vd-surface-subtle); color:var(--vd-text-primary); border-radius:4px; cursor:pointer; font-size:20px; }
.entry-photo-actions [aria-pressed='true'] { background:var(--vd-surface-info); font-weight:700; }

.entry-photos .entry-photo-bar .btn { min-height:44px; }
.entry-photos .entry-photo-actions button { font-size:12px; padding:7px 10px; }
.entry-photos :is(.entry-photo-status,.field-validation-error) { overflow-wrap:anywhere; min-width:0; }
.entry-photos .entry-photo-bar { background:var(--vd-surface); }
.entry-photos .entry-photo-label { color:var(--vd-text-primary); }
@media(max-width:480px) { .entry-photo-bar { flex-wrap:wrap; } .entry-photo-bar .btn { margin-left:auto; } }
