#homeReminderEditor:not([hidden]) {
  position: fixed;
  z-index: 1200;
  inset: 0;
  display: grid !important;
  place-items: center;
  padding: 18px;
  background: color-mix(in srgb, #17202b 54%, transparent);
  backdrop-filter: blur(3px);
}

#homeReminderEditor .home-reminder-editor {
  box-sizing: border-box;
  width: min(680px, calc(100vw - 36px));
  max-height: calc(100vh - 36px);
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 0;
  padding: 18px;
  overflow: auto;
  border-radius: 18px;
  background: var(--panel);
  box-shadow: 0 28px 80px #10182345;
}

#homeReminderEditor .home-reminder-editor__heading {
  position: sticky;
  top: -18px;
  z-index: 2;
  margin: -18px -18px 2px;
  padding: 17px 18px 13px;
  border-bottom: 1px solid var(--border);
  background: var(--panel);
}

#homeReminderEditor .home-reminder-editor__actions {
  position: sticky;
  bottom: -18px;
  grid-column: 1 / -1;
  justify-content: center;
  margin: 3px -18px -18px;
  padding: 12px 18px;
  border-top: 1px solid var(--border);
  background: var(--panel);
}

@media (max-width: 650px) {
  #homeReminderEditor:not([hidden]) { padding: 8px; }
  #homeReminderEditor .home-reminder-editor {
    width: calc(100vw - 16px);
    max-height: calc(100vh - 16px);
    grid-template-columns: 1fr;
    padding: 14px;
  }
  #homeReminderEditor .home-reminder-editor__heading {
    top: -14px;
    margin: -14px -14px 2px;
    padding: 14px;
  }
  #homeReminderEditor .home-reminder-editor__actions {
    bottom: -14px;
    margin: 3px -14px -14px;
    padding: 10px 14px;
  }
}
