/* The editor's show of a record: Markdown, black and white, as the plan. */

.plan-editor__show {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  margin: 0 12px 16px;
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 2px;
  color: #111;
  background: #fff;
}

.plan-editor__placeholder {
  font-size: 13px;
  color: #999;
}

/* the entry being written: several lines, sent only by «записать» */
.plan-editor__compose {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.plan-editor__compose-text {
  min-height: 96px;
  padding: 8px;
  border: 1px solid #111;
  border-radius: 2px;
  resize: vertical;
  outline: none;
  font: inherit;
  font-size: 13px;
  line-height: 1.45;
  color: #111;
  background: #fff;
}

.md {
  font-size: 14px;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

.md > :first-child {
  margin-top: 0;
}

.md > :last-child,
.md li > :last-child {
  margin-bottom: 0;
}

.md h1,
.md h2,
.md h3,
.md h4,
.md h5,
.md h6 {
  margin: 16px 0 8px;
  font-weight: 600;
  line-height: 1.3;
}

.md h1 { font-size: 20px; }
.md h2 { font-size: 17px; }
.md h3 { font-size: 15px; }
.md h4,
.md h5,
.md h6 { font-size: 14px; }

.md p,
.md ul,
.md ol,
.md pre,
.md blockquote,
.md table {
  margin: 0 0 8px;
}

.md ul,
.md ol {
  padding-left: 20px;
}

.md li > ul,
.md li > ol {
  margin: 2px 0 0;
}

.md li.md__task {
  list-style: none;
  margin-left: -18px;
}

.md li.md__task > input {
  margin: 0 6px 0 0;
  vertical-align: middle;
}

.md code {
  padding: 0 3px;
  background: #f2f2f2;
  font-family: "Fira Code", monospace;
  font-size: 12px;
}

.md pre {
  padding: 8px 10px;
  background: #f2f2f2;
  overflow-x: auto;
}

.md pre code {
  padding: 0;
  white-space: pre;
}

.md blockquote {
  padding-left: 10px;
  border-left: 2px solid #111;
  color: #444;
}

.md table {
  border-collapse: collapse;
  font-size: 13px;
}

.md th,
.md td {
  padding: 4px 8px;
  border: 1px solid #ccc;
  vertical-align: top;
}

.md th {
  font-weight: 600;
  text-align: left;
}

.md hr {
  margin: 12px 0;
  border: 0;
  border-top: 1px solid #ccc;
}

.md a {
  color: #111;
  text-decoration: underline;
}
