.footnote-reference {
  font-size: 0.75em;
  line-height: 1;
  vertical-align: super;
}
.footnote-reference a {
  display: inline-flex;
  min-height: 44px;
  min-width: 44px;
  align-items: center;
  justify-content: center;
  color: var(--studio-accent, #6b5238);
  text-decoration: underline;
  padding: 4px;
  scroll-margin-block: 100px;
}
.reader-footnotes {
  margin-block: 2rem;
  padding-block: 1rem;
  border-top: 1px solid var(--studio-line, #a9a298);
  font-size: 0.9rem;
  line-height: 1.8;
}
.reader-footnotes[hidden] {
  display: none;
}
.reader-footnotes h2 {
  font-size: 1rem;
  font-weight: 600;
}
.reader-footnotes ol {
  list-style: decimal;
  padding-inline-start: 1.5rem;
}
.reader-footnotes li {
  scroll-margin-block: 100px;
  overflow-wrap: anywhere;
  white-space: pre-wrap;
}
.reader-footnotes li > a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding-inline: 0.5rem;
  text-decoration: underline;
  white-space: nowrap;
}
.footnote-sidebar-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.footnote-sidebar-list li {
  border-top: 1px solid var(--studio-line, #ddd);
  padding-block: 0.5rem;
  overflow-wrap: anywhere;
}
.footnote-sidebar-list p {
  margin: 0;
  font-size: 0.8rem;
}
.footnote-sidebar-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
}
.footnote-sidebar-actions button {
  min-height: 44px;
  flex: 1;
}
html[data-theme="dark"] .footnote-reference a {
  display: inline-flex;
  min-height: 44px;
  min-width: 44px;
  align-items: center;
  justify-content: center;
  color: #e2ddd4;
}
.editor-note-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 12px 24px;
}
.editor-note-actions a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding-inline: 12px;
  border: 1px solid var(--border);
  border-radius: 4px;
}
.marker-dialog-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.marker-dialog-actions button {
  min-height: 44px;
}
