/* Optional photo-first entry for new memories only. Existing Media stays intact. */
html body main.app-shell #memoryForm#memoryForm #memoryPhotoStart {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) !important;
  align-items: center !important;
  box-sizing: border-box !important;
  width: min(100%, 560px) !important;
  min-width: 0 !important;
  margin: 0 auto 6px !important;
  padding: 16px !important;
  gap: 14px !important;
  border: 1px solid #c5ded9 !important;
  border-radius: 20px !important;
  color: #00243f !important;
  background: #edf8f4 !important;
  box-shadow: none !important;
  text-align: left !important;
}
html body main.app-shell #memoryForm#memoryForm #memoryPhotoStart[hidden],
html body main.app-shell #memoryForm#memoryForm #memoryPhotoStart [hidden] {
  display: none !important;
}
html body main.app-shell #memoryForm#memoryForm #memoryPhotoStart.has-photo {
  grid-template-columns: 72px minmax(0, 1fr) !important;
}
html body main.app-shell #memoryForm#memoryForm #memoryPhotoStart .memory-photo-start-copy {
  min-width: 0 !important;
  display: grid !important;
  gap: 8px !important;
}
html body main.app-shell #memoryForm#memoryForm #memoryPhotoStart .memory-photo-start-heading {
  display: flex !important;
  flex-wrap: wrap !important;
  align-items: baseline !important;
  justify-content: space-between !important;
  gap: 4px 12px !important;
}
html body main.app-shell #memoryForm#memoryForm #memoryPhotoStartTitle {
  margin: 0 !important;
  font-size: 1rem !important;
  font-weight: 700 !important;
  line-height: 1.35 !important;
}
html body main.app-shell #memoryForm#memoryForm #memoryPhotoStart .memory-photo-start-optional {
  color: #526f74 !important;
  font-size: .75rem !important;
  font-weight: 500 !important;
  line-height: 1.4 !important;
}
html body main.app-shell #memoryForm#memoryForm #memoryPhotoStartHelp {
  margin: 0 !important;
  color: #45666c !important;
  font-size: .8125rem !important;
  font-weight: 400 !important;
  line-height: 1.5 !important;
  overflow-wrap: anywhere;
}
html body main.app-shell #memoryForm#memoryForm #memoryPhotoStart .memory-photo-start-actions {
  display: flex !important;
  grid-column: 1 / -1 !important;
  flex-wrap: wrap !important;
  align-items: center !important;
  gap: 6px 10px !important;
}
html body main.app-shell #memoryForm#memoryForm #memoryPhotoStart :is(#firstMemoryPhotoStart, #memoryPhotoStartCover) {
  box-sizing: border-box !important;
  width: auto !important;
  max-width: 100% !important;
  min-width: 44px !important;
  min-height: 44px !important;
  margin: 0 !important;
  padding: 10px !important;
  border: 1px solid #b5d5cf !important;
  border-radius: 12px !important;
  color: #00243f !important;
  background: #fffefd !important;
  box-shadow: none !important;
  font: inherit !important;
  font-size: .875rem !important;
  font-weight: 700 !important;
  line-height: 1.35 !important;
  white-space: normal !important;
  overflow-wrap: anywhere;
}
html body main.app-shell #memoryForm#memoryForm #memoryPhotoStart #memoryPhotoStartCover {
  border-color: transparent !important;
  color: #285f64 !important;
  background: transparent !important;
  text-decoration: underline;
  text-underline-offset: 3px;
}
html body main.app-shell #memoryForm#memoryForm #memoryPhotoStart :is(#firstMemoryPhotoStart, #memoryPhotoStartCover):disabled {
  opacity: .65;
  cursor: wait;
}
html body main.app-shell #memoryForm#memoryForm #memoryPhotoStart :is(#firstMemoryPhotoStart, #memoryPhotoStartCover):focus-visible {
  outline: 3px solid #267999 !important;
  outline-offset: 3px !important;
}
html body main.app-shell #memoryForm#memoryForm #memoryPhotoStartPreview {
  position: relative !important;
  width: 72px !important;
  height: 72px !important;
  min-height: 0 !important;
  aspect-ratio: 1 !important;
  align-self: start !important;
  margin: 0 !important;
  overflow: hidden !important;
  border-radius: 14px !important;
  background: #d6eae5 !important;
  box-shadow: none !important;
}
html body main.app-shell #memoryForm#memoryForm #memoryPhotoStartImage {
  position: absolute !important;
  inset: 0 !important;
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
}
html body main.app-shell #memoryForm#memoryForm #memoryPhotoStartPreview[data-photo-state="unavailable"] > .memory-editor-photo-unavailable {
  position: absolute !important;
  inset: 0 !important;
  display: grid !important;
  place-content: center !important;
  padding: 4px !important;
  color: #345963 !important;
  font-size: .6875rem !important;
  line-height: 1.3 !important;
  text-align: center !important;
}
@media (max-width: 380px) {
  html body main.app-shell #memoryForm#memoryForm #memoryPhotoStart.has-photo {
    grid-template-columns: minmax(0, 1fr) !important;
  }
}
