/* Dialogs and editing flows. No other file sets dialog geometry. */
body.modal-open {
  overflow: hidden;
}
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: #34252c68;
  backdrop-filter: blur(5px);
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  top: var(--vv-top);
  bottom: auto;
  height: var(--vv-height);
}
.modal {
  background: var(--paper);
  border: 1px solid #fff7efaa;
  border-radius: 13px;
  width: 620px;
  max-width: 100%;
  max-height: calc(100dvh - 48px);
  display: flex;
  flex-direction: column;
  box-shadow: 0 30px 90px #39252e4d;
  overflow: hidden;
}
.modal.wide {
  width: 800px;
}
.modal-header {
  padding: 24px 27px 18px;
  display: flex;
  align-items: flex-start;
  gap: 20px;
  flex: none;
  border-bottom: 1px solid var(--line);
  flex-shrink: 0;
}
.modal-header h2 {
  font-family: var(--serif);
  font-size: 29px;
  letter-spacing: -.6px;
  line-height: 1.1;
}
.modal-header p {
  font-size: 11px;
  color: var(--muted);
  margin-top: 7px;
}
.modal-header .round-btn {
  margin-left: auto;
}
.modal-body {
  padding: 23px 27px;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  min-height: 0;
}
.modal-footer {
  padding: 16px 27px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 10px;
  background: var(--paper);
  flex: none;
  flex-shrink: 0;
}
.form-group {
  margin-bottom: 19px;
}
.form-group>label {
  display: block;
  font-weight: 600;
  margin-bottom: 7px;
  color: var(--muted);
  font-size: 12px;
}
.form-label {
  display: block;
  font-weight: 600;
  margin-bottom: 7px;
  color: var(--muted);
  font-size: 12px;
}
.form-help {
  color: var(--muted);
  line-height: 1.65;
  margin-top: 6px;
  font-size: 12px;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.form-row.three {
  grid-template-columns: 1fr 1fr 1fr;
}
.form-error {
  background: #f7e1e1;
  color: #922f40;
  border: 1px solid #e2bcbc;
  padding: 10px 12px;
  font-size: 12px;
  border-radius: 5px;
  margin-bottom: 14px;
}
.drop-zone {
  border: 1px dashed #c7a1ab;
  border-radius: 7px;
  padding: 24px 16px;
  background: #f0dfe052;
  text-align: center;
  cursor: pointer;
  position: relative;
}
.drop-zone:hover {
  background: #ecd4d86e;
}
.drop-zone.dragging {
  background: #ecd4d86e;
}
.drop-zone input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
}
.drop-zone .icon {
  width: 27px;
  height: 27px;
  margin: 0 auto 9px;
  color: var(--berry);
}
.drop-zone b {
  font-size: 12px;
  font-weight: 500;
  display: block;
}
.drop-zone p {
  font-size: 10px;
  color: var(--muted);
  margin-top: 5px;
}
.upload-list {
  display: grid;
  grid-template-columns: repeat(4,1fr);
  gap: 9px;
  margin-top: 12px;
}
.upload-item {
  position: relative;
  aspect-ratio: 1;
  background: #e8d8d5;
  border-radius: 5px;
  overflow: hidden;
}
.upload-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.upload-item video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.upload-item button {
  position: absolute;
  display: grid;
  place-items: center;
  border-radius: 50%;
  top: 5px;
  right: 5px;
  background: #fffcf5ed !important;
  width: 44px;
  height: 44px;
  min-width: 44px;
  min-height: 44px;
}
.upload-item button .icon {
  width: 13px;
  height: 13px;
}
.upload-item small {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: #fff8e9dd;
  padding: 2px 5px;
  font-size: 10px !important;
}
.location-row {
  display: flex;
  align-items: center;
  gap: 9px;
}
.location-row>.input {
  flex: 1;
  min-width: 0;
}
.selected-location {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 9px;
  color: var(--green);
  font-size: 11px;
}
.geocode-results {
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin-top: 10px;
}
.coordinate-inputs {
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  align-items: end;
  gap: 10px;
  margin-top: 12px;
}
.coordinate-inputs label {
  font-size: 10px;
  color: var(--muted);
}
.coordinate-inputs .input {
  min-height: 38px;
  font-size: 12px;
  padding: 7px 10px;
}
.choice-grid {
  display: grid;
  gap: 12px;
}
.choice-card {
  display: flex;
  align-items: center;
  gap: 15px;
  border: 1px solid var(--line);
  background: var(--white);
  padding: 20px;
  border-radius: 7px;
  text-align: left;
}
.choice-card:hover {
  transform: translateX(3px);
  background: #f5e6e5;
}
.choice-card>.icon {
  color: var(--berry);
  width: 24px;
  height: 24px;
}
.choice-card h3 {
  font-family: var(--serif);
  font-size: 22px;
}
.choice-card p {
  font-size: 11px;
  color: var(--muted);
  margin-top: 4px;
}
.choice-card .icon:last-child {
  margin-left: auto;
  width: 16px;
}
.settings-section {
  border-bottom: 1px solid var(--line);
  padding-bottom: 21px;
  margin-bottom: 21px;
}
.settings-section:last-child {
  border: 0;
  margin: 0;
}
.settings-section h3 {
  font-family: var(--serif);
  font-size: 23px;
  margin-bottom: 8px;
}
.settings-section p {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.8;
}
.settings-actions {
  display: flex;
  gap: 9px;
  flex-wrap: wrap;
  margin-top: 14px;
}
.toggle-row {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  margin-top: 14px;
}
.toggle-row input {
  accent-color: var(--berry);
  width: 17px;
  height: 17px;
}
.lightbox {
  width: 100%;
  max-height: 100%;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--paper);
  padding: 30px 65px;
  height: var(--vv-height);
}
.lightbox img {
  max-width: 100%;
  max-height: calc(100dvh - 190px);
  object-fit: contain;
  box-shadow: 0 20px 50px #0003;
}
.lightbox video {
  max-width: 100%;
  max-height: calc(100dvh - 190px);
  object-fit: contain;
  box-shadow: 0 20px 50px #0003;
}
.lightbox-caption {
  text-align: center;
  padding-top: 16px;
  max-width: 550px;
}
.lightbox-caption strong {
  font-family: var(--serif);
  font-size: 24px;
  line-height: 1.2;
  font-weight: 400;
  overflow-wrap: anywhere;
}
.lightbox-caption p {
  font-size: 11px;
  opacity: .7;
  margin-top: 5px;
}
.lightbox .round-btn {
  background: #f9efe8ed;
  border: 0;
  color: var(--ink);
  position: absolute;
  min-width: 46px;
  min-height: 46px;
}
.lightbox-close {
  right: 4px;
  top: 4px;
}
.lightbox-prev {
  left: 0;
  top: 50%;
}
.lightbox-next {
  right: 0;
  top: 50%;
}
.lightbox-counter {
  font-size: 10px;
  opacity: .6;
  margin-top: 6px;
}
.search-results {
  display: flex;
  flex-direction: column;
  gap: 9px;
  margin-top: 15px;
}
.toast {
  position: fixed;
  bottom: 25px;
  left: calc(50% + 116px);
  transform: translateX(-50%);
  background: #463238;
  color: #fff7ee;
  border: 1px solid #72545d;
  padding: 12px 18px;
  border-radius: 7px;
  font-size: 12px;
  box-shadow: 0 7px 22px #45253633;
  z-index: 300;
  max-width: calc(100vw - 40px);
  display: flex;
  align-items: center;
  gap: 9px;
}
.toast.error {
  background: #822e40;
}
.toast .icon {
  width: 16px;
  height: 16px;
  flex: none;
}
.saving-note {
  font-size: 10px;
  color: var(--muted);
  margin-right: auto;
}
.modal-note {
  font-size: 11px;
  color: var(--muted);
  line-height: 1.8;
}
.choice-card:active {
  transform: scale(.97);
}
.modal::before {
  display: none;
}
.sheet-handle {
  display: none;
}
.modal-header h2:focus {
  outline: none;
}
.close-guard {
  position: fixed;
  inset: var(--vv-top) 0 auto;
  height: var(--vv-height);
  z-index: 350;
  display: grid;
  place-items: center;
  padding: 22px;
  background: #47303859;
  backdrop-filter: blur(5px);
}
.guard-card {
  width: min(390px,100%);
  padding: 25px;
  border-radius: 16px;
  background: #fcf7f0;
  box-shadow: 0 16px 60px #49303735;
  text-align: center;
}
.guard-card>.pig {
  width: 77px;
  height: 62px;
}
.guard-card h3 {
  font-family: Georgia,serif;
  font-size: 28px;
  font-weight: 400;
  color: var(--berry);
  margin: 6px 0 12px;
}
.guard-card p {
  font-size: 13px;
  line-height: 1.7;
  margin: 0 0 20px;
}
.guard-card button {
  display: flex;
  width: 100%;
  justify-content: center;
  min-height: 46px;
  margin-top: 8px;
}
.story-input::placeholder {
  color: var(--muted);
  opacity: 1;
}
.story-group {
  margin-bottom: 10px;
}
.entry-composer #upload-list:empty {
  display: none;
}
.entry-composer #upload-status:empty {
  display: none;
}
.entry-composer .form-help {
  font-size: 11px;
  line-height: 1.6;
}
.entry-composer .saving-note.is-saved {
  color: var(--positive);
}
.entry-composer .saving-note.is-saved::before {
  content: '✓ ';
  color: var(--positive);
}
.is-preparing {
  pointer-events: none;
}
.lightbox>img {
  touch-action: pan-y pinch-zoom;
  user-select: none;
  -webkit-user-drag: none;
}
.photo-dots {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin: 11px 0 6px;
}
.photo-dots i {
  width: 5px;
  height: 5px;
  border-radius: 4px;
  background: #ddc7c166;
}
.photo-dots i.current {
  width: 17px;
  background: #f4d1da;
}
.swipe-hint {
  font-size: 10px;
  letter-spacing: .7px;
  color: #c3aeb1;
}
.undo-toast button {
  color: var(--berry);
  font-weight: 600;
  padding: 10px 8px;
  min-height: 44px;
  white-space: nowrap;
}
.undo-toast {
  padding: 5px 10px 5px 17px;
  gap: 8px;
}
.story-input:focus-visible {
  outline: 2px solid var(--berry) !important;
  outline-offset: 2px;
  box-shadow: none !important;
}
.field-caption {
  margin: 7px 0 0;
  font-size: 12px;
  line-height: 1.5;
  color: var(--muted);
}
.field-caption:empty {
  margin: 7px 0 0;
  font-size: 12px;
  line-height: 1.5;
  color: var(--muted);
  display: none;
}
.draft-list {
  display: grid;
  gap: 12px;
}
.draft-row {
  border: 1px solid var(--line);
  background: var(--white);
  padding: 14px;
  border-radius: 9px;
}
.draft-row h3 {
  margin: 5px 0 8px;
  font: 400 24px/1.2 var(--serif);
  overflow-wrap: anywhere;
}
.draft-row p {
  margin: 0 0 10px;
  color: var(--muted);
  font-size: 12px;
}
.draft-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}
.draft-actions .text-btn {
  min-height: 44px;
  margin-left: auto;
}
.entry-destination {
  margin: 0 0 14px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--berry);
  min-height: 44px;
}
.flow-editor .modal-header {
  padding-bottom: 16px;
}
.flow-editor .modal-header h2 {
  font: 400 28px/1.15 var(--serif);
}
.flow-editor .modal-header p {
  margin-top: 6px;
  max-width: 42ch;
}
.flow-editor .modal-body {
  scroll-padding-block: 20px 70px;
}
.flow-editor .form-group {
  margin-bottom: 16px;
}
.flow-editor label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.4;
  margin: 0 0 9px;
}
.field-heading {
  display: block;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.4;
  margin: 0 0 9px;
}
.flow-editor .input {
  font-size: 16px;
  min-height: 48px;
}
.flow-editor input[type=date] {
  min-width: 0;
  max-width: 100%;
}
.flow-editor .input[aria-invalid=true] {
  border-color: var(--berry);
  outline: 2px solid #8b354b33;
}
.flow-editor .form-error {
  margin: 0 0 16px;
}
.destination-field {
  padding: 0;
  border-bottom: 0;
  margin-bottom: 16px;
}
.destination-row {
  display: flex;
  gap: 8px;
  align-items: center;
}
.destination-row>span {
  display: none;
}
.destination-row select {
  flex: 1;
  min-width: 0;
  background-color: var(--white);
}
.destination-new {
  display: flex;
  align-items: center;
  gap: 4px;
  color: var(--berry);
  min-height: 48px;
  padding: 0 8px;
  font-size: 13px;
}
.destination-new .icon {
  width: 17px;
}
.inline-trip {
  padding: 16px;
  background: #f1e4e3;
  border-radius: 8px;
  margin: 12px 0 0;
}
.inline-trip-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin: -8px 0 6px;
}
.inline-trip-heading>b {
  font-size: 13px;
}
.inline-trip-heading button {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
}
.inline-trip-heading .icon {
  width: 18px;
}
.memory-date {
  display: flex;
  align-items: center;
  gap: 18px;
}
.memory-date label {
  margin: 0;
  flex: 1;
}
.memory-date .input {
  width: 175px;
}
#entry-date-hint {
  margin-bottom: 18px;
}
.flow-editor .story-group {
  margin-top: 16px;
}
.flow-editor .story-input {
  min-height: 126px;
  font-size: 17px;
  line-height: 1.7;
  font-family: var(--sans);
  background: var(--white);
  padding: 14px 16px;
  resize: vertical;
  border: 1px solid var(--control-line);
  border-radius: var(--radius-control);
}
.flow-editor .upload-group {
  margin-bottom: 22px;
}
.flow-editor .upload-list {
  margin-top: 12px;
}
.flow-editor .upload-list:empty {
  display: none;
}
.flow-editor .upload-item button {
  width: 44px;
  height: 44px;
}
.upload-limits {
  margin: 7px 0 0;
  font-size: 11px;
  color: var(--muted);
}
.optional-section {
  border-top: 1px solid var(--line);
}
.optional-section>summary {
  list-style: none;
  display: flex;
  gap: 10px;
  align-items: center;
  min-height: 58px;
  cursor: pointer;
  padding: 10px 0;
}
.optional-section>summary::-webkit-details-marker {
  display: none;
}
.optional-section>summary>span {
  flex: 1;
  font-size: 14px;
}
.optional-section summary small {
  font-size: 11px;
  font-weight: 400;
  color: var(--muted);
  margin-left: 6px;
}
.optional-section summary .icon {
  width: 18px;
}
.optional-section summary .icon:last-child {
  width: 15px;
}
.optional-section[open]>summary .icon:last-child {
  transform: rotate(90deg);
}
.optional-content {
  padding: 8px 0 20px;
}
.optional-content .form-group:last-child {
  margin-bottom: 0;
}
.required-note {
  font-size: 11px;
  color: var(--muted);
  font-weight: 400;
  margin-left: 7px;
}
.field-heading small {
  font-size: 11px;
  color: var(--muted);
  font-weight: 400;
  margin-left: 7px;
}
.trip-form-intro {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 14px;
  background: #f1e7df;
  margin-bottom: 24px;
  border-radius: 8px;
}
.trip-form-intro>.icon {
  color: var(--berry);
  width: 26px;
  flex-shrink: 0;
}
.trip-form-intro p {
  margin: 0;
  font-size: 13px;
  line-height: 1.6;
}
.trip-dates-group {
  margin: 24px 0 6px;
}
.trip-dates-group .form-row {
  gap: 14px;
}
.trip-dates-group label {
  font-size: 12px;
  color: var(--muted);
  font-weight: 400;
}
.restored-note {
  font-size: 12px;
  color: #506043;
  background: #e9ecdf;
  padding: 10px 12px;
  border-radius: 6px;
  margin: 0 0 20px;
}
.flow-editor .saving-note {
  max-width: none;
  line-height: 1.4;
  color: var(--muted);
}
.flow-editor #draft-status.is-saved {
  color: #506043;
}
.flow-editor #draft-status.is-error {
  color: var(--berry);
}
.flow-editor .modal-footer {
  column-gap: 10px;
  row-gap: 8px;
}
.flow-editor .modal-footer .primary-btn {
  min-height: 48px;
}
.flow-editor .later-btn {
  min-height: 48px;
}
.flow-editor .sheet-handle {
  display: none;
}
.flow-editor .modal-header .round-btn {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
}
.flow-editor .location-row .secondary-btn {
  min-width: 48px;
}
.toast.saved-toast {
  max-width: min(620px,calc(100vw - 28px));
}
.saved-toast button {
  padding: 8px 12px;
  text-decoration: underline;
  min-height: 44px;
  flex-shrink: 0;
}
.delete-trip-options {
  display: grid;
  gap: 12px;
  margin-top: 24px;
}
.delete-trip-options button {
  min-height: 48px;
  white-space: normal;
}
.field-validation {
  margin: 8px 0 0;
  color: var(--berry);
  font-size: 13px;
  line-height: 1.5;
}
.modal-open .toast {
  bottom: calc(120px + env(safe-area-inset-bottom));
  pointer-events: none;
}
@media (min-width:721px) {
  .flow-editor {
    width: min(620px,calc(100vw - 40px));
    max-height: 90dvh;
  }
  .flow-editor .saving-note {
    margin-right: auto;
    flex-basis: auto;
    max-width: 235px;
  }
  .flow-editor .modal-footer {
    justify-content: flex-end;
  }
}
@media (max-width:1190px) {
  .toast {
    left: calc(50% + 101px);
  }
}
@media (max-width:980px) {
  .toast {
    left: calc(50% + 89px);
  }
}
@media (max-width:720px) {
  .modal-backdrop {
    padding: 0;
    align-items: flex-end;
    backdrop-filter: blur(3px);
  }
  .modal {
    width: 100%;
    border-bottom: 0;
    box-shadow: 0 -20px 70px #39252e3d;
    max-height: calc(var(--vv-height) - 8px);
    border-radius: 22px 22px 0 0;
  }
  .modal:before {
    content: "";
    width: 32px;
    height: 4px;
    flex: none;
    background: #dcc4c7;
    border-radius: 3px;
    margin: 9px auto 0;
  }
  .modal-header {
    gap: 15px;
    padding: 7px 20px 16px;
  }
  .modal-header h2 {
    font-size: 28px;
  }
  .modal-header p {
    font-size: 12px;
    line-height: 1.55;
    max-width: 260px;
  }
  .modal-header .round-btn {
    width: 44px;
    height: 44px;
    min-width: 44px;
  }
  .modal-body {
    padding: 18px 20px;
  }
  .modal-footer {
    padding: 12px 20px calc(12px + env(safe-area-inset-bottom));
    gap: 8px;
    box-shadow: 0 -5px 18px #60454d05;
    background: #fcf6f0;
  }
  .modal-footer .primary-btn {
    min-height: 46px;
    font-size: 13px;
  }
  .modal-footer .secondary-btn {
    min-height: 46px;
    font-size: 13px;
  }
  .saving-note {
    font-size: 9px;
    max-width: 85px;
    line-height: 1.5;
  }
  .form-group>label {
    font-size: 12px;
  }
  .form-label {
    font-size: 12px;
  }
  .form-help {
    font-size: 11px;
    line-height: 1.6;
  }
  .form-row {
    gap: 11px;
  }
  .form-row.three {
    grid-template-columns: 1fr;
  }
  .location-row>.secondary-btn {
    padding: 10px 11px;
    min-height: 46px;
  }
  .upload-list {
    grid-template-columns: repeat(3,1fr);
    gap: 8px;
  }
  .lightbox {
    height: 100dvh;
    padding: 70px 16px 72px;
    overflow: auto;
    overscroll-behavior: contain;
  }
  .lightbox img {
    max-height: calc(100dvh - 200px);
    max-width: 100%;
  }
  .lightbox video {
    max-height: calc(100dvh - 200px);
    max-width: 100%;
  }
  .lightbox .lightbox-close {
    right: 16px;
    top: calc(17px + env(safe-area-inset-top));
  }
  .lightbox .lightbox-prev {
    left: 18px;
    top: auto;
    bottom: calc(19px + env(safe-area-inset-bottom));
    position: absolute;
  }
  .lightbox .lightbox-next {
    right: 18px;
    top: auto;
    bottom: calc(19px + env(safe-area-inset-bottom));
    position: absolute;
  }
  .lightbox-caption strong {
    font-size: 25px;
  }
  .toast {
    left: 50%;
    width: max-content;
    bottom: calc(88px + env(safe-area-inset-bottom));
    font-size: 12px;
    max-width: calc(100vw - 24px);
    z-index: 500;
  }
  .coordinate-inputs {
    gap: 7px;
  }
  .coordinate-inputs .input {
    font-size: 16px;
    min-height: 43px;
  }
  .coordinate-inputs .secondary-btn {
    padding: 8px;
    min-height: 43px;
  }
  .choice-card {
    padding: 17px;
    min-height: 91px;
  }
  .choice-card h3 {
    font-size: 23px;
  }
  .choice-card p {
    font-size: 12px;
    line-height: 1.65;
  }
  .settings-section p {
    font-size: 12px;
  }
  .settings-actions .secondary-btn {
    min-height: 44px;
    font-size: 12px;
  }
  .form-row .input[type=date] {
    min-width: 0;
    width: 100%;
  }
  .sheet-handle {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 88px;
    height: 27px;
    margin: 0 auto;
    touch-action: none;
    cursor: grab;
  }
  .sheet-handle span {
    width: 34px;
    height: 4px;
    background: #d4b9be;
    border-radius: 3px;
  }
  .modal-footer .saving-note {
    font-size: 10px;
    line-height: 1.45;
    max-width: 96px;
    margin-right: auto;
  }
  .modal-footer>.primary-btn {
    min-width: 115px;
  }
  .modal-footer>.secondary-btn {
    padding: 8px 10px;
  }
  .entry-composer .modal-footer>.secondary-btn {
    display: none;
  }
  .entry-composer .saving-note {
    max-width: 160px;
  }
  .entry-composer .modal-header {
    padding-bottom: 16px;
  }
  .entry-composer .modal-body {
    padding-top: 19px;
  }
  .upload-item button {
    min-width: 44px;
    min-height: 44px;
  }
  .toggle-row {
    min-height: 44px;
  }
  .lightbox>img {
    max-height: calc(var(--vv-height) - 325px);
    max-width: 100%;
    min-height: 100px;
  }
  .lightbox>video {
    max-height: calc(var(--vv-height) - 325px);
    max-width: 100%;
    min-height: 100px;
  }
  .lightbox-caption p {
    font-size: 11px;
  }
  .lightbox-counter {
    font-size: 11px;
  }
  .modal-open .toast {
    bottom: calc(120px + env(safe-area-inset-bottom));
  }
  .flow-editor.modal {
    height: var(--vv-height,100dvh);
    max-height: var(--vv-height,100dvh);
    width: 100%;
    border-radius: 0;
    border: 0;
    margin: 0;
  }
  .flow-editor .modal-header {
    padding: calc(16px + env(safe-area-inset-top)) 20px 16px;
  }
  .flow-editor .modal-header h2 {
    font-size: 27px;
    letter-spacing: -.5px;
  }
  .flow-editor .modal-header p {
    font-size: 12px;
  }
  .flow-editor .modal-body {
    padding: 20px;
    overscroll-behavior: contain;
    flex: 1;
    min-height: 0;
  }
  .flow-editor .modal-footer {
    padding: 12px 20px calc(12px + env(safe-area-inset-bottom));
    display: grid;
    grid-template-columns: auto minmax(0,1fr);
  }
  .flow-editor .modal-footer .saving-note {
    flex: 0 0 100%;
    width: 100%;
    text-align: left;
    font-size: 11px;
    margin: 0;
    grid-column: 1 / -1;
    justify-self: start;
  }
  .flow-editor .modal-footer>.primary-btn {
    flex: 1;
    font-size: 14px;
  }
  .flow-editor .modal-footer>.secondary-btn {
    display: flex;
    flex: 0 0 auto;
    min-width: 70px;
    font-size: 13px;
  }
  .flow-editor .form-row {
    grid-template-columns: 1fr 1fr;
  }
  .flow-editor .form-row>* {
    min-width: 0;
  }
  .flow-editor input[type=date] {
    padding: 11px 8px;
    font-size: 16px;
  }
  .flow-editor .story-input {
    min-height: 122px;
  }
  .flow-editor .destination-row .input {
    padding-left: 12px;
  }
  .flow-editor .memory-date .input {
    width: 161px;
  }
}
@media (max-width:370px) {
  .modal-body {
    padding-left: 17px;
    padding-right: 17px;
  }
  .modal-header {
    padding-left: 17px;
    padding-right: 17px;
  }
  .form-row {
    grid-template-columns: 1fr;
  }
  .modal-footer {
    padding-left: 17px;
    padding-right: 17px;
  }
  .modal-header h2 {
    font-size: 26px;
  }
}
@media (max-width:350px) {
  .flow-editor .modal-header {
    padding-left: 16px;
    padding-right: 16px;
  }
  .flow-editor .modal-body {
    padding-left: 16px;
    padding-right: 16px;
  }
  .flow-editor .modal-header h2 {
    font-size: 24px;
  }
  .flow-editor .modal-footer {
    padding-left: 16px;
    padding-right: 16px;
  }
  .destination-new {
    padding-right: 0;
  }
  .memory-date {
    gap: 8px;
  }
  .memory-date label {
    font-size: 12px;
  }
  .flow-editor .memory-date .input {
    width: 150px;
  }
}
