/* v80.8.136 — Reader-comment editor theme parity without global editor changes.
   Dark palette follows reader colors; Light/Sepia use independent, accessible
   foreground/background pairs because site --bg/--text can remain dark. */
.rw8135-comments {
  --rw8136-ink:var(--reader-text,#eaeaf0);
  --rw8136-bar:#303348;
  --rw8136-field:#202638;
  --rw8136-hover:#454661;
  --rw8136-edge:#5c5875;
  --rw8136-accent:var(--reader-link,#d7b2ed);
  --rw8136-placeholder:#adb6c8;
}
:is(.reader-page,body,html)[data-theme="light"] .rw8135-comments,
:is(body,html)[data-site-theme="light"] .rw8135-comments,
body.theme-light .rw8135-comments {
  --rw8136-ink:#292633;
  --rw8136-bar:#e7e6ef;
  --rw8136-field:#ffffff;
  --rw8136-hover:#d8d3e7;
  --rw8136-edge:#bebacb;
  --rw8136-accent:#674394;
  --rw8136-placeholder:#686477;
}
:is(.reader-page,body,html)[data-theme="sepia"] .rw8135-comments,
:is(body,html)[data-site-theme="sepia"] .rw8135-comments,
body.theme-sepia .rw8135-comments {
  --rw8136-ink:#433326;
  --rw8136-bar:#e9d6b8;
  --rw8136-field:#f9f0df;
  --rw8136-hover:#d9c19a;
  --rw8136-edge:#b69b76;
  --rw8136-accent:#794b77;
  --rw8136-placeholder:#77634a;
}
/* The mature My Page/Forum toolbar reads these custom properties. Keep its
   actions and markup, change their palette only inside reader comment editors. */
.rw8135-comments .rw8135-comment-editor {
  --bg:var(--rw8136-field);
  --text:var(--rw8136-ink);
  --raised:var(--rw8136-bar);
  --surface:var(--rw8136-hover);
  --border:var(--rw8136-edge);
  --f32-edge:var(--rw8136-edge);
  --accent:var(--rw8136-accent);
  color:var(--rw8136-ink);
}
.rw8135-comments .rw8135-comment-editor>.forum36-toolbar {
  background:var(--rw8136-bar);
  color:var(--rw8136-ink);
  border-color:var(--rw8136-edge);
  box-shadow:none;
}
.rw8135-comments .rw8135-comment-editor .rich-toolbar-row+.rich-toolbar-row,
.rw8135-comments .rw8135-comment-editor .rt-toolbar-group {
  border-color:var(--rw8136-edge);
}
.rw8135-comments .rw8135-comment-editor .rt-toolbar-group button,
.rw8135-comments .rw8135-comment-editor .rw8135-icon {
  color:var(--rw8136-ink);
  background:transparent;
}
.rw8135-comments .rw8135-comment-editor .rt-toolbar-group button:hover,
.rw8135-comments .rw8135-comment-editor .rt-toolbar-group button:focus-visible,
.rw8135-comments .rw8135-comment-editor .rw8135-icon:hover,
.rw8135-comments .rw8135-comment-editor .rw8135-icon:focus-visible,
.rw8135-comments .rw8135-comment-editor .rt-toolbar-group .forum36-active {
  color:var(--rw8136-ink);
  background:var(--rw8136-hover);
  border-color:var(--rw8136-accent);
}
.rw8135-comments .rw8135-comment-editor.forum39-ready>.forum39-visual,
.rw8135-comments .rw8135-comment-editor>textarea {
  background:var(--rw8136-field);
  color:var(--rw8136-ink);
  border-color:var(--rw8136-edge);
  caret-color:var(--rw8136-ink);
}
.rw8135-comments .rw8135-comment-editor>.forum39-visual:focus-visible {
  outline:2px solid var(--rw8136-accent);
  outline-offset:-2px;
}
.rw8135-comments .rw8135-comment-editor .forum39-visual [data-bb="spoiler"] {
  background:var(--rw8136-bar);
  color:var(--rw8136-ink);
}
.rw8135-comments .rw8135-comment-editor .forum39-visual blockquote {
  color:var(--rw8136-ink);
  border-left-color:var(--rw8136-accent);
}
.rw8135-comments .rw8135-comment-editor .forum36-dropdown,
.rw8135-comments .rw8135-comment-editor .emoji-picker {
  background:var(--rw8136-bar);
  color:var(--rw8136-ink);
  border-color:var(--rw8136-edge);
}
.rw8135-comments .rw8135-comment-editor .forum36-dropdown button,
.rw8135-comments .rw8135-comment-editor .emoji-picker button {color:var(--rw8136-ink)}
.rw8135-comments .rw8135-comment-editor .forum36-dropdown button:hover,
.rw8135-comments .rw8135-comment-editor .emoji-picker button:hover {background:var(--rw8136-hover)}
.rw8135-comments .rw8135-comment-editor ::placeholder {color:var(--rw8136-placeholder);opacity:1}
/* Extra guard: the retired reader-only source toggle must not produce a row
   even if an old browser caches a copy of the v135 engine. */
.rw8135-comments .rw8135-comment-editor .forum39-code-toggle {display:none!important}

/* The v135 shared-reply rule kept the toolbar visible whenever the reply was
   mounted, even after focus left. Give it the same focus behavior as the main
   composer, and prevent empty toolbars from lingering below comments. */
.rw8135-comments .rw8135-shared-reply .rw8135-comment-editor.forum39-ready:not(:focus-within):not(.rw8135-pointer-anchor)>.forum36-toolbar{display:none}
.rw8135-comments .rw8135-shared-reply .rw8135-comment-editor.forum39-ready:focus-within>.forum36-toolbar{display:block}
