#reading-body {
  --pencil-selection: #afd6ff;
  --pencil-selection-edge: #2672b8;
  --pencil-selection-text: #112e48;
}
body[data-theme="dark"] #reading-body {
  --pencil-selection: #2b5986;
  --pencil-selection-edge: #87bdff;
  --pencil-selection-text: #f6fbff;
}
@media (prefers-color-scheme:dark) {
  body[data-theme="system"] #reading-body {
    --pencil-selection: #2b5986;
    --pencil-selection-edge: #87bdff;
    --pencil-selection-text: #f6fbff;
  }
}
#reading-body .word:is(.pencil-selected,.passage-anchor-word) {
  color:var(--pencil-selection-text);
  background:var(--pencil-selection);
  box-shadow:inset 0 -2px 0 var(--pencil-selection-edge);
  -webkit-box-decoration-break:clone;
  box-decoration-break:clone;
}
#reading-body .word:is(.pencil-selected,.passage-anchor-word) :is(.annotated,.search-hit) {
  color:inherit;
  background:transparent;
  box-shadow:none;
}
#reading-body.pencil-selecting, #reading-body.pencil-selecting p, #reading-body.pencil-selecting .word {
  -webkit-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
}
