/* The rich editor in the note panel (richedit-ui.js), and embedded in the
   Room editor's text fields (build.js, #bw-roomedit .re) and its
   description window (#bw-descedit .re, #chat .cc-full .re): the toolbar, the
   pickers, the three views. Theme colours only (theme.js sets them), so
   every theme dresses it. The document itself (.re-doc) shares the help
   page's rules in index.html, so it edits text exactly as it is shown. */

/* Rich mode: the plain note's body, find bar and tools step aside. */
#editor.rich #editor-body,
#editor.rich #findbar,
#editor.rich #editor-mode,
#editor.rich #editor-hint { display: none; }
/* Vi keys: the mode line, and a block caret's colour in normal mode. */
#richedit .re-vi {
  font-family: var(--font);
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--gilt);
  padding: 0 8px;
  white-space: pre;
}
#richedit .re-vi[hidden] { display: none; }
#richedit .re-doc.rs-vi-normal { caret-color: var(--parchment-bright, var(--gilt-bright)); }
/* Tools the text can't hold aren't there at all. */
:is(#editor #richedit, #bw-roomedit .re, #bw-descedit .re, #chat .cc-full .re) .re-bar [hidden],
:is(#editor #richedit, #bw-roomedit .re, #bw-descedit .re, #chat .cc-full .re) .re-pop [hidden] { display: none; }
:is(#editor, #bw-descedit, #chat .cc-full) .re-status:empty { display: none; }
:is(#editor, #bw-descedit, #chat .cc-full) .re-status { color: var(--gilt); }

:is(#richedit, #bw-roomedit .re, #bw-descedit .re, #chat .cc-full .re) {
  flex: 1;
  min-height: 0;
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--ink);
}
:is(#richedit, #bw-roomedit .re, #bw-descedit .re, #chat .cc-full .re)[hidden] { display: none; }

/* ----- the toolbar ----- */
:is(#richedit, #bw-roomedit .re, #bw-descedit .re, #chat .cc-full .re) .re-bar {
  flex: none;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 10px;
  padding: 4px 8px;
  background: var(--ink-high);
  border-bottom: 1px solid var(--rule);
  font-family: var(--chrome-font);
  font-size: var(--chrome-size);
}
:is(#richedit, #bw-roomedit .re, #bw-descedit .re, #chat .cc-full .re) .re-group { display: inline-flex; align-items: center; gap: 2px; flex-wrap: wrap; }
:is(#richedit, #bw-roomedit .re, #bw-descedit .re, #chat .cc-full .re) .re-group[hidden] { display: none; }
:is(#richedit, #bw-roomedit .re, #bw-descedit .re, #chat .cc-full .re) .re-grow { flex: 1 1 0; min-width: 0; }

/* Beats index.html's "#editor button" (the footer's text buttons). */
:is(#editor #richedit, #bw-roomedit .re, #bw-descedit .re, #chat .cc-full .re) button.re-tool {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 2px;
  min-width: 28px;
  height: 28px;
  padding: 0 6px;
  background: none;
  color: var(--parchment);
  border: 1px solid transparent;
  font: inherit;
  line-height: 1;
  cursor: pointer;
}
:is(#editor #richedit, #bw-roomedit .re, #bw-descedit .re, #chat .cc-full .re) button.re-tool[hidden] { display: none; }
:is(#editor #richedit, #bw-roomedit .re, #bw-descedit .re, #chat .cc-full .re) button.re-tool:hover:not(:disabled) { color: var(--gilt); border-color: var(--rule); }
:is(#editor #richedit, #bw-roomedit .re, #bw-descedit .re, #chat .cc-full .re) button.re-tool:focus-visible { outline: 1px solid var(--gilt); }
:is(#editor #richedit, #bw-roomedit .re, #bw-descedit .re, #chat .cc-full .re) button.re-tool[aria-pressed="true"],
:is(#editor #richedit, #bw-roomedit .re, #bw-descedit .re, #chat .cc-full .re) button.re-tool[aria-expanded="true"] {
  color: var(--gilt-bright);
  background: color-mix(in srgb, var(--gilt) 18%, transparent);
  border-color: var(--gilt-deep, var(--gilt));
}
:is(#editor #richedit, #bw-roomedit .re, #bw-descedit .re, #chat .cc-full .re) button.re-tool:disabled { color: var(--muted); opacity: 0.45; cursor: default; }
:is(#richedit, #bw-roomedit .re, #bw-descedit .re, #chat .cc-full .re) .re-tool .ic { width: 18px; height: 18px; }
:is(#richedit, #bw-roomedit .re, #bw-descedit .re, #chat .cc-full .re) .re-face { font-size: 15px; }
:is(#richedit, #bw-roomedit .re, #bw-descedit .re, #chat .cc-full .re) .re-b .re-face { font-weight: 700; font-family: "Spectral", Georgia, serif; }
:is(#richedit, #bw-roomedit .re, #bw-descedit .re, #chat .cc-full .re) .re-i .re-face { font-style: italic; font-family: "Spectral", Georgia, serif; }
:is(#richedit, #bw-roomedit .re, #bw-descedit .re, #chat .cc-full .re) .re-mono .re-face { font-family: var(--font); font-size: 12px; }
:is(#richedit, #bw-roomedit .re, #bw-descedit .re, #chat .cc-full .re) .re-row .re-face { font-size: 13px; }
/* The colour button's bar shows the colour at the caret. */
:is(#richedit, #bw-roomedit .re, #bw-descedit .re, #chat .cc-full .re) .re-colour-bar {
  position: absolute;
  left: 5px;
  right: 5px;
  bottom: 3px;
  height: 3px;
}
/* Align and table: drawn line glyphs, as the icon set has none. */
:is(#richedit, #bw-roomedit .re, #bw-descedit .re, #chat .cc-full .re) .re-align::before,
:is(#richedit, #bw-roomedit .re, #bw-descedit .re, #chat .cc-full .re) .re-table::before {
  content: "";
  width: 16px;
  height: 14px;
  background: currentColor;
  -webkit-mask: var(--glyph) center / contain no-repeat;
  mask: var(--glyph) center / contain no-repeat;
}
:is(#richedit, #bw-roomedit .re, #bw-descedit .re, #chat .cc-full .re) .re-al-c { --glyph: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 14'%3E%3Cpath d='M1 1h14M4 5h8M1 9h14M4 13h8' stroke='black' stroke-width='2'/%3E%3C/svg%3E"); }
:is(#richedit, #bw-roomedit .re, #bw-descedit .re, #chat .cc-full .re) .re-al-r { --glyph: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 14'%3E%3Cpath d='M1 1h14M7 5h8M1 9h14M7 13h8' stroke='black' stroke-width='2'/%3E%3C/svg%3E"); }
:is(#richedit, #bw-roomedit .re, #bw-descedit .re, #chat .cc-full .re) .re-quote { --glyph: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 14'%3E%3Cpath d='M2 0v14' stroke='black' stroke-width='2.4'/%3E%3Cpath d='M6 2h9M6 7h9M6 12h6' stroke='black' stroke-width='2'/%3E%3C/svg%3E"); }
:is(#richedit, #bw-roomedit .re, #bw-descedit .re, #chat .cc-full .re) .re-table { --glyph: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 14'%3E%3Cpath d='M1 1h14v12H1zM1 5h14M1 9h14M6 1v12' fill='none' stroke='black' stroke-width='1.6'/%3E%3C/svg%3E"); }

:is(#richedit, #bw-roomedit .re, #bw-descedit .re, #chat .cc-full .re) .re-select {
  height: 28px;
  max-width: 9.5em;
  padding: 0 4px;
  background: var(--ink);
  color: var(--parchment);
  border: 1px solid var(--rule);
  font: inherit;
  cursor: pointer;
}
:is(#richedit, #bw-roomedit .re, #bw-descedit .re, #chat .cc-full .re) .re-select:hover:not(:disabled) { border-color: var(--gilt); }
:is(#richedit, #bw-roomedit .re, #bw-descedit .re, #chat .cc-full .re) .re-select:focus-visible { outline: 1px solid var(--gilt); }
:is(#richedit, #bw-roomedit .re, #bw-descedit .re, #chat .cc-full .re) .re-select:disabled { color: var(--muted); cursor: default; }

/* The views, as tabs on the toolbar's right. */
:is(#richedit, #bw-roomedit .re, #bw-descedit .re, #chat .cc-full .re) .re-views { display: inline-flex; flex: none; margin-left: auto; }
:is(#editor #richedit, #bw-roomedit .re, #bw-descedit .re, #chat .cc-full .re) button.re-tab {
  padding: 4px 8px;
  background: none;
  border: none;
  border-bottom: 1px solid transparent;
  color: var(--muted);
  font: inherit;
  cursor: pointer;
  white-space: nowrap;
}
:is(#editor #richedit, #bw-roomedit .re, #bw-descedit .re, #chat .cc-full .re) button.re-tab:hover { color: var(--gilt); }
:is(#editor #richedit, #bw-roomedit .re, #bw-descedit .re, #chat .cc-full .re) button.re-tab:focus-visible { outline: 1px solid var(--gilt); }
:is(#editor #richedit, #bw-roomedit .re, #bw-descedit .re, #chat .cc-full .re) button.re-tab[aria-selected="true"] { color: var(--gilt); border-bottom-color: var(--gilt); }
:is(#editor #richedit, #bw-roomedit .re, #bw-descedit .re, #chat .cc-full .re) button.re-tab[hidden] { display: none; }

/* ----- banner and the discard question ----- */
:is(#richedit, #bw-roomedit .re, #bw-descedit .re, #chat .cc-full .re) .re-banner,
:is(#richedit, #bw-roomedit .re, #bw-descedit .re, #chat .cc-full .re) .re-confirm {
  flex: none;
  padding: 6px 10px;
  border-bottom: 1px solid var(--rule);
  line-height: 18px;
  font-family: var(--chrome-font);
  font-size: var(--chrome-size);
}
:is(#richedit, #bw-roomedit .re, #bw-descedit .re, #chat .cc-full .re) .re-banner { color: var(--combat-text); white-space: pre-wrap; overflow-wrap: anywhere; }
:is(#richedit, #bw-roomedit .re, #bw-descedit .re, #chat .cc-full .re) .re-confirm {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 10px;
  color: var(--parchment-bright);
  background: var(--ink-high);
}
:is(#richedit, #bw-roomedit .re, #bw-descedit .re, #chat .cc-full .re) .re-confirm-q { flex: 1 1 auto; }
:is(#richedit, #bw-roomedit .re, #bw-descedit .re, #chat .cc-full .re) .re-banner[hidden], :is(#richedit, #bw-roomedit .re, #bw-descedit .re, #chat .cc-full .re) .re-confirm[hidden] { display: none; }

/* Text buttons in the pickers and the question. */
:is(#editor #richedit, #bw-roomedit .re, #bw-descedit .re, #chat .cc-full .re) button.re-plain {
  padding: 2px 12px;
  background: var(--ink);
  color: var(--parchment);
  border: 1px solid var(--rule);
  font: inherit;
  cursor: pointer;
}
:is(#editor #richedit, #bw-roomedit .re, #bw-descedit .re, #chat .cc-full .re) button.re-plain:hover { border-color: var(--gilt); color: var(--gilt); }
:is(#editor #richedit, #bw-roomedit .re, #bw-descedit .re, #chat .cc-full .re) button.re-plain:focus-visible { outline: 1px solid var(--gilt); }
:is(#editor #richedit, #bw-roomedit .re, #bw-descedit .re, #chat .cc-full .re) button.re-plain[hidden] { display: none; }
:is(#editor #richedit, #bw-roomedit .re, #bw-descedit .re, #chat .cc-full .re) button.re-primary { background: var(--gilt); color: var(--ink); border-color: var(--gilt); }
:is(#editor #richedit, #bw-roomedit .re, #bw-descedit .re, #chat .cc-full .re) button.re-primary:hover { background: var(--gilt-bright); color: var(--ink); }
:is(#editor #richedit, #bw-roomedit .re, #bw-descedit .re, #chat .cc-full .re) button.re-danger { border-color: var(--combat-text); color: var(--combat-text); }

/* ----- the views ----- */
:is(#richedit, #bw-roomedit .re, #bw-descedit .re, #chat .cc-full .re) .re-view { flex: 1; min-height: 0; }
:is(#richedit, #bw-roomedit .re, #bw-descedit .re, #chat .cc-full .re) .re-view[hidden] { display: none; }
:is(#richedit, #bw-roomedit .re, #bw-descedit .re, #chat .cc-full .re) .re-look { overflow: auto; }
/* The document: the help window's text (#help-game) and its rules. */
:is(#richedit, #bw-roomedit .re, #bw-descedit .re, #chat .cc-full .re) .re-doc {
  min-height: 100%;
  box-sizing: border-box;
  padding: 12px 16px;
  color: var(--parchment);
  font-family: "Spectral", Georgia, serif;
  font-size: 15px;
  line-height: 1.55;
  outline: none;
  overflow-wrap: break-word;
  caret-color: var(--gilt-bright);
}
:is(#richedit, #bw-roomedit .re, #bw-descedit .re, #chat .cc-full .re) .re-doc ::selection { background: color-mix(in srgb, var(--gilt) 35%, transparent); }
:is(#richedit, #bw-roomedit .re, #bw-descedit .re, #chat .cc-full .re) .re-doc a { cursor: text; }
:is(#richedit, #bw-roomedit .re, #bw-descedit .re, #chat .cc-full .re).re-waiting .re-doc { opacity: 0.7; }
/* Old-style text (notes, mail): its lines as typed, in the prose font,
   wrapped to the window; telnet players see them as written. */
:is(#editor #richedit, #bw-roomedit .re, #bw-descedit .re, #chat .cc-full .re) .re-doc.rs-legacy pre.quill-pre, :is(#editor #richedit, #bw-roomedit .re, #bw-descedit .re, #chat .cc-full .re) .re-doc.rs-legacy pre.aa-pre {
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
  font: inherit;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

/* Telnet: 78 columns (the game's width) in the game window's font, the edge marked. */
:is(#richedit, #bw-roomedit .re, #bw-descedit .re, #chat .cc-full .re) .re-telnet {
  overflow: auto;
  padding: 8px 10px;
  background: var(--ink);
}
:is(#richedit, #bw-roomedit .re, #bw-descedit .re, #chat .cc-full .re) .re-telnet:focus { outline: none; }
:is(#richedit, #bw-roomedit .re, #bw-descedit .re, #chat .cc-full .re) .re-telnet-text {
  margin: 0;
  width: 78ch;
  min-height: 100%;
  box-sizing: content-box;
  padding-right: 4px;
  border-right: 1px dashed var(--rule-strong, var(--rule));
  white-space: pre;
  font-family: var(--font);
  font-size: var(--size);
  line-height: var(--row, 20px);
  color: var(--parchment);
}
:is(#richedit, #bw-roomedit .re, #bw-descedit .re, #chat .cc-full .re) .re-blink { text-decoration: underline dotted; }

/* Source: the markup as text. */
:is(#editor #richedit, #bw-roomedit .re, #bw-descedit .re, #chat .cc-full .re) textarea.re-source {
  resize: none;
  border: none;
  outline: none;
  padding: 8px 10px;
  background: var(--ink);
  color: var(--parchment);
  font-family: var(--font);
  font-size: var(--size);
  line-height: 20px;
  white-space: pre;
  overflow: auto;
  tab-size: 8;
}

/* ----- pickers ----- */
:is(#richedit, #bw-roomedit .re, #bw-descedit .re, #chat .cc-full .re) .re-pop {
  position: absolute;
  z-index: 3;
  max-width: calc(100% - 8px);
  max-height: calc(100% - 48px);
  overflow: auto;
  box-sizing: border-box;
  padding: 8px 10px;
  background: var(--ink-high);
  border: 1px solid var(--gilt);
  box-shadow: var(--shadow-small, var(--shadow));
  font-family: var(--chrome-font);
  font-size: var(--chrome-size);
  color: var(--parchment);
}
:is(#richedit, #bw-roomedit .re, #bw-descedit .re, #chat .cc-full .re) .re-pop[hidden] { display: none; }
:is(#richedit, #bw-roomedit .re, #bw-descedit .re, #chat .cc-full .re) .re-pop-label { color: var(--muted); margin: 6px 0 4px; }
:is(#richedit, #bw-roomedit .re, #bw-descedit .re, #chat .cc-full .re) .re-pop-label:first-child { margin-top: 0; }
:is(#richedit, #bw-roomedit .re, #bw-descedit .re, #chat .cc-full .re) .re-pop-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 4px; }
:is(#richedit, #bw-roomedit .re, #bw-descedit .re, #chat .cc-full .re) .re-pop-head .re-pop-label { margin: 0; }
:is(#richedit, #bw-roomedit .re, #bw-descedit .re, #chat .cc-full .re) .re-pop-foot { display: flex; gap: 8px; align-items: center; margin-top: 8px; }

:is(#richedit, #bw-roomedit .re, #bw-descedit .re, #chat .cc-full .re) .re-colour-pop { width: 330px; }
:is(#richedit, #bw-roomedit .re, #bw-descedit .re, #chat .cc-full .re) .re-swatches { display: grid; grid-template-columns: repeat(8, 28px); gap: 4px; }
:is(#richedit, #bw-roomedit .re, #bw-descedit .re, #chat .cc-full .re) .re-grounds { grid-template-columns: repeat(9, 28px); }
:is(#editor #richedit, #bw-roomedit .re, #bw-descedit .re, #chat .cc-full .re) button.re-swatch {
  width: 28px;
  height: 22px;
  padding: 0;
  border: 1px solid var(--rule);
  cursor: pointer;
  color: var(--muted);
  font: inherit;
}
:is(#editor #richedit, #bw-roomedit .re, #bw-descedit .re, #chat .cc-full .re) button.re-swatch.re-none { background: var(--ink); }
:is(#editor #richedit, #bw-roomedit .re, #bw-descedit .re, #chat .cc-full .re) button.re-swatch:hover,
:is(#editor #richedit, #bw-roomedit .re, #bw-descedit .re, #chat .cc-full .re) button.re-swatch:focus-visible { outline: 1px solid var(--gilt); outline-offset: 1px; }
:is(#editor #richedit, #bw-roomedit .re, #bw-descedit .re, #chat .cc-full .re) button.re-swatch[aria-pressed="true"] { outline: 2px solid var(--gilt-bright); outline-offset: 1px; }
:is(#richedit, #bw-roomedit .re, #bw-descedit .re, #chat .cc-full .re) .re-types { display: flex; flex-wrap: wrap; gap: 3px; }
:is(#editor #richedit, #bw-roomedit .re, #bw-descedit .re, #chat .cc-full .re) button.re-type {
  padding: 1px 6px;
  background: var(--ink);
  color: var(--parchment);
  border: 1px solid var(--rule);
  font: inherit;
  cursor: pointer;
}
:is(#editor #richedit, #bw-roomedit .re, #bw-descedit .re, #chat .cc-full .re) button.re-type:hover,
:is(#editor #richedit, #bw-roomedit .re, #bw-descedit .re, #chat .cc-full .re) button.re-type:focus-visible { border-color: var(--gilt); color: var(--gilt); outline: none; }
:is(#editor #richedit, #bw-roomedit .re, #bw-descedit .re, #chat .cc-full .re) button.re-type[aria-pressed="true"] { border-color: var(--gilt); color: var(--gilt-bright); }

:is(#richedit, #bw-roomedit .re, #bw-descedit .re, #chat .cc-full .re) .re-link-pop { width: 300px; display: flex; flex-direction: column; }
:is(#richedit, #bw-roomedit .re, #bw-descedit .re, #chat .cc-full .re) .re-link-pop[hidden] { display: none; }
:is(#richedit, #bw-roomedit .re, #bw-descedit .re, #chat .cc-full .re) .re-link-tabs { display: flex; margin-bottom: 6px; }
:is(#richedit, #bw-roomedit .re, #bw-descedit .re, #chat .cc-full .re) .re-link-input {
  min-height: 28px;
  padding: 0 6px;
  background: var(--ink);
  color: var(--parchment-bright);
  border: 1px solid var(--rule);
  font-family: var(--font);
  font-size: var(--size);
}
:is(#richedit, #bw-roomedit .re, #bw-descedit .re, #chat .cc-full .re) .re-link-input:focus { outline: none; border-color: var(--gilt); }
:is(#richedit, #bw-roomedit .re, #bw-descedit .re, #chat .cc-full .re) .re-link-list {
  list-style: none;
  margin: 4px 0 0;
  padding: 0;
  max-height: 180px;
  overflow: auto;
  border: 1px solid var(--rule);
  background: var(--ink);
}
:is(#richedit, #bw-roomedit .re, #bw-descedit .re, #chat .cc-full .re) .re-link-list:empty, :is(#richedit, #bw-roomedit .re, #bw-descedit .re, #chat .cc-full .re) .re-link-list[hidden] { display: none; }
:is(#richedit, #bw-roomedit .re, #bw-descedit .re, #chat .cc-full .re) .re-topic { padding: 2px 8px; cursor: pointer; font-family: var(--font); }
:is(#richedit, #bw-roomedit .re, #bw-descedit .re, #chat .cc-full .re) .re-topic:hover { color: var(--gilt); }
:is(#richedit, #bw-roomedit .re, #bw-descedit .re, #chat .cc-full .re) .re-topic[aria-selected="true"] { background: var(--gilt); color: var(--ink); }
:is(#richedit, #bw-roomedit .re, #bw-descedit .re, #chat .cc-full .re) .re-topic.re-quiet { color: var(--muted); cursor: default; }
:is(#richedit, #bw-roomedit .re, #bw-descedit .re, #chat .cc-full .re) .re-link-error { color: var(--combat-text); margin-top: 4px; }
:is(#richedit, #bw-roomedit .re, #bw-descedit .re, #chat .cc-full .re) .re-link-error[hidden] { display: none; }

/* A phone: the toolbar wraps onto more rows; the views get a row of their
   own; the pickers take the width. */
@media (max-width: 640px) {
  :is(#richedit, #bw-roomedit .re, #bw-descedit .re, #chat .cc-full .re) .re-bar { gap: 2px 6px; padding: 4px; }
  :is(#richedit, #bw-roomedit .re, #bw-descedit .re, #chat .cc-full .re) .re-views { margin-left: 0; flex-basis: 100%; }
  :is(#richedit, #bw-roomedit .re, #bw-descedit .re, #chat .cc-full .re) .re-grow { display: none; }
  :is(#richedit, #bw-roomedit .re, #bw-descedit .re, #chat .cc-full .re) .re-pop { left: 4px !important; right: 4px; width: auto; }
  :is(#richedit, #bw-roomedit .re, #bw-descedit .re, #chat .cc-full .re) .re-swatches { grid-template-columns: repeat(8, minmax(0, 28px)); }
  :is(#richedit, #bw-roomedit .re, #bw-descedit .re, #chat .cc-full .re) .re-grounds { grid-template-columns: repeat(9, minmax(0, 28px)); }
  :is(#richedit, #bw-roomedit .re, #bw-descedit .re, #chat .cc-full .re) .re-doc { padding: 10px; }
}
@media (pointer: coarse) {
  :is(#editor #richedit, #bw-roomedit .re, #bw-descedit .re, #chat .cc-full .re) button.re-tool { min-width: 36px; height: 36px; }
  :is(#richedit, #bw-roomedit .re, #bw-descedit .re, #chat .cc-full .re) .re-select { height: 36px; }
}
/* A comment (<!-- … -->, Quill 2026-11-12): readers never see it; the
   editor shows a small mark with the comment as its tooltip (the source
   view shows the comment itself). */
:is(#richedit, #bw-roomedit .re, #bw-descedit .re, #chat .cc-full .re) .re-doc .quill-comment {
  color: var(--muted);
  font-size: 0.75em;
  opacity: 0.7;
  cursor: help;
  user-select: none;
}
:is(#richedit, #bw-roomedit .re, #bw-descedit .re, #chat .cc-full .re) .re-doc .quill-comment-block {
  display: block;
  line-height: 1;
  margin: 0.15em 0;
}

/* A nested list in the editor: its own <ul>/<ol> in a bullet-less item
   after the item above it (richedit.js drawList), so it looks as the
   reader's nested list does (quill.md §3.5). */
.rs-surface li.re-sub { list-style: none; }
.rs-surface li.re-sub > :is(ul, ol) { margin: 0.1em 0 0.15em; padding-left: 1.2em; }
