/* DoorForce native photo picker */
.df-photo-sheet {
  position: fixed;
  inset: 0;
  z-index: 12000;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}
.df-photo-sheet-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.45);
}
.df-photo-sheet-panel {
  position: relative;
  width: min(420px, 100%);
  margin: 0 12px 18px;
  padding: 14px 14px 10px;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.28);
  display: flex;
  flex-direction: column;
  gap: 8px;
  animation: df-photo-sheet-up 0.22s ease-out;
}
@keyframes df-photo-sheet-up {
  from { transform: translateY(24px); opacity: 0.4; }
  to { transform: translateY(0); opacity: 1; }
}
.df-photo-sheet-title {
  margin: 0 0 4px;
  text-align: center;
  font-weight: 800;
  color: #0f172a;
  font-size: 0.95rem;
}
.df-photo-sheet-btn {
  appearance: none;
  border: 1px solid #d1d5db;
  background: #f8fafc;
  color: #0f172a;
  border-radius: 10px;
  padding: 14px 12px;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
}
.df-photo-sheet-btn:active { background: #e2e8f0; }
.df-photo-sheet-cancel { background: #fff; color: #64748b; margin-top: 4px; }

.df-photo-preview.df-photo-thumbs {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(72px, 1fr));
  gap: 8px;
  padding: 8px;
  min-height: 96px;
  max-height: none;
  overflow: auto;
}
.df-photo-thumb {
  position: relative;
  aspect-ratio: 1;
  border-radius: 8px;
  overflow: hidden;
  background: #e5e7eb;
  border: 1px solid #d1d5db;
}
.df-photo-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.df-photo-badge {
  position: absolute;
  left: 4px;
  bottom: 4px;
  font-size: 0.62rem;
  font-weight: 800;
  text-transform: uppercase;
  padding: 2px 5px;
  border-radius: 4px;
  background: rgba(15, 23, 42, 0.75);
  color: #fff;
}
.df-photo-badge-pending,
.df-photo-badge-uploading,
.df-photo-badge-syncing { background: rgba(180, 83, 9, 0.9); }
.df-photo-badge-synced,
.df-photo-badge-ok { background: rgba(21, 128, 61, 0.9); }
.df-photo-badge-failed { background: rgba(220, 38, 38, 0.9); }
.df-photo-progress {
  position: absolute;
  right: 4px;
  top: 4px;
  font-size: 0.62rem;
  font-weight: 800;
  background: rgba(15, 23, 42, 0.75);
  color: #fff;
  padding: 2px 4px;
  border-radius: 4px;
}
.df-photo-upload-status.is-uploading,
.df-photo-upload-status.is-pending { color: #b45309; }

.df-fire-upload {
  display: flex;
  flex-direction: column;
  gap: 8px;
}