/* Optional memory details: readable fields, a short first-save heading, and
   native disclosures. Keep every existing input and its save/draft binding. */
html body main.app-shell #memoryForm#memoryForm .memory-inside-moment-editor {
  display: block !important;
  padding: 0 !important;
  border-radius: 20px !important;
  background: #f8fbfc !important;
  box-shadow: none !important;
  text-align: left !important;
}
html body main.app-shell #memoryForm#memoryForm .memory-inside-moment-editor::before,
html body main.app-shell #memoryForm#memoryForm .memory-inside-moment-editor > summary > span::before {
  content: none !important;
}
html body main.app-shell #memoryForm#memoryForm .memory-inside-moment-editor > summary,
html body main.app-shell #memoryForm#memoryForm .memory-detail-group > summary {
  position: relative !important;
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) 32px !important;
  gap: 3px 12px !important;
  align-items: center !important;
  min-height: 64px !important;
  padding: 16px !important;
  margin: 0 !important;
  color: #00243f !important;
  cursor: pointer;
  list-style: none;
  text-align: left !important;
}
html body main.app-shell #memoryForm#memoryForm .memory-inside-moment-editor summary::-webkit-details-marker {
  display: none;
}
html body main.app-shell #memoryForm#memoryForm .memory-inside-moment-editor summary > span {
  display: block !important;
  grid-column: 1;
  min-width: 0;
  font-family: inherit !important;
  font-size: 1rem !important;
  font-weight: 700 !important;
  line-height: 1.35 !important;
  letter-spacing: 0 !important;
  overflow-wrap: anywhere;
}
html body main.app-shell #memoryForm#memoryForm .memory-inside-moment-editor summary > small {
  grid-column: 1;
  color: #536d7a !important;
  font-size: .8125rem !important;
  font-weight: 400 !important;
  line-height: 1.45 !important;
  overflow-wrap: anywhere;
}
html body main.app-shell #memoryForm#memoryForm .memory-inside-moment-editor summary::after {
  content: "+" !important;
  position: static !important;
  grid-column: 2;
  grid-row: 1 / span 2;
  display: grid;
  place-items: center;
  width: 32px !important;
  height: 32px !important;
  border-radius: 50%;
  background: #e1f2ef !important;
  color: #00243f !important;
  box-shadow: none !important;
  font-size: 1.25rem;
  line-height: 1;
  transform: none !important;
}
html body main.app-shell #memoryForm#memoryForm .memory-inside-moment-editor[open] > summary::after,
html body main.app-shell #memoryForm#memoryForm .memory-detail-group[open] > summary::after {
  content: "−" !important;
}
html body main.app-shell #memoryForm#memoryForm .memory-inside-moment-editor > summary::after {
  background: #00243f !important;
  color: #fff !important;
}
html body main.app-shell #memoryForm#memoryForm #memoryInsideDetails .memory-inside-content {
  display: grid;
  gap: 20px;
  min-width: 0;
  margin: 0 !important;
  padding: 4px 16px 20px;
}
html body main.app-shell #memoryForm#memoryForm #memoryInsideDetails .memory-inside-content label {
  display: grid !important;
  gap: 8px !important;
  min-width: 0 !important;
  margin: 0 !important;
  color: #173e50 !important;
  font-size: .9375rem !important;
  font-weight: 650 !important;
  line-height: 1.4 !important;
  text-align: left !important;
}
html body main.app-shell #memoryForm#memoryForm #memoryInsideDetails .memory-inside-content :is(input, textarea, select) {
  box-sizing: border-box !important;
  width: 100% !important;
  min-width: 0 !important;
  max-width: 100% !important;
  min-height: 48px !important;
  height: auto !important;
  margin: 0 !important;
  padding: 12px !important;
  border: 1px solid #b8d0d9 !important;
  border-radius: 12px !important;
  background: #fff !important;
  box-shadow: none !important;
  color: #163d50 !important;
  font-family: inherit !important;
  font-size: max(16px, 1rem) !important;
  font-weight: 400 !important;
  line-height: 1.5 !important;
  text-align: left !important;
  text-align-last: auto !important;
  scroll-margin-block: 108px 24px;
}
html body main.app-shell #memoryForm#memoryForm #memoryInsideDetails .memory-inside-content textarea {
  min-height: 96px !important;
  resize: vertical;
}
html body main.app-shell #memoryForm#memoryForm #memoryInsideDetails .memory-inside-content :is(input, textarea)::placeholder {
  color: #627680 !important;
  font-size: inherit !important;
  font-weight: 400 !important;
  opacity: 1;
}
html body main.app-shell #memoryForm#memoryForm #memoryInsideDetails .memory-inside-content .field-hint {
  margin: 0 !important;
  color: #536d7a !important;
  font-size: .8125rem !important;
  font-weight: 400 !important;
  line-height: 1.45 !important;
}
html body main.app-shell #memoryForm#memoryForm .memory-detail-group {
  display: block;
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 1px solid #cedfe4;
  border-radius: 14px;
  background: #fff;
}
html body main.app-shell #memoryForm#memoryForm .memory-detail-fields {
  display: grid;
  gap: 20px;
  padding: 0 14px 16px;
  min-width: 0;
}
html body main.app-shell #memoryForm#memoryForm .memory-inside-moment-editor :is(input, textarea, select, summary):focus-visible {
  outline: 3px solid #24788b !important;
  outline-offset: 2px !important;
}
/* Let the content, not a repeated first-save badge, own the small screen. */
html body main.app-shell #memoryForm#memoryForm.is-first-memory-onboarding .editor-header {
  min-height: 60px !important;
  padding: 14px 58px 14px 16px !important;
  align-items: center !important;
}
html body main.app-shell #memoryForm#memoryForm.is-first-memory-onboarding .editor-header :is(p, .editor-promise) {
  display: none !important;
}
html body main.app-shell #memoryForm#memoryForm.is-first-memory-onboarding .editor-header #editorTitle {
  margin: 0 !important;
  font-size: 1.25rem !important;
  line-height: 1.3 !important;
  overflow-wrap: anywhere;
}
html body main.app-shell #memoryForm#memoryForm.is-first-memory-onboarding .editor-header .icon-button {
  top: 8px !important;
  right: 8px !important;
  width: 44px !important;
  min-width: 44px !important;
  height: 44px !important;
}
@media (min-width: 721px) {
  html body main.app-shell #memoryForm#memoryForm .memory-setting-fields {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  html body main.app-shell #memoryForm#memoryForm.is-first-memory-onboarding .editor-header {
    position: sticky !important;
    top: -18px !important;
    margin: -18px -18px 12px !important;
    width: auto !important;
    max-width: none !important;
    z-index: 5;
  }
}
@media (max-height: 500px) {
  html body main.app-shell #memoryForm#memoryForm.is-first-memory-onboarding .editor-header {
    position: relative !important;
    top: auto !important;
  }
}
