/* GrantMind | Rich-text editor and image toolbar. */
.ed {
  min-height: 90px;
  padding: 10px;
  border: 1px solid var(--ln);
  border-radius: 6px;
  background: var(--sf);
  margin: 6px 0 10px;
  white-space: pre-wrap;
}
.ed img {
  max-width: 100%;
}
.ed:focus {
  outline: 2px solid var(--ac);
}
.ed {
  white-space: normal;
  font:
    12pt/1.5 Georgia,
    "Times New Roman",
    serif;
  display: flow-root;
  min-height: 120px;
  overflow-wrap: anywhere;
}
.ed p {
  margin: 0 0 0.6em;
}
.ed h1 {
  font-size: 18pt;
  margin: 0.5em 0;
}
.ed h2 {
  font-size: 15pt;
  margin: 0.6em 0;
}
.ed h3 {
  font-size: 13pt;
  margin: 0.6em 0;
}
.ed table {
  border-collapse: collapse;
  width: 100%;
}
.ed td,
.ed th {
  border: 1px solid var(--mt);
  padding: 4px 6px;
  min-width: 30px;
}
.ed blockquote {
  border-left: 3px solid var(--mt);
  margin: 8px 0;
  padding-left: 12px;
}
.ed img {
  cursor: pointer;
  max-width: 100%;
}
.ed .pgb {
  border-top: 2px dashed var(--mt);
  margin: 12px 0;
  text-align: center;
  color: var(--mt);
  font-size: 11px;
}
.tb {
  display: contents;
}
#ib {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 45;
  background: var(--sf);
  border-top: 2px solid var(--ac);
  padding: 8px 12px calc(8px + env(safe-area-inset-bottom, 0px));
  display: flex;
  gap: 6px;
  align-items: center;
  flex-wrap: wrap;
}
#ib input[type="number"] {
  width: 56px;
  margin: 0;
  padding: 4px;
}
#ib button {
  padding: 4px 8px;
  font-size: 13px;
  min-height: 0;
}
