
.template-card {
  padding: 18px 24px;
  margin: 1em 0;
}

.tinymist-search {
  width: calc(100% - 1em);
  margin: 0.2em;
}

.tinymist-author-container {
  font-size: 0.8em;
}

.tinymist-template-action-container {
  margin-top: 0.2em;
  margin-bottom: 0.3em;
}

.tinymist-category-container {
  margin-bottom: 0.1em;
}

.tinymist-category {
  background: rgba(255, 255, 255, 0.15);
  border-radius: 0.4rem;
  padding: 0.1rem 0.5rem;
}

.tinymist-category-filter {
  display: flex;
  margin-top: 6px;
  gap: 0.5rem;
}

.tinymist-highlight {
  background: rgba(255, 255, 0, 0.15);
}

.tinymist-code {
  font-family: Cascadia Code, Consolas, SF Mono, DejaVu Sans Mono, monospace;
}

#tinymist-app, .tinymist-main-window {
  margin: 1rem;
}

#tinymist-app code, .tinymist-main-window code, .tinymist-window code {
  background-color: transparent;
  padding: 0;
  border-radius: 0;
}

#tinymist-app.no-wrap {
  margin: 0;
}

body.typst-preview-dark {
  --modal-background: rgba(0, 0, 0, 0.6);
}
body.typst-preview-light {
  --modal-background: rgba(255, 255, 255, 0.8);
}

body.typst-preview-dark .tinymist-category {
  background: rgba(255, 255, 255, 0.05);
}

body.typst-preview-light .tinymist-category {
  background: rgba(0, 0, 0, 0.05);
}

.tinymist-icon :is(path, rect) {
  fill: currentColor;
}

.tinymist-icon :is(path, rect).stroke-based {
  fill: none;
  stroke: currentColor;
}
