src/pages/deck-edit/editor/notes-rte/notes-rte.module.css
.rich-text-editor {
  position: relative;
}

.rich-text-editor > * {
  width: 100%;
}

.rich-text-editor > * + * {
  margin-top: 0.5rem;
}

.textarea {
  height: 20rem;
}

.toolbar {
  display: flex;
  gap: 0.375rem;
  justify-content: space-between;
}

.toolbar-actions {
  display: flex;
  gap: 0.375rem;
}

.toolbar-popover {
  padding: 0.375rem 0.75rem 0.75rem;
  background: var(--palette-point-five);
  border: 1px solid var(--palette-1);
  border-radius: var(--rounded);
  width: 30rem;
  max-width: 95dvw;
  box-shadow: var(--shadow-md);
}

.symbol-combobox-item {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  cursor: pointer;
}

.cards-popover {
  padding: 0.25rem;

  @media screen and (min-width: 30rem) {
    display: grid;
    grid-template-areas:
      "header header"
      "format origin"
      "combobox combobox";
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto auto auto;
    gap: 0.375rem;
  }
}

.cards-popover-header {
  grid-area: header;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  font-size: var(--text-xs);
}

.cards-origin {
  grid-area: origin;
}

.cards-format {
  grid-area: format;
}

.cards-combobox {
  grid-area: combobox;
}
.cards-popover select {
  width: 100%;
}

.preview {
  margin: 0 auto;
}
