[hidden] { display: none !important; }
.photo-entry { position: absolute; right: 16px; top: 20px; border: 1px solid var(--line); border-radius: 22px; padding: 10px 14px; background: white; color: var(--accent); font-size: 14px; }
.photo-panel { max-width: 680px; margin: 12px auto; }
.photo-panel h2 { font-size: 20px; margin: 12px 0 8px; }
.photo-hint { font-size: 13px; color: var(--muted); line-height: 1.65; }
.photo-form { background: white; border: 1px solid var(--line); border-radius: 16px; padding: 16px; }
.photo-form label { display: grid; gap: 6px; margin: 12px 0; font-size: 13px; color: var(--muted); }
.photo-form input, .photo-form select, .photo-form textarea { min-width: 0; width: 100%; padding: 11px; border: 1px solid var(--line); border-radius: 10px; background: var(--bg); color: var(--text); font: inherit; font-size: 16px; }
.photo-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.photo-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.photo-actions button { flex: 1; min-height: 44px; padding: 12px; border-radius: 12px; font-size: 14px; }
.photo-secondary { background: white; color: var(--accent); border: 1px solid var(--line); }
.photo-preview { display: block; width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 10px; background: var(--bg); }
.photo-placeholder { padding: 36px 16px; text-align: center; border: 1px dashed #d9c9b8; border-radius: 12px; margin: 12px 0; color: var(--muted); font-size: 14px; }
.photo-feedback { font-size: 14px; line-height: 1.6; min-height: 24px; overflow-wrap: anywhere; }
.photo-feedback[data-error="true"], .photo-card-error { color: #9f382a; }
.photo-actions .primary { margin: 0; }
.photo-panel button:disabled { opacity: .5; cursor: default; }
.photo-records-header { display: flex; align-items: center; justify-content: space-between; margin: 24px 0 12px; }
.photo-records-header h2 { margin: 0; font-size: 17px; }
.photo-records-header button { border: 0; background: none; color: var(--accent); padding: 10px; }
.photo-card { background: white; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.photo-card > button { display: block; width: 100%; padding: 0; border: 0; background: var(--bg); }
.photo-card img { display: block; width: 100%; aspect-ratio: 3/4; object-fit: cover; }
.photo-card-info { padding: 10px; font-size: 12px; overflow-wrap: anywhere; }
.photo-card-info p { line-height: 1.5; margin: 6px 0; white-space: pre-wrap; }
.photo-card-info .photo-secondary { width: 100%; border-radius: 8px; padding: 10px 4px; min-height: 44px; }
.photo-card-status { color: var(--accent); }
.photo-view { max-width: 90vw; width: 700px; max-height: 90dvh; border: 0; border-radius: 16px; background: var(--bg); padding: 12px; }
.photo-view::backdrop { background: #000b; }
.photo-view img { display: block; width: 100%; max-height: 70dvh; object-fit: contain; }
.photo-view button { display: block; margin: 0 0 8px auto; padding: 10px 18px; border: 0; border-radius: 8px; background: white; color: var(--accent); }
.photo-form-heading { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 16px; }
.photo-form-heading h2 { margin: 0; font-size: 18px; }
.photo-form-heading span { color: var(--muted); font-size: 12px; }
.photo-pickers button:first-child { flex: 2; }
.photo-selection-heading { display: flex; align-items: center; justify-content: space-between; font-size: 13px; margin: 12px 0 4px; color: var(--muted); }
.photo-selection-heading button { border: 0; background: none; color: var(--accent); min-height: 44px; padding: 8px; }
.photo-previews { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.photo-draft { position: relative; min-width: 0; }
.photo-remove { position: absolute; top: 0; right: 0; width: 44px; height: 44px; border: 0; border-radius: 0 10px 0 10px; color: white; background: #33271fbb; font-size: 25px; }
.photo-filename { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--muted); font-size: 11px; margin-top: 5px; }
.photo-draft-error { color: #9f382a; font-size: 12px; overflow-wrap: anywhere; margin: 4px 0; }
.photo-draft-error:empty { display: none; }
.photo-caption summary, .photo-trash summary { color: var(--muted); cursor: pointer; font-size: 13px; padding: 12px 0; }
.photo-caption textarea { margin: 4px 0 8px; }
.photo-form .photo-sync-option { display: flex; align-items: center; gap: 8px; line-height: 1.5; min-height: 44px; margin: 4px 0; }
.photo-sync-option input { width: 18px; height: 18px; flex-shrink: 0; accent-color: var(--accent); }
.photo-submit { width: 100%; margin-top: 8px; }
.photo-feedback { margin: 10px 0 0; min-height: 0; font-size: 13px; }
.photo-feedback:empty { display: none; }
.photo-card-actions { display: flex; gap: 6px; align-items: center; }
.photo-delete { min-height: 44px; flex-shrink: 0; border: 0; background: none; color: #9f382a; padding: 8px 12px; margin-left: auto; }
.photo-undo { display: flex; align-items: center; justify-content: space-between; border-radius: 10px; padding: 6px 12px; margin-bottom: 12px; background: #f3e9df; font-size: 14px; }
.photo-undo button { color: var(--accent); border: 0; background: none; min-height: 44px; padding: 8px; font-size: 14px; }
.photo-trash { border-top: 1px solid var(--line); margin-top: 16px; }
.photo-trash-row { display: flex; gap: 12px; align-items: center; justify-content: space-between; padding: 6px 0; font-size: 13px; }
.photo-trash-row span { overflow-wrap: anywhere; min-width: 0; }
.photo-trash-row img { width: 48px; height: 64px; border-radius: 6px; object-fit: cover; flex-shrink: 0; }
.photo-trash-row span { flex: 1; }
.photo-trash-row button { flex-shrink: 0; min-height: 44px; border-radius: 8px; padding: 8px 16px; }
.photo-sr-only { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.photo-privacy { font-size: 12px; }
@media (max-width: 360px) { .photo-fields { grid-template-columns: 1fr; gap: 0; } .photo-entry { right: 12px; padding: 10px; } }
