.TinyMDE {
  background-color: #fff;
  border: 1px solid var(--border);
  border-bottom-left-radius: 0.25rem;
  border-bottom-right-radius: 0.25rem;
  color: var(--oc-gray-9);
  font-size: 16px;
  line-height: 1.5;
  outline: none;
  padding: 0.5rem 1rem;
  min-height: 12rem;
}

.TMBlankLine {
  height: 1.5rem;
}

.TMH1,
.TMSetextH1 {
  font-size: 2rem;
  line-height: 32px;
  font-weight: bold;
  margin-bottom: 8px;
}

.TMSetextH1 {
  margin-bottom: 0px;
}

.TMSetextH1Marker {
  margin-bottom: 8px;
}

.TMH2,
.TMSetextH2 {
  font-size: 20px;
  line-height: 28px;
  font-weight: bold;
  margin-bottom: 4px;
}

.TMMark_TMCode {
  font-family: monospace;
  font-size: 0.9em;
}

.TMFencedCodeBacktick,
.TMFencedCodeTilde,
.TMIndentedCode,
.TMCode {
  font-family: monospace;
  font-size: 0.9em;
  background-color: #e0e0e0;
}

.TMCodeFenceBacktickOpen,
.TMCodeFenceTildeOpen {
  border-bottom: 1px solid #c0c0c0;
  font-family: monospace;
  font-size: 0.9em;
}

.TMCodeFenceBacktickClose,
.TMCodeFenceTildeClose {
  border-top: 1px solid #c0c0c0;
  font-family: monospace;
  font-size: 0.9em;
}

.TMInfoString {
  color: #0000ff;
}

.TMCode {
  border: 1px solid #c0c0c0;
  border-radius: 2px;
}

.TMBlockquote {
  font-style: italic;
  border-left: 2px solid #c0c0c0;
  padding-left: 10px;
  margin-left: 10px;
}

.TMMark {
  color: #a0a0a0;
}

.TMMark_TMH1,
.TMMark_TMH2 {
  color: #ff8080;
}

.TMMark_TMUL,
.TMMark_TMOL {
  color: #ff8080;
}

.TMImage {
  text-decoration: underline;
  text-decoration-color: #00ff00;
}

.TMLink {
  text-decoration: underline;
  text-decoration-color: #0000ff;
}

.TMLinkLabel {
  text-decoration: underline;
  font-family: monospace;
}

.TMLinkLabel_Definition,
.TMLinkLabel_Valid {
  color: #40c040;
}

.TMLinkLabel_Invalid {
  color: #ff0000;
}

.TMLinkTitle {
  font-style: italic;
}

.TMLinkDestination,
.TMAutolink {
  text-decoration: underline;
  color: #0000ff;
}

.TMHR {
  position: relative;
}

.TMHR:before {
  content: "";
  position: absolute;
  bottom: 50%;
  left: 40%;
  border-bottom: 2px solid #808080;
  width: 20%;
  z-index: 0;
}

.TMHTML,
.TMHTMLBlock {
  font-family: monospace;
  font-size: 0.9em;
  color: #8000ff;
}

.TMHTMLBlock {
  color: #6000c0;
}

.TMCommandBar {
  background-color: var(--oc-gray-1);
  border: 1px solid var(--border);
  border-bottom: none;
  border-top-left-radius: 0.25rem;
  border-top-right-radius: 0.25rem;
  /* height: 24px; */
  /* border:4px solid var(--oc-gray-1); */
  /* box-sizing: content-box; */
  display: flex;
  gap: 0.25rem;
  padding: 0.25rem;
  -webkit-user-select: none;
          user-select: none;
  overflow-x: scroll;
  overflow-y: hidden;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.TMCommandBar::-webkit-scrollbar {
  display: none;
}

.TMCommandButton {
  /* box-sizing: border-box; */
  display: inline-block;
  height: 24px;
  width: 24px;
  /* padding:3px; */
  /* margin-right:4px;  */
  color: var(--oc-gray-9);
  fill: var(--oc-gray-9);
  text-align: center;
  cursor: pointer;
  vertical-align: middle;
  font-size: 20px;
  line-height: 18px;
  font-family: sans-serif;
}

.TMCommandDivider {
  /* box-sizing: content-box; */
  height: 24px;
  margin: 0 8px;
  width: 0px;
  border-left: 2px solid var(--border);
}

.TMCommandButton_Active {
  font-weight: bold;
  color: var(--primary-9);
  background-color: var(--primary-2);
  fill: var(--primary-9);
}

.TMCommandButton_Inactive {
  background-color: var(--oc-gray-1);
}

.TMCommandButton_Disabled {
  color: var(--oc-gray-7);
  fill: var(--oc-gray-7);
}

@media (hover: hover) {
  .TMCommandButton_Active:hover,
  .TMCommandButton_Disabled:hover,
  .TMCommandButton_Inactive:hover {
    background-color: var(--primary-1);
    fill: var(--oc-gray-9);
  }
}